2020-04-30 13:49:35 +02:00
|
|
|
#set(PLUGIN_COLUMNSTORE "NO" CACHE STRING "Enable ColumnStore engine")
|
2019-11-27 15:34:14 +01:00
|
|
|
|
2020-06-29 16:40:55 +02:00
|
|
|
if("NO" STREQUAL "${PLUGIN_COLUMNSTORE}")
|
2019-11-27 15:34:14 +01:00
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2020-06-29 16:40:55 +02:00
|
|
|
# this does everything, gets the var from the correct scope, appends new
|
|
|
|
# values, sets in the correct scope
|
|
|
|
macro(APPEND_FOR_CPACK V)
|
|
|
|
get_directory_property(var DIRECTORY columnstore DEFINITION ${V})
|
|
|
|
set(${V} "${var}${ARGN}" PARENT_SCOPE)
|
|
|
|
endmacro()
|
|
|
|
|
2020-06-13 21:39:22 +02:00
|
|
|
IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR
|
2020-11-10 08:54:22 +01:00
|
|
|
CMAKE_SYSTEM_PROCESSOR STREQUAL "amd64")
|
2020-06-13 21:39:22 +02:00
|
|
|
add_subdirectory(columnstore)
|
2019-11-27 15:34:14 +01:00
|
|
|
|
2020-06-17 12:35:14 +02:00
|
|
|
IF(TARGET columnstore)
|
2020-06-18 08:10:25 +02:00
|
|
|
# Needed to bump the component changes up to the main scope
|
2020-06-29 16:40:55 +02:00
|
|
|
APPEND_FOR_CPACK(CPACK_COMPONENTS_ALL)
|
2020-06-18 08:10:25 +02:00
|
|
|
IF (RPM)
|
2020-08-04 22:55:47 +02:00
|
|
|
APPEND_FOR_CPACK(CPACK_RPM_columnstore-engine_PACKAGE_REQUIRES " binutils net-tools python3")
|
|
|
|
APPEND_FOR_CPACK(CPACK_RPM_columnstore-engine_PACKAGE_RECOMMENDS " jemalloc")
|
2020-06-29 16:40:55 +02:00
|
|
|
APPEND_FOR_CPACK(CPACK_RPM_columnstore-engine_USER_FILELIST ";%ignore /var/lib;%ignore /var")
|
|
|
|
APPEND_FOR_CPACK(CPACK_RPM_columnstore-engine_PACKAGE_CONFLICTS " thrift MariaDB-columnstore-platform MariaDB-columnstore-libs")
|
|
|
|
# these three don't have the list semantics, so no append here
|
|
|
|
SET(CPACK_RPM_columnstore-engine_PRE_INSTALL_SCRIPT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/columnstore/build/preInstall_storage_engine.sh PARENT_SCOPE)
|
|
|
|
SET(CPACK_RPM_columnstore-engine_POST_INSTALL_SCRIPT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/columnstore/build/postInstall_storage_engine.sh PARENT_SCOPE)
|
|
|
|
SET(CPACK_RPM_columnstore-engine_PRE_UNINSTALL_SCRIPT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/columnstore/build/preUn_storage_engine.sh PARENT_SCOPE)
|
2020-11-30 15:27:08 +01:00
|
|
|
APPEND_FOR_CPACK(CPACK_RPM_columnstore-engine_PACKAGE_VERSION "")
|
2020-06-18 08:10:25 +02:00
|
|
|
ENDIF()
|
|
|
|
INSTALL_MYSQL_TEST("${CMAKE_CURRENT_SOURCE_DIR}/mysql-test/" "plugin/columnstore")
|
2020-06-13 21:39:22 +02:00
|
|
|
ENDIF()
|
2020-05-19 15:20:03 +02:00
|
|
|
ENDIF()
|