Move the CDC Connector into its own package
The connector is now in its own package to make its installation easier.
This commit is contained in:
@ -48,7 +48,7 @@ cp _build/*.gz .
|
|||||||
set -x
|
set -x
|
||||||
if [ "$build_experimental" == "yes" ]
|
if [ "$build_experimental" == "yes" ]
|
||||||
then
|
then
|
||||||
for component in experimental devel
|
for component in experimental devel cdc-connector
|
||||||
do
|
do
|
||||||
cd _build
|
cd _build
|
||||||
rm CMakeCache.txt
|
rm CMakeCache.txt
|
||||||
|
@ -43,7 +43,7 @@ cp _build/*.gz .
|
|||||||
|
|
||||||
if [ "$build_experimental" == "yes" ]
|
if [ "$build_experimental" == "yes" ]
|
||||||
then
|
then
|
||||||
for component in experimental devel
|
for component in experimental devel cdc-connector
|
||||||
do
|
do
|
||||||
cd _build
|
cd _build
|
||||||
rm CMakeCache.txt
|
rm CMakeCache.txt
|
||||||
|
@ -63,8 +63,8 @@ set(INSTALL_EXPERIMENTAL TRUE CACHE BOOL "Install experimental modules")
|
|||||||
# Default package name
|
# Default package name
|
||||||
set(PACKAGE_NAME "maxscale" CACHE STRING "Name of the generated package")
|
set(PACKAGE_NAME "maxscale" CACHE STRING "Name of the generated package")
|
||||||
|
|
||||||
# Which component to build (core, experimental, devel)
|
# Which component to build (core, experimental, devel, cdc-connector, all)
|
||||||
set(TARGET_COMPONENT "core" CACHE STRING "Which component to build (core, experimental, devel, all)")
|
set(TARGET_COMPONENT "core" CACHE STRING "Which component to build (core, experimental, devel, cdc-connector, all)")
|
||||||
|
|
||||||
# Enable AddressSanitizer: https://github.com/google/sanitizers/wiki/AddressSanitizer
|
# Enable AddressSanitizer: https://github.com/google/sanitizers/wiki/AddressSanitizer
|
||||||
set(WITH_ASAN FALSE CACHE BOOL "Enable AddressSanitizer")
|
set(WITH_ASAN FALSE CACHE BOOL "Enable AddressSanitizer")
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
execute_process(COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE CPACK_PACKAGE_ARCHITECTURE)
|
execute_process(COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE CPACK_PACKAGE_ARCHITECTURE)
|
||||||
|
|
||||||
# Check target
|
# Check target
|
||||||
set(PACK_TARGETS "core" "devel" "experimental" "all" "client")
|
set(PACK_TARGETS "core" "devel" "experimental" "cdc-connector" "all")
|
||||||
if(DEFINED TARGET_COMPONENT AND NOT TARGET_COMPONENT STREQUAL "")
|
if(DEFINED TARGET_COMPONENT AND NOT TARGET_COMPONENT STREQUAL "")
|
||||||
set(LIST_INDEX -1)
|
set(LIST_INDEX -1)
|
||||||
list(FIND PACK_TARGETS ${TARGET_COMPONENT} LIST_INDEX)
|
list(FIND PACK_TARGETS ${TARGET_COMPONENT} LIST_INDEX)
|
||||||
|
@ -7,6 +7,6 @@ set_target_properties(cdc_connector PROPERTIES VERSION "1.0.0")
|
|||||||
add_library(cdc_connector_static STATIC cdc_connector.cpp)
|
add_library(cdc_connector_static STATIC cdc_connector.cpp)
|
||||||
set_target_properties(cdc_connector_static PROPERTIES OUTPUT_NAME cdc_connector)
|
set_target_properties(cdc_connector_static PROPERTIES OUTPUT_NAME cdc_connector)
|
||||||
|
|
||||||
install_dev_library(cdc_connector devel)
|
install_dev_library(cdc_connector cdc-connector)
|
||||||
install_dev_library(cdc_connector_static devel)
|
install_dev_library(cdc_connector_static cdc-connector)
|
||||||
install_header(cdc_connector.h devel)
|
install_header(cdc_connector.h cdc-connector)
|
||||||
|
Reference in New Issue
Block a user