You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
named linkage
This commit is contained in:
committed by
Leonid Fedorov
parent
71b5ca0b39
commit
2036e521c7
@ -40,6 +40,7 @@ include(packages)
|
|||||||
include(dirs)
|
include(dirs)
|
||||||
include(includes)
|
include(includes)
|
||||||
include(libs)
|
include(libs)
|
||||||
|
include(ColumnstoreLibrary)
|
||||||
include(columnstore_version)
|
include(columnstore_version)
|
||||||
include(configureEngine)
|
include(configureEngine)
|
||||||
include(compiler_flags)
|
include(compiler_flags)
|
||||||
|
@ -38,33 +38,34 @@ cd - >/dev/null
|
|||||||
echo "Arguments received: $@"
|
echo "Arguments received: $@"
|
||||||
message "Building Mariadb Server from $color_yellow$MDB_SOURCE_PATH$color_normal"
|
message "Building Mariadb Server from $color_yellow$MDB_SOURCE_PATH$color_normal"
|
||||||
|
|
||||||
optparse.define short=A long=asan desc="Build with ASAN" variable=ASAN default=false value=true
|
optparse.define short=t long=build-type desc="Build Type: ${BUILD_TYPE_OPTIONS[*]}" variable=MCS_BUILD_TYPE
|
||||||
optparse.define short=a long=build-path variable=MARIA_BUILD_PATH default="$MDB_SOURCE_PATH"/../MariaDBBuild
|
|
||||||
optparse.define short=B long=run-microbench desc="Compile and run microbenchmarks " variable=RUN_BENCHMARKS default=false value=true
|
|
||||||
optparse.define short=c long=cloud desc="Enable cloud storage" variable=CLOUD_STORAGE_ENABLED default=false value=true
|
|
||||||
optparse.define short=C long=force-cmake-reconfig desc="Force cmake reconfigure" variable=FORCE_CMAKE_CONFIG default=false value=true
|
|
||||||
optparse.define short=d long=distro desc="Choose your OS: ${DISTRO_OPTIONS[*]}" variable=OS
|
optparse.define short=d long=distro desc="Choose your OS: ${DISTRO_OPTIONS[*]}" variable=OS
|
||||||
optparse.define short=D long=install-deps desc="Install dependences" variable=INSTALL_DEPS default=false value=true
|
optparse.define short=D long=install-deps desc="Install dependences" variable=INSTALL_DEPS default=false value=true
|
||||||
optparse.define short=F long=custom-cmake-flags desc="Add custom cmake flags" variable=CUSTOM_CMAKE_FLAGS
|
optparse.define short=C long=force-cmake-reconfig desc="Force cmake reconfigure" variable=FORCE_CMAKE_CONFIG default=false value=true
|
||||||
optparse.define short=f long=do-not-freeze-revision desc="Disable revision freezing, or do not set 'update none' for columnstore submodule in MDB repository" variable=DO_NOT_FREEZE_REVISION default=false value=true
|
|
||||||
optparse.define short=G long=draw-deps desc="Draw dependencies graph" variable=DRAW_DEPS default=false value=true
|
|
||||||
optparse.define short=j long=parallel desc="Number of paralles for build" variable=CPUS default=$(getconf _NPROCESSORS_ONLN)
|
|
||||||
optparse.define short=M long=skip-smoke desc="Skip final smoke test" variable=SKIP_SMOKE default=false value=true
|
|
||||||
optparse.define short=N long=ninja desc="Build with ninja" variable=USE_NINJA default=false value=true
|
|
||||||
optparse.define short=n long=no-clean-install desc="Do not perform a clean install (keep existing db files)" variable=NO_CLEAN default=false value=true
|
|
||||||
optparse.define short=o long=recompile-only variable=RECOMPILE_ONLY default=false value=true
|
|
||||||
optparse.define short=p long=build-packages desc="Build packages" variable=BUILD_PACKAGES default=false value=true
|
|
||||||
optparse.define short=P long=report-path desc="Path for storing reports and profiles" variable=REPORT_PATH default="/core"
|
|
||||||
optparse.define short=r long=restart-services variable=RESTART_SERVICES default=true value=false
|
|
||||||
optparse.define short=R long=server-version desc="MariaDB server version" variable=MARIADB_SERVER_VERSION
|
|
||||||
optparse.define short=s long=sccache desc="Build with sccache" variable=SCCACHE default=false value=true
|
|
||||||
optparse.define short=S long=skip-columnstore-submodules desc="Skip columnstore submodules initialization" variable=SKIP_SUBMODULES default=false value=true
|
optparse.define short=S long=skip-columnstore-submodules desc="Skip columnstore submodules initialization" variable=SKIP_SUBMODULES default=false value=true
|
||||||
optparse.define short=t long=build-type desc="Build Type: ${BUILD_TYPE_OPTIONS[*]}" variable=MCS_BUILD_TYPE
|
|
||||||
optparse.define short=T long=tsan desc="Build with TSAN" variable=TSAN default=false value=true
|
|
||||||
optparse.define short=u long=skip-unit-tests desc="Skip UnitTests" variable=SKIP_UNIT_TESTS default=false value=true
|
optparse.define short=u long=skip-unit-tests desc="Skip UnitTests" variable=SKIP_UNIT_TESTS default=false value=true
|
||||||
optparse.define short=U long=ubsan desc="Build with UBSAN" variable=UBSAN default=false value=true
|
optparse.define short=B long=run-microbench desc="Compile and run microbenchmarks " variable=RUN_BENCHMARKS default=false value=true
|
||||||
optparse.define short=v long=verbose desc="Verbose makefile commands" variable=MAKEFILE_VERBOSE default=false value=true
|
|
||||||
optparse.define short=W long=without-core-dumps desc="Do not produce core dumps" variable=WITHOUT_COREDUMPS default=false value=true
|
optparse.define short=W long=without-core-dumps desc="Do not produce core dumps" variable=WITHOUT_COREDUMPS default=false value=true
|
||||||
|
optparse.define short=v long=verbose desc="Verbose makefile commands" variable=MAKEFILE_VERBOSE default=false value=true
|
||||||
|
optparse.define short=A long=asan desc="Build with ASAN" variable=ASAN default=false value=true
|
||||||
|
optparse.define short=T long=tsan desc="Build with TSAN" variable=TSAN default=false value=true
|
||||||
|
optparse.define short=U long=ubsan desc="Build with UBSAN" variable=UBSAN default=false value=true
|
||||||
|
optparse.define short=P long=report-path desc="Path for storing reports and profiles" variable=REPORT_PATH default="/core"
|
||||||
|
optparse.define short=N long=ninja desc="Build with ninja" variable=USE_NINJA default=false value=true
|
||||||
|
optparse.define short=G long=draw-deps desc="Draw dependencies graph" variable=DRAW_DEPS default=false value=true
|
||||||
|
optparse.define short=M long=skip-smoke desc="Skip final smoke test" variable=SKIP_SMOKE default=false value=true
|
||||||
|
optparse.define short=n long=no-clean-install desc="Do not perform a clean install (keep existing db files)" variable=NO_CLEAN default=false value=true
|
||||||
|
optparse.define short=j long=parallel desc="Number of paralles for build" variable=CPUS default=$(getconf _NPROCESSORS_ONLN)
|
||||||
|
optparse.define short=F long=show-build-flags desc="Print CMake flags, while build" variable=PRINT_CMAKE_FLAGS default=false value=true
|
||||||
|
optparse.define short=c long=cloud desc="Enable cloud storage" variable=CLOUD_STORAGE_ENABLED default=false value=true
|
||||||
|
optparse.define short=f long=do-not-freeze-revision desc="Disable revision freezing, or do not set 'update none' for columnstore submodule in MDB repository" variable=DO_NOT_FREEZE_REVISION default=false value=true
|
||||||
|
optparse.define short=a long=build-path variable=MARIA_BUILD_PATH default="$MDB_SOURCE_PATH"/../MariaDBBuild
|
||||||
|
optparse.define short=O long=static desc="Build all with static libraries" variable=STATIC_BUILD default=false value=true
|
||||||
|
optparse.define short=o long=recompile-only variable=RECOMPILE_ONLY default=false value=true
|
||||||
|
optparse.define short=r long=restart-services variable=RESTART_SERVICES default=true value=false
|
||||||
|
optparse.define short=s long=sccache desc="Build with sccache" variable=SCCACHE default=false value=true
|
||||||
|
optparse.define short=p long=build-packages desc="Build packages" variable=BUILD_PACKAGES default=false value=true
|
||||||
|
optparse.define short=R long=server-version desc="MariaDB server version" variable=MARIADB_SERVER_VERSION
|
||||||
|
|
||||||
source $(optparse.build)
|
source $(optparse.build)
|
||||||
|
|
||||||
@ -284,6 +285,11 @@ construct_cmake_flags() {
|
|||||||
MDB_CMAKE_FLAGS+=(-GNinja)
|
MDB_CMAKE_FLAGS+=(-GNinja)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $STATIC_BUILD = true ]]; then
|
||||||
|
warn "Building all with static linkage"
|
||||||
|
MDB_CMAKE_FLAGS+=(-DCOLUMNSTORE_STATIC_LIBRARIES:BOOL=ON)
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $ASAN = true ]]; then
|
if [[ $ASAN = true ]]; then
|
||||||
warn "Building with Address Sanitizer "
|
warn "Building with Address Sanitizer "
|
||||||
MDB_CMAKE_FLAGS+=(-DWITH_ASAN=ON -DWITH_COLUMNSTORE_ASAN=ON -DWITH_COLUMNSTORE_REPORT_PATH=${REPORT_PATH})
|
MDB_CMAKE_FLAGS+=(-DWITH_ASAN=ON -DWITH_COLUMNSTORE_ASAN=ON -DWITH_COLUMNSTORE_REPORT_PATH=${REPORT_PATH})
|
||||||
@ -363,10 +369,10 @@ construct_cmake_flags() {
|
|||||||
MDB_CMAKE_FLAGS+=(-DDEB=${CODENAME})
|
MDB_CMAKE_FLAGS+=(-DDEB=${CODENAME})
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MDB_CMAKE_FLAGS+=($CUSTOM_CMAKE_FLAGS)
|
if [[ $PRINT_CMAKE_FLAGS = true ]]; then
|
||||||
|
message "Building with flags"
|
||||||
message "Building with flags"
|
newline_array "${MDB_CMAKE_FLAGS[@]}"
|
||||||
newline_array "${MDB_CMAKE_FLAGS[@]}"
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
init_submodules() {
|
init_submodules() {
|
||||||
|
8
cmake/ColumnstoreLibrary.cmake
Normal file
8
cmake/ColumnstoreLibrary.cmake
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Function to create either a static or shared library based on COLUMNSTORE_STATIC_LIBRARIES
|
||||||
|
macro(columnstore_library libname)
|
||||||
|
if(COLUMNSTORE_STATIC_LIBRARIES)
|
||||||
|
add_library(${libname} STATIC ${ARGN})
|
||||||
|
else()
|
||||||
|
add_library(${libname} SHARED ${ARGN})
|
||||||
|
endif()
|
||||||
|
endmacro()
|
@ -1,11 +1,9 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
set(datatypes_LIB_SRCS
|
set(datatypes_LIB_SRCS
|
||||||
mcs_int128.cpp
|
mcs_int128.cpp
|
||||||
mcs_decimal.cpp)
|
mcs_decimal.cpp)
|
||||||
|
|
||||||
add_library(datatypes SHARED ${datatypes_LIB_SRCS})
|
columnstore_library(datatypes ${datatypes_LIB_SRCS})
|
||||||
add_dependencies(datatypes loggingcpp external_boost)
|
add_dependencies(datatypes loggingcpp external_boost)
|
||||||
|
|
||||||
install(TARGETS datatypes DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS datatypes DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ set_source_files_properties(ddl-gram.cpp PROPERTIES COMPILE_FLAGS "-Wno-unused-b
|
|||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}) # to pick up flex/bison output
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}) # to pick up flex/bison output
|
||||||
ADD_LIBRARY(ddlpackage SHARED
|
columnstore_library(ddlpackage
|
||||||
serialize.cpp
|
serialize.cpp
|
||||||
ddl-scan.cpp
|
ddl-scan.cpp
|
||||||
ddl-gram.cpp
|
ddl-gram.cpp
|
||||||
@ -40,4 +40,3 @@ ADD_LIBRARY(ddlpackage SHARED
|
|||||||
add_dependencies(ddlpackage loggingcpp)
|
add_dependencies(ddlpackage loggingcpp)
|
||||||
|
|
||||||
INSTALL(TARGETS ddlpackage DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
INSTALL(TARGETS ddlpackage DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
@ -12,11 +11,10 @@ set(ddlpackageproc_LIB_SRCS
|
|||||||
restorepartitionprocessor.cpp
|
restorepartitionprocessor.cpp
|
||||||
droppartitionprocessor.cpp)
|
droppartitionprocessor.cpp)
|
||||||
|
|
||||||
add_library(ddlpackageproc SHARED ${ddlpackageproc_LIB_SRCS})
|
columnstore_library(ddlpackageproc ${ddlpackageproc_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(ddlpackageproc loggingcpp)
|
add_dependencies(ddlpackageproc loggingcpp)
|
||||||
|
|
||||||
target_link_libraries(ddlpackageproc ${NETSNMP_LIBRARIES})
|
target_link_libraries(ddlpackageproc ${NETSNMP_LIBRARIES})
|
||||||
|
|
||||||
install(TARGETS ddlpackageproc DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS ddlpackageproc DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
INCLUDE_DIRECTORIES( ${ENGINE_COMMON_INCLUDES} )
|
INCLUDE_DIRECTORIES( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
FIND_PACKAGE(BISON REQUIRED)
|
FIND_PACKAGE(BISON REQUIRED)
|
||||||
@ -15,7 +14,7 @@ set_source_files_properties(dml-gram.cpp PROPERTIES COMPILE_FLAGS "-Wno-unused-b
|
|||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}) # to pick up flex/bison output
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}) # to pick up flex/bison output
|
||||||
ADD_LIBRARY(dmlpackage SHARED
|
columnstore_library(dmlpackage
|
||||||
dml-scan.cpp
|
dml-scan.cpp
|
||||||
dml-gram.cpp
|
dml-gram.cpp
|
||||||
calpontdmlfactory.cpp
|
calpontdmlfactory.cpp
|
||||||
@ -40,4 +39,3 @@ ADD_LIBRARY(dmlpackage SHARED
|
|||||||
add_dependencies(dmlpackage loggingcpp)
|
add_dependencies(dmlpackage loggingcpp)
|
||||||
|
|
||||||
INSTALL(TARGETS dmlpackage DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
INSTALL(TARGETS dmlpackage DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
|
|
||||||
@ -13,12 +12,10 @@ set(dmlpackageproc_LIB_SRCS
|
|||||||
autoincrementdata.cpp
|
autoincrementdata.cpp
|
||||||
tablelockdata.cpp)
|
tablelockdata.cpp)
|
||||||
|
|
||||||
add_library(dmlpackageproc SHARED ${dmlpackageproc_LIB_SRCS})
|
columnstore_library(dmlpackageproc ${dmlpackageproc_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(dmlpackageproc loggingcpp)
|
add_dependencies(dmlpackageproc loggingcpp)
|
||||||
|
|
||||||
target_link_libraries(dmlpackageproc ${NETSNMP_LIBRARIES})
|
target_link_libraries(dmlpackageproc ${NETSNMP_LIBRARIES})
|
||||||
|
|
||||||
install(TARGETS dmlpackageproc DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS dmlpackageproc DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} ${ENGINE_UTILS_UDFSDK_INCLUDE} ${ENGINE_DATATYPES_INCLUDE})
|
include_directories( ${ENGINE_COMMON_INCLUDES} ${ENGINE_UTILS_UDFSDK_INCLUDE} ${ENGINE_DATATYPES_INCLUDE})
|
||||||
|
|
||||||
|
|
||||||
@ -46,7 +45,7 @@ set(execplan_LIB_SRCS
|
|||||||
windowfunctioncolumn.cpp
|
windowfunctioncolumn.cpp
|
||||||
udafcolumn.cpp)
|
udafcolumn.cpp)
|
||||||
|
|
||||||
add_library(execplan SHARED ${execplan_LIB_SRCS})
|
columnstore_library(execplan ${execplan_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(execplan loggingcpp)
|
add_dependencies(execplan loggingcpp)
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
include_directories( ${ENGINE_COMMON_INCLUDES} ${ENGINE_SRC_DIR}/tools/passwd)
|
include_directories(${ENGINE_COMMON_INCLUDES} ${ENGINE_SRC_DIR}/tools/passwd)
|
||||||
########### next target ###############
|
# ########## next target ###############
|
||||||
|
|
||||||
set(joblist_LIB_SRCS
|
set(joblist_LIB_SRCS
|
||||||
anydatalist.cpp
|
anydatalist.cpp
|
||||||
@ -52,28 +52,36 @@ set(joblist_LIB_SRCS
|
|||||||
unique32generator.cpp
|
unique32generator.cpp
|
||||||
virtualtable.cpp
|
virtualtable.cpp
|
||||||
windowfunctionstep.cpp
|
windowfunctionstep.cpp
|
||||||
${ENGINE_SRC_DIR}/tools/passwd/secrets.cpp)
|
${ENGINE_SRC_DIR}/tools/passwd/secrets.cpp
|
||||||
|
)
|
||||||
|
|
||||||
########### next target ###############
|
# ########## next target ###############
|
||||||
|
|
||||||
add_library(joblist_server STATIC ${joblist_LIB_SRCS})
|
add_library(joblist_server STATIC ${joblist_LIB_SRCS})
|
||||||
add_dependencies(joblist_server loggingcpp)
|
add_dependencies(joblist_server loggingcpp)
|
||||||
|
|
||||||
########### next target ###############
|
# ########## next target ###############
|
||||||
|
|
||||||
add_definitions(-DMYSQL_SERVICE_THD_TIMEZONE_INCLUDED)
|
add_definitions(-DMYSQL_SERVICE_THD_TIMEZONE_INCLUDED)
|
||||||
|
|
||||||
add_library(joblist SHARED ${joblist_LIB_SRCS})
|
columnstore_library(joblist ${joblist_LIB_SRCS})
|
||||||
target_include_directories(joblist BEFORE PUBLIC ${OPENSSL_INCLUDE_DIR}
|
target_include_directories(
|
||||||
${LIBMARIADB_BININC_DIR}
|
joblist BEFORE PUBLIC ${OPENSSL_INCLUDE_DIR} ${LIBMARIADB_BININC_DIR} ${LIBMARIADB_SRCINC_DIR}
|
||||||
${LIBMARIADB_SRCINC_DIR})
|
)
|
||||||
add_dependencies(joblist loggingcpp)
|
add_dependencies(joblist loggingcpp)
|
||||||
|
|
||||||
install(TARGETS joblist DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(
|
||||||
|
TARGETS joblist
|
||||||
|
DESTINATION ${ENGINE_LIBDIR}
|
||||||
|
COMPONENT columnstore-engine
|
||||||
|
)
|
||||||
|
|
||||||
if (WITH_ORDERBY_UT)
|
if(WITH_ORDERBY_UT)
|
||||||
add_executable(job_orderby_tests orderby-tests.cpp)
|
add_executable(job_orderby_tests orderby-tests.cpp)
|
||||||
target_link_libraries(job_orderby_tests ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS} ${CPPUNIT_LIBRARIES} cppunit)
|
target_link_libraries(job_orderby_tests ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS} ${CPPUNIT_LIBRARIES} cppunit)
|
||||||
install(TARGETS job_orderby_tests DESTINATION ${ENGINE_BINDIR} COMPONENT columnstore-engine)
|
install(
|
||||||
|
TARGETS job_orderby_tests
|
||||||
|
DESTINATION ${ENGINE_BINDIR}
|
||||||
|
COMPONENT columnstore-engine
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ include_directories( ${ENGINE_COMMON_INCLUDES} )
|
|||||||
|
|
||||||
set(oamcpp_LIB_SRCS liboamcpp.cpp oamcache.cpp)
|
set(oamcpp_LIB_SRCS liboamcpp.cpp oamcache.cpp)
|
||||||
|
|
||||||
add_library(oamcpp SHARED ${oamcpp_LIB_SRCS})
|
columnstore_library(oamcpp ${oamcpp_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(oamcpp loggingcpp)
|
add_dependencies(oamcpp loggingcpp)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
|
|
||||||
@ -6,12 +5,10 @@ include_directories( ${ENGINE_COMMON_INCLUDES} )
|
|||||||
|
|
||||||
set(batchloader_LIB_SRCS batchloader.cpp)
|
set(batchloader_LIB_SRCS batchloader.cpp)
|
||||||
|
|
||||||
add_library(batchloader SHARED ${batchloader_LIB_SRCS})
|
columnstore_library(batchloader ${batchloader_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(batchloader loggingcpp)
|
add_dependencies(batchloader loggingcpp)
|
||||||
|
|
||||||
target_link_libraries(batchloader ${NETSNMP_LIBRARIES})
|
target_link_libraries(batchloader ${NETSNMP_LIBRARIES})
|
||||||
|
|
||||||
install(TARGETS batchloader DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS batchloader DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
|
|
||||||
@ -6,9 +5,8 @@ include_directories( ${ENGINE_COMMON_INCLUDES} )
|
|||||||
|
|
||||||
set(cacheutils_LIB_SRCS cacheutils.cpp)
|
set(cacheutils_LIB_SRCS cacheutils.cpp)
|
||||||
|
|
||||||
add_library(cacheutils SHARED ${cacheutils_LIB_SRCS})
|
columnstore_library(cacheutils ${cacheutils_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(cacheutils loggingcpp)
|
add_dependencies(cacheutils loggingcpp)
|
||||||
|
|
||||||
install(TARGETS cacheutils DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS cacheutils DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ include_directories(${ENGINE_COMMON_INCLUDES} ${ENGINE_SRC_DIR}/storage-manager/
|
|||||||
|
|
||||||
set(cloudio_LIB_SRCS SMComm.cpp SMDataFile.cpp SMFileFactory.cpp SMFileSystem.cpp SocketPool.cpp cloud_plugin.cpp ../../datatypes/mcs_datatype.cpp)
|
set(cloudio_LIB_SRCS SMComm.cpp SMDataFile.cpp SMFileFactory.cpp SMFileSystem.cpp SocketPool.cpp cloud_plugin.cpp ../../datatypes/mcs_datatype.cpp)
|
||||||
|
|
||||||
add_library(cloudio SHARED ${cloudio_LIB_SRCS})
|
columnstore_library(cloudio ${cloudio_LIB_SRCS})
|
||||||
|
|
||||||
# IDBDataFile currently depends on cloudio, which is backward.
|
# IDBDataFile currently depends on cloudio, which is backward.
|
||||||
# Once cloudio has been turned into a proper plugin for idbdatafile,
|
# Once cloudio has been turned into a proper plugin for idbdatafile,
|
||||||
@ -26,4 +26,3 @@ target_link_libraries(end_to_end_test ${ENGINE_LDFLAGS} ${ENGINE_EXEC_LIBS} clou
|
|||||||
#target_link_libraries(cloudio_component_test cloudio)
|
#target_link_libraries(cloudio_component_test cloudio)
|
||||||
# Copy end_to_end_test dataFile to binary directory
|
# Copy end_to_end_test dataFile to binary directory
|
||||||
FILE(COPY testData DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
|
FILE(COPY testData DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
@ -14,11 +13,10 @@ set(common_LIB_SRCS
|
|||||||
statistics.cpp
|
statistics.cpp
|
||||||
string_prefixes.cpp)
|
string_prefixes.cpp)
|
||||||
|
|
||||||
add_library(common SHARED ${common_LIB_SRCS})
|
columnstore_library(common ${common_LIB_SRCS})
|
||||||
|
|
||||||
target_link_libraries(common boost_filesystem)
|
target_link_libraries(common boost_filesystem)
|
||||||
|
|
||||||
add_dependencies(common loggingcpp)
|
add_dependencies(common loggingcpp)
|
||||||
|
|
||||||
install(TARGETS common DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS common DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} ${SNAPPY_INCLUDE_DIR} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} ${SNAPPY_INCLUDE_DIR} )
|
||||||
|
|
||||||
#hack for lz4 duplicate header
|
#hack for lz4 duplicate header
|
||||||
@ -11,7 +10,7 @@ set(compress_LIB_SRCS
|
|||||||
|
|
||||||
add_definitions(-DNDEBUG)
|
add_definitions(-DNDEBUG)
|
||||||
|
|
||||||
add_library(compress SHARED ${compress_LIB_SRCS})
|
columnstore_library(compress ${compress_LIB_SRCS})
|
||||||
add_dependencies(compress loggingcpp external_boost)
|
add_dependencies(compress loggingcpp external_boost)
|
||||||
|
|
||||||
target_link_libraries(compress ${SNAPPY_LIBRARIES})
|
target_link_libraries(compress ${SNAPPY_LIBRARIES})
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
set(configcpp_LIB_SRCS configcpp.cpp xmlparser.cpp configstream.cpp)
|
set(configcpp_LIB_SRCS configcpp.cpp xmlparser.cpp configstream.cpp)
|
||||||
|
|
||||||
add_library(configcpp SHARED ${configcpp_LIB_SRCS})
|
columnstore_library(configcpp ${configcpp_LIB_SRCS})
|
||||||
add_dependencies(configcpp loggingcpp)
|
add_dependencies(configcpp loggingcpp)
|
||||||
|
|
||||||
target_compile_definitions(configcpp PUBLIC BOOST_NO_CXX11_SCOPED_ENUMS)
|
target_compile_definitions(configcpp PUBLIC BOOST_NO_CXX11_SCOPED_ENUMS)
|
||||||
|
|
||||||
install(TARGETS configcpp DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS configcpp DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
|
|
||||||
@ -6,7 +5,7 @@ include_directories( ${ENGINE_COMMON_INCLUDES} )
|
|||||||
|
|
||||||
set(dataconvert_LIB_SRCS dataconvert.cpp)
|
set(dataconvert_LIB_SRCS dataconvert.cpp)
|
||||||
|
|
||||||
add_library(dataconvert SHARED ${dataconvert_LIB_SRCS})
|
columnstore_library(dataconvert ${dataconvert_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(dataconvert loggingcpp)
|
add_dependencies(dataconvert loggingcpp)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
|
|
||||||
@ -6,11 +5,10 @@ include_directories( ${ENGINE_COMMON_INCLUDES} )
|
|||||||
|
|
||||||
set(ddlcleanuputil_LIB_SRCS ddlcleanuputil.cpp)
|
set(ddlcleanuputil_LIB_SRCS ddlcleanuputil.cpp)
|
||||||
|
|
||||||
add_library(ddlcleanuputil SHARED ${ddlcleanuputil_LIB_SRCS})
|
columnstore_library(ddlcleanuputil ${ddlcleanuputil_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(ddlcleanuputil loggingcpp)
|
add_dependencies(ddlcleanuputil loggingcpp)
|
||||||
|
|
||||||
target_link_libraries(ddlcleanuputil ${NETSNMP_LIBRARIES})
|
target_link_libraries(ddlcleanuputil ${NETSNMP_LIBRARIES})
|
||||||
|
|
||||||
install(TARGETS ddlcleanuputil DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS ddlcleanuputil DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
include_directories(${ENGINE_COMMON_INCLUDES})
|
include_directories(${ENGINE_COMMON_INCLUDES})
|
||||||
|
|
||||||
# ########## next target ###############
|
|
||||||
# func_decode_oracle.cpp
|
|
||||||
|
|
||||||
set(funcexp_LIB_SRCS
|
set(funcexp_LIB_SRCS
|
||||||
functor.cpp
|
functor.cpp
|
||||||
funcexp.cpp
|
funcexp.cpp
|
||||||
@ -145,7 +142,7 @@ set(funcexp_LIB_SRCS
|
|||||||
sql_crypt.cpp
|
sql_crypt.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(funcexp SHARED ${funcexp_LIB_SRCS})
|
columnstore_library(funcexp ${funcexp_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(funcexp loggingcpp)
|
add_dependencies(funcexp loggingcpp)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} ../cloudio)
|
include_directories( ${ENGINE_COMMON_INCLUDES} ../cloudio)
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
@ -13,7 +12,7 @@ set(idbdatafile_LIB_SRCS
|
|||||||
PosixFileSystem.cpp
|
PosixFileSystem.cpp
|
||||||
UnbufferedFile.cpp)
|
UnbufferedFile.cpp)
|
||||||
|
|
||||||
add_library(idbdatafile SHARED ${idbdatafile_LIB_SRCS})
|
columnstore_library(idbdatafile ${idbdatafile_LIB_SRCS})
|
||||||
|
|
||||||
target_link_libraries(idbdatafile ${NETSNMP_LIBRARIES} ${ENGINE_OAM_LIBS} boost_filesystem boost_system)
|
target_link_libraries(idbdatafile ${NETSNMP_LIBRARIES} ${ENGINE_OAM_LIBS} boost_filesystem boost_system)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
|
|
||||||
@ -6,10 +5,8 @@ include_directories( ${ENGINE_COMMON_INCLUDES} )
|
|||||||
|
|
||||||
set(joiner_LIB_SRCS tuplejoiner.cpp joinpartition.cpp)
|
set(joiner_LIB_SRCS tuplejoiner.cpp joinpartition.cpp)
|
||||||
|
|
||||||
add_library(joiner SHARED ${joiner_LIB_SRCS})
|
columnstore_library(joiner ${joiner_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(joiner loggingcpp)
|
add_dependencies(joiner loggingcpp)
|
||||||
|
|
||||||
install(TARGETS joiner DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS joiner DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,10 +9,9 @@ include_directories( ${ENGINE_COMMON_INCLUDES} )
|
|||||||
|
|
||||||
set(libmysql_client_LIB_SRCS libmysql_client.cpp)
|
set(libmysql_client_LIB_SRCS libmysql_client.cpp)
|
||||||
|
|
||||||
add_library(libmysql_client SHARED ${libmysql_client_LIB_SRCS})
|
columnstore_library(libmysql_client ${libmysql_client_LIB_SRCS})
|
||||||
target_link_libraries(libmysql_client ${MARIADB_CLIENT_LIBS})
|
target_link_libraries(libmysql_client ${MARIADB_CLIENT_LIBS})
|
||||||
|
|
||||||
add_dependencies(libmysql_client loggingcpp)
|
add_dependencies(libmysql_client loggingcpp)
|
||||||
|
|
||||||
install(TARGETS libmysql_client DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS libmysql_client DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
@ -18,7 +17,7 @@ ADD_CUSTOM_COMMAND(
|
|||||||
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/messageids.h PROPERTIES GENERATED TRUE)
|
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/messageids.h PROPERTIES GENERATED TRUE)
|
||||||
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/errorids.h PROPERTIES GENERATED TRUE)
|
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/errorids.h PROPERTIES GENERATED TRUE)
|
||||||
|
|
||||||
add_library(loggingcpp SHARED
|
columnstore_library(loggingcpp
|
||||||
message.cpp
|
message.cpp
|
||||||
messagelog.cpp
|
messagelog.cpp
|
||||||
logger.cpp
|
logger.cpp
|
||||||
@ -34,4 +33,3 @@ add_dependencies(loggingcpp external_boost)
|
|||||||
install(TARGETS loggingcpp DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS loggingcpp DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
install(FILES MessageFile.txt ErrorMessage.txt DESTINATION ${ENGINE_SYSCONFDIR}/columnstore COMPONENT columnstore-engine)
|
install(FILES MessageFile.txt ErrorMessage.txt DESTINATION ${ENGINE_SYSCONFDIR}/columnstore COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -9,9 +9,8 @@ include_directories( ${ENGINE_COMMON_INCLUDES} )
|
|||||||
|
|
||||||
set(querystats_LIB_SRCS querystats.cpp)
|
set(querystats_LIB_SRCS querystats.cpp)
|
||||||
|
|
||||||
add_library(querystats SHARED ${querystats_LIB_SRCS})
|
columnstore_library(querystats ${querystats_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(querystats loggingcpp)
|
add_dependencies(querystats loggingcpp)
|
||||||
|
|
||||||
install(TARGETS querystats DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS querystats DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
|
|
||||||
@ -12,10 +11,9 @@ set(querytele_LIB_SRCS
|
|||||||
QueryTeleService.cpp
|
QueryTeleService.cpp
|
||||||
queryteleprotoimpl.cpp)
|
queryteleprotoimpl.cpp)
|
||||||
|
|
||||||
add_library(querytele SHARED ${querytele_LIB_SRCS})
|
columnstore_library(querytele ${querytele_LIB_SRCS})
|
||||||
add_dependencies(querytele external_boost external_thrift)
|
add_dependencies(querytele external_boost external_thrift)
|
||||||
|
|
||||||
target_include_directories(querytele PRIVATE ${THRIFT_INCLUDE_DIRS})
|
target_include_directories(querytele PRIVATE ${THRIFT_INCLUDE_DIRS})
|
||||||
target_link_libraries(querytele ${THRIFT_LIBRARY})
|
target_link_libraries(querytele ${THRIFT_LIBRARY})
|
||||||
install(TARGETS querytele DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS querytele DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES}
|
include_directories( ${ENGINE_COMMON_INCLUDES}
|
||||||
../../dbcon/mysql )
|
../../dbcon/mysql )
|
||||||
|
|
||||||
@ -8,7 +7,7 @@ set(regr_LIB_SRCS regr_avgx.cpp regr_avgy.cpp regr_count.cpp regr_slope.cpp regr
|
|||||||
|
|
||||||
add_definitions(-DMYSQL_DYNAMIC_PLUGIN)
|
add_definitions(-DMYSQL_DYNAMIC_PLUGIN)
|
||||||
|
|
||||||
add_library(regr SHARED ${regr_LIB_SRCS} )
|
columnstore_library(regr ${regr_LIB_SRCS} )
|
||||||
|
|
||||||
add_dependencies(regr loggingcpp)
|
add_dependencies(regr loggingcpp)
|
||||||
|
|
||||||
@ -18,7 +17,7 @@ install(TARGETS regr DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
|||||||
|
|
||||||
set(regr_mysql_LIB_SRCS regrmysql.cpp modamysql.cpp)
|
set(regr_mysql_LIB_SRCS regrmysql.cpp modamysql.cpp)
|
||||||
|
|
||||||
add_library(regr_mysql SHARED ${regr_mysql_LIB_SRCS})
|
columnstore_library(regr_mysql ${regr_mysql_LIB_SRCS})
|
||||||
add_dependencies(regr_mysql external_boost)
|
add_dependencies(regr_mysql external_boost)
|
||||||
|
|
||||||
install(TARGETS regr_mysql DESTINATION ${MARIADB_PLUGINDIR} COMPONENT columnstore-engine)
|
install(TARGETS regr_mysql DESTINATION ${MARIADB_PLUGINDIR} COMPONENT columnstore-engine)
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
|
|
||||||
@ -8,7 +7,7 @@ set(rowgroup_LIB_SRCS rowaggregation.cpp rowgroup.cpp rowstorage.cpp)
|
|||||||
|
|
||||||
#librowgroup_la_CXXFLAGS = $(march_flags) $(AM_CXXFLAGS)
|
#librowgroup_la_CXXFLAGS = $(march_flags) $(AM_CXXFLAGS)
|
||||||
|
|
||||||
add_library(rowgroup SHARED ${rowgroup_LIB_SRCS})
|
columnstore_library(rowgroup ${rowgroup_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(rowgroup loggingcpp external_boost)
|
add_dependencies(rowgroup loggingcpp external_boost)
|
||||||
|
|
||||||
|
@ -1,14 +1,8 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
########### next target ###############
|
|
||||||
|
|
||||||
set(rwlock_LIB_SRCS rwlock.cpp rwlock_local.cpp)
|
set(rwlock_LIB_SRCS rwlock.cpp rwlock_local.cpp)
|
||||||
|
|
||||||
add_library(rwlock SHARED ${rwlock_LIB_SRCS})
|
columnstore_library(rwlock ${rwlock_LIB_SRCS})
|
||||||
add_dependencies(rwlock external_boost)
|
add_dependencies(rwlock external_boost)
|
||||||
|
|
||||||
install(TARGETS rwlock DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS rwlock DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
ADD_DEFINITIONS(-fPIC -DPIC)
|
ADD_DEFINITIONS(-fPIC -DPIC)
|
||||||
|
|
||||||
add_library(idbboot STATIC installdir.cpp)
|
columnstore_library(idbboot installdir.cpp)
|
||||||
add_dependencies(idbboot external_boost)
|
add_dependencies(idbboot external_boost)
|
||||||
|
|
||||||
INSTALL(TARGETS idbboot DESTINATION ${ENGINE_LIBDIR})
|
INSTALL(TARGETS idbboot DESTINATION ${ENGINE_LIBDIR})
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
set(threadpool_LIB_SRCS weightedthreadpool.cpp threadpool.cpp prioritythreadpool.cpp fair_threadpool.cpp)
|
set(threadpool_LIB_SRCS weightedthreadpool.cpp threadpool.cpp prioritythreadpool.cpp fair_threadpool.cpp)
|
||||||
add_library(threadpool SHARED ${threadpool_LIB_SRCS})
|
columnstore_library(threadpool ${threadpool_LIB_SRCS})
|
||||||
add_dependencies(threadpool loggingcpp external_boost)
|
add_dependencies(threadpool loggingcpp external_boost)
|
||||||
target_link_libraries(threadpool boost_chrono)
|
target_link_libraries(threadpool boost_chrono)
|
||||||
install(TARGETS threadpool DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS threadpool DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
include_directories(${ENGINE_COMMON_INCLUDES} ../../dbcon/mysql)
|
include_directories(${ENGINE_COMMON_INCLUDES} ../../dbcon/mysql)
|
||||||
# ########## next target ###############
|
|
||||||
|
|
||||||
set(udfsdk_LIB_SRCS
|
set(udfsdk_LIB_SRCS
|
||||||
udfsdk.cpp
|
udfsdk.cpp
|
||||||
@ -13,7 +12,7 @@ set(udfsdk_LIB_SRCS
|
|||||||
|
|
||||||
add_definitions(-DMYSQL_DYNAMIC_PLUGIN)
|
add_definitions(-DMYSQL_DYNAMIC_PLUGIN)
|
||||||
|
|
||||||
add_library(udfsdk SHARED ${udfsdk_LIB_SRCS})
|
columnstore_library(udfsdk ${udfsdk_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(udfsdk loggingcpp)
|
add_dependencies(udfsdk loggingcpp)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
|
|
||||||
@ -24,7 +23,7 @@ set(windowfunction_LIB_SRCS
|
|||||||
wf_sum_avg.cpp
|
wf_sum_avg.cpp
|
||||||
wf_udaf.cpp)
|
wf_udaf.cpp)
|
||||||
|
|
||||||
add_library(windowfunction SHARED ${windowfunction_LIB_SRCS})
|
columnstore_library(windowfunction ${windowfunction_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(windowfunction loggingcpp)
|
add_dependencies(windowfunction loggingcpp)
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ set(brm_LIB_SRCS
|
|||||||
vss.cpp
|
vss.cpp
|
||||||
../../datatypes/mcs_datatype.cpp)
|
../../datatypes/mcs_datatype.cpp)
|
||||||
|
|
||||||
add_library(brm SHARED ${brm_LIB_SRCS})
|
columnstore_library(brm ${brm_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(brm loggingcpp)
|
add_dependencies(brm loggingcpp)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} ${S3API_DIR} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} ${S3API_DIR} )
|
||||||
|
|
||||||
link_directories(${CMAKE_BINARY_DIR}/lib)
|
link_directories(${CMAKE_BINARY_DIR}/lib)
|
||||||
@ -26,7 +25,7 @@ set(we_bulk_STAT_SRCS
|
|||||||
we_workers.cpp)
|
we_workers.cpp)
|
||||||
|
|
||||||
ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
|
ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
|
||||||
add_library(we_bulk STATIC ${we_bulk_STAT_SRCS})
|
columnstore_library(we_bulk ${we_bulk_STAT_SRCS})
|
||||||
|
|
||||||
add_dependencies(we_bulk loggingcpp)
|
add_dependencies(we_bulk loggingcpp)
|
||||||
|
|
||||||
@ -43,4 +42,3 @@ add_dependencies(cpimport.bin marias3)
|
|||||||
target_link_libraries(cpimport.bin ${ENGINE_LDFLAGS} ${NETSNMP_LIBRARIES} ${ENGINE_WRITE_LIBS} ${S3API_DEPS} we_bulk we_xml)
|
target_link_libraries(cpimport.bin ${ENGINE_LDFLAGS} ${NETSNMP_LIBRARIES} ${ENGINE_WRITE_LIBS} ${S3API_DEPS} we_bulk we_xml)
|
||||||
|
|
||||||
install(TARGETS cpimport.bin DESTINATION ${ENGINE_BINDIR} COMPONENT columnstore-engine)
|
install(TARGETS cpimport.bin DESTINATION ${ENGINE_BINDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
|
|
||||||
@ -6,12 +5,10 @@ include_directories( ${ENGINE_COMMON_INCLUDES} )
|
|||||||
|
|
||||||
set(writeengineclient_LIB_SRCS we_clients.cpp we_ddlcommandclient.cpp we_dmlcommandclient.cpp)
|
set(writeengineclient_LIB_SRCS we_clients.cpp we_ddlcommandclient.cpp we_dmlcommandclient.cpp)
|
||||||
|
|
||||||
add_library(writeengineclient SHARED ${writeengineclient_LIB_SRCS})
|
columnstore_library(writeengineclient ${writeengineclient_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(writeengineclient loggingcpp)
|
add_dependencies(writeengineclient loggingcpp)
|
||||||
|
|
||||||
target_link_libraries(writeengineclient ${NETSNMP_LIBRARIES})
|
target_link_libraries(writeengineclient ${NETSNMP_LIBRARIES})
|
||||||
|
|
||||||
install(TARGETS writeengineclient DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS writeengineclient DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
@ -9,7 +8,7 @@ set(writeengineredistribute_LIB_SRCS
|
|||||||
we_redistributecontrolthread.cpp
|
we_redistributecontrolthread.cpp
|
||||||
we_redistributeworkerthread.cpp)
|
we_redistributeworkerthread.cpp)
|
||||||
|
|
||||||
add_library(writeengineredistribute SHARED ${writeengineredistribute_LIB_SRCS})
|
columnstore_library(writeengineredistribute ${writeengineredistribute_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(writeengineredistribute loggingcpp)
|
add_dependencies(writeengineredistribute loggingcpp)
|
||||||
|
|
||||||
@ -19,4 +18,3 @@ target_compile_definitions(writeengineredistribute PUBLIC BOOST_NO_CXX11_SCOPED_
|
|||||||
|
|
||||||
|
|
||||||
install(TARGETS writeengineredistribute DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
install(TARGETS writeengineredistribute DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
|
|
||||||
@ -37,7 +36,7 @@ set(writeengine_LIB_SRCS
|
|||||||
|
|
||||||
add_definitions(-D_FILE_OFFSET_BITS=64)
|
add_definitions(-D_FILE_OFFSET_BITS=64)
|
||||||
|
|
||||||
add_library(writeengine SHARED ${writeengine_LIB_SRCS})
|
columnstore_library(writeengine ${writeengine_LIB_SRCS})
|
||||||
|
|
||||||
add_dependencies(writeengine loggingcpp)
|
add_dependencies(writeengine loggingcpp)
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||||
|
|
||||||
|
|
||||||
@ -12,9 +11,8 @@ set(we_xml_STAT_SRCS
|
|||||||
|
|
||||||
add_definitions(-D_FILE_OFFSET_BITS=64)
|
add_definitions(-D_FILE_OFFSET_BITS=64)
|
||||||
|
|
||||||
add_library(we_xml STATIC ${we_xml_STAT_SRCS})
|
columnstore_library(we_xml ${we_xml_STAT_SRCS})
|
||||||
|
|
||||||
add_dependencies(we_xml loggingcpp)
|
add_dependencies(we_xml loggingcpp)
|
||||||
|
|
||||||
INSTALL(TARGETS we_xml DESTINATION ${ENGINE_LIBDIR})
|
INSTALL(TARGETS we_xml DESTINATION ${ENGINE_LIBDIR})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user