mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-04-18 21:44:02 +03:00
Rename packages to MariaDB-columnstore-engine, MariaDB-columnstore-libs and MariaDB-columnstore-platform. Also add the "columnstore-" prefix the the components so that MariaDB's packaging system understands then and add a line to include them in MariaDB's packaging. In addition * Fix S3 building for dist source build * Fix Debian 10 dependency issue * Fix git handling for dist builds * Add support for MariaDB's RPM building * Use MariaDB's PCRE and readline * Removes a few dead files * Fix Boost noncopyable includes
60 lines
2.0 KiB
CMake
60 lines
2.0 KiB
CMake
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/install_mcs_mysql.sh.in" "${CMAKE_CURRENT_SOURCE_DIR}/install_mcs_mysql.sh" @ONLY)
|
|
|
|
|
|
include_directories( ${ENGINE_COMMON_INCLUDES}
|
|
/usr/include/libxml2 )
|
|
|
|
|
|
SET ( libcalmysql_SRCS
|
|
ha_mcs_sysvars.cpp
|
|
ha_mcs_client_udfs.cpp
|
|
ha_mcs_opt_rewrites.cpp
|
|
ha_mcs_pushdown.cpp
|
|
ha_mcs.cpp
|
|
ha_mcs_impl.cpp
|
|
ha_mcs_dml.cpp
|
|
ha_mcs_ddl.cpp
|
|
ha_mcs_execplan.cpp
|
|
ha_scalar_sub.cpp
|
|
ha_in_sub.cpp
|
|
ha_exists_sub.cpp
|
|
ha_from_sub.cpp
|
|
ha_select_sub.cpp
|
|
ha_view.cpp sm.cpp
|
|
ha_window_function.cpp
|
|
ha_mcs_partition.cpp
|
|
ha_pseudocolumn.cpp
|
|
is_columnstore_tables.cpp
|
|
is_columnstore_columns.cpp
|
|
is_columnstore_files.cpp
|
|
is_columnstore_extents.cpp)
|
|
|
|
add_definitions(-DMYSQL_DYNAMIC_PLUGIN)
|
|
|
|
set_source_files_properties(ha_mcs.cpp PROPERTIES COMPILE_FLAGS "-fno-implicit-templates")
|
|
|
|
if (COMMAND mysql_add_plugin)
|
|
mysql_add_plugin(columnstore ${libcalmysql_SRCS} STORAGE_ENGINE MODULE_ONLY DEFAULT
|
|
LINK_LIBRARIES ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS} ${NETSNMP_LIBRARIES} threadpool
|
|
COMPONENT columnstore-engine)
|
|
else ()
|
|
add_library(ha_columnstore SHARED ${libcalmysql_SRCS})
|
|
SET_TARGET_PROPERTIES(ha_columnstore PROPERTIES PREFIX "")
|
|
|
|
target_link_libraries(ha_columnstore ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS} ${NETSNMP_LIBRARIES} ${SERVER_BUILD_DIR}/libservices/libmysqlservices.a threadpool)
|
|
|
|
install(TARGETS ha_columnstore DESTINATION ${MARIADB_PLUGINDIR} COMPONENT columnstore-engine)
|
|
endif ()
|
|
install(FILES syscatalog_mysql.sql
|
|
dumpcat_mysql.sql
|
|
calsetuserpriority.sql
|
|
calremoveuserpriority.sql
|
|
calshowprocesslist.sql
|
|
columnstore_info.sql
|
|
DESTINATION ${ENGINE_SUPPORTDIR} COMPONENT columnstore-engine)
|
|
install(PROGRAMS install_mcs_mysql.sh mysql-Columnstore
|
|
DESTINATION ${ENGINE_SBINDIR} COMPONENT columnstore-engine)
|
|
|
|
install(FILES columnstore.cnf
|
|
DESTINATION ${MARIADB_MYCNFDIR} COMPONENT columnstore-engine)
|