mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-04-18 21:44:02 +03:00
Add CMake build tree files
This commit is contained in:
parent
3bee340d5f
commit
424628349b
1
.gitignore
vendored
1
.gitignore
vendored
@ -27,6 +27,7 @@ config.status
|
||||
stamp-h1
|
||||
export/
|
||||
libtool
|
||||
libnetsnmpmibs-prefix
|
||||
buildFlags
|
||||
dbcon/ddlpackage/ddl-gram.cpp
|
||||
dbcon/ddlpackage/ddl-gram.h
|
||||
|
461
CMakeLists.txt
Normal file
461
CMakeLists.txt
Normal file
@ -0,0 +1,461 @@
|
||||
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
|
||||
# Avoid warnings in higher versions
|
||||
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 2.6)
|
||||
CMAKE_POLICY(VERSION 2.8)
|
||||
endif()
|
||||
|
||||
# explicitly set the policy to OLD
|
||||
# (cannot use NEW, not everyone is on cmake-2.8.12 yet)
|
||||
IF(POLICY CMP0022)
|
||||
CMAKE_POLICY(SET CMP0022 OLD)
|
||||
ENDIF()
|
||||
|
||||
# We use the LOCATION target property (CMP0026)
|
||||
# and get_target_property() for non-existent targets (CMP0045)
|
||||
# and INSTALL_NAME_DIR (CMP0042)
|
||||
IF(CMAKE_VERSION VERSION_EQUAL "3.0.0" OR
|
||||
CMAKE_VERSION VERSION_GREATER "3.0.0")
|
||||
CMAKE_POLICY(SET CMP0026 OLD)
|
||||
CMAKE_POLICY(SET CMP0045 OLD)
|
||||
CMAKE_POLICY(SET CMP0042 OLD)
|
||||
ENDIF()
|
||||
|
||||
MESSAGE(STATUS "Running cmake version ${CMAKE_VERSION}")
|
||||
|
||||
#set( CMAKE_VERBOSE_MAKEFILE on )
|
||||
|
||||
|
||||
|
||||
#AC_PREREQ(2.59)
|
||||
#AC_INIT(columnstore, 1.0.2, support@mariadb.com)
|
||||
|
||||
#AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
SET (ENGINE_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
SET (INSTALL_ENGINE "/usr/local/mariadb/columnstore")
|
||||
|
||||
#
|
||||
# Tests for header files
|
||||
#
|
||||
INCLUDE (CheckIncludeFiles)
|
||||
INCLUDE (CheckIncludeFileCXX)
|
||||
INCLUDE (CheckCSourceCompiles)
|
||||
INCLUDE (CheckCXXSourceCompiles)
|
||||
INCLUDE (CheckStructHasMember)
|
||||
INCLUDE (CheckLibraryExists)
|
||||
INCLUDE (CheckFunctionExists)
|
||||
INCLUDE (CheckCCompilerFlag)
|
||||
INCLUDE (CheckCSourceRuns)
|
||||
INCLUDE (CheckSymbolExists)
|
||||
INCLUDE (CheckTypeSize)
|
||||
|
||||
CHECK_INCLUDE_FILES (alloca.h HAVE_ALLOCA_H)
|
||||
CHECK_INCLUDE_FILES (arpa/inet.h HAVE_ARPA_INET_H)
|
||||
CHECK_INCLUDE_FILES (dlfcn.h HAVE_DLFCN_H)
|
||||
CHECK_INCLUDE_FILES (fcntl.h HAVE_FCNTL_H)
|
||||
CHECK_INCLUDE_FILES (inttypes.h HAVE_INTTYPES_H)
|
||||
CHECK_INCLUDE_FILES (limits.h HAVE_LIMITS_H)
|
||||
CHECK_INCLUDE_FILES (malloc.h HAVE_MALLOC_H)
|
||||
CHECK_INCLUDE_FILES (memory.h HAVE_MEMORY_H)
|
||||
CHECK_INCLUDE_FILES (ncurses.h HAVE_NCURSES_H)
|
||||
CHECK_INCLUDE_FILES (netdb.h HAVE_NETDB_H)
|
||||
CHECK_INCLUDE_FILES (netinet/in.h HAVE_NETINET_IN_H)
|
||||
CHECK_INCLUDE_FILES (readline/readline.h HAVE_READLINE_READLINE_H)
|
||||
CHECK_INCLUDE_FILES (stddef.h HAVE_STDDEF_H)
|
||||
CHECK_INCLUDE_FILES (stdint.h HAVE_STDINT_H)
|
||||
CHECK_INCLUDE_FILES (stdlib.h HAVE_STDLIB_H)
|
||||
CHECK_INCLUDE_FILES (strings.h HAVE_STRINGS_H)
|
||||
CHECK_INCLUDE_FILES (string.h HAVE_STRING_H)
|
||||
CHECK_INCLUDE_FILES (syslog.h HAVE_SYSLOG_H)
|
||||
CHECK_INCLUDE_FILES (sys/file.h HAVE_SYS_FILE_H)
|
||||
CHECK_INCLUDE_FILES (sys/mount.h HAVE_SYS_MOUNT_H)
|
||||
CHECK_INCLUDE_FILES (sys/select.h HAVE_SYS_SELECT_H)
|
||||
CHECK_INCLUDE_FILES (sys/socket.h HAVE_SYS_SOCKET_H)
|
||||
CHECK_INCLUDE_FILES (sys/statfs.h HAVE_SYS_STATFS_H)
|
||||
CHECK_INCLUDE_FILES (sys/stat.h HAVE_SYS_STAT_H)
|
||||
CHECK_INCLUDE_FILES (sys/timeb.h HAVE_SYS_TIMEB_H)
|
||||
CHECK_INCLUDE_FILES (sys/time.h HAVE_SYS_TIME_H)
|
||||
CHECK_INCLUDE_FILES (sys/types.h HAVE_SYS_TYPES_H)
|
||||
CHECK_INCLUDE_FILES (sys/wait.h HAVE_SYS_WAIT_H)
|
||||
CHECK_INCLUDE_FILES (unistd.h HAVE_UNISTD_H)
|
||||
CHECK_INCLUDE_FILES (utime.h HAVE_UTIME_H)
|
||||
CHECK_INCLUDE_FILES (values.h HAVE_VALUES_H)
|
||||
CHECK_INCLUDE_FILES (vfork.h HAVE_VFORK_H)
|
||||
CHECK_INCLUDE_FILES (wchar.h HAVE_WCHAR_H)
|
||||
CHECK_SYMBOL_EXISTS(mbstate_t "wchar.h" HAVE_MBSTATE_T)
|
||||
CHECK_INCLUDE_FILES (wctype.h HAVE_WCTYPE_H)
|
||||
CHECK_INCLUDE_FILES (zlib.h HAVE_ZLIB_H)
|
||||
|
||||
|
||||
CHECK_FUNCTION_EXISTS (getb67 CRAY_STACKSEG_END)
|
||||
CHECK_FUNCTION_EXISTS (alarm HAVE_ALARM)
|
||||
CHECK_FUNCTION_EXISTS (alloca HAVE_ALLOCA)
|
||||
CHECK_FUNCTION_EXISTS (btowc HAVE_BTOWC)
|
||||
CHECK_FUNCTION_EXISTS (dup2 HAVE_DUP2)
|
||||
CHECK_FUNCTION_EXISTS (floor HAVE_FLOOR)
|
||||
CHECK_FUNCTION_EXISTS (fork HAVE_FORK)
|
||||
CHECK_FUNCTION_EXISTS (ftime HAVE_FTIME)
|
||||
CHECK_FUNCTION_EXISTS (ftruncate HAVE_FTRUNCATE)
|
||||
CHECK_FUNCTION_EXISTS (getenv HAVE_DECL_GETENV)
|
||||
CHECK_FUNCTION_EXISTS (gethostbyname HAVE_GETHOSTBYNAME)
|
||||
CHECK_FUNCTION_EXISTS (getpagesize HAVE_GETPAGESIZE)
|
||||
CHECK_FUNCTION_EXISTS (gettimeofday HAVE_GETTIMEOFDAY)
|
||||
CHECK_FUNCTION_EXISTS (inet_ntoa HAVE_INET_NTOA)
|
||||
CHECK_FUNCTION_EXISTS (isascii HAVE_ISASCII)
|
||||
CHECK_FUNCTION_EXISTS (localtime_r HAVE_LOCALTIME_R)
|
||||
CHECK_FUNCTION_EXISTS (malloc HAVE_MALLOC)
|
||||
CHECK_FUNCTION_EXISTS (mbsrtowcs HAVE_MBSRTOWCS)
|
||||
CHECK_FUNCTION_EXISTS (memchr HAVE_MEMCHR)
|
||||
CHECK_FUNCTION_EXISTS (memmove HAVE_MEMMOVE)
|
||||
CHECK_FUNCTION_EXISTS (memcpy HAVE_MEMCPY)
|
||||
CHECK_FUNCTION_EXISTS (memset HAVE_MEMSET)
|
||||
CHECK_FUNCTION_EXISTS (mkdir HAVE_MKDIR)
|
||||
CHECK_FUNCTION_EXISTS (pow HAVE_POW)
|
||||
CHECK_FUNCTION_EXISTS (regcomp HAVE_REGCOMP)
|
||||
CHECK_FUNCTION_EXISTS (rmdir HAVE_RMDIR)
|
||||
CHECK_FUNCTION_EXISTS (select HAVE_SELECT)
|
||||
CHECK_FUNCTION_EXISTS (setenv HAVE_SETENV)
|
||||
CHECK_FUNCTION_EXISTS (setlocale HAVE_SETLOCALE)
|
||||
CHECK_FUNCTION_EXISTS (socket HAVE_SOCKET)
|
||||
CHECK_FUNCTION_EXISTS (strcasecmp HAVE_STRCASECMP)
|
||||
CHECK_FUNCTION_EXISTS (strchr HAVE_STRCHR)
|
||||
CHECK_FUNCTION_EXISTS (strcspn HAVE_STRCSPN)
|
||||
CHECK_FUNCTION_EXISTS (strdup HAVE_STRDUP)
|
||||
CHECK_FUNCTION_EXISTS (strerror HAVE_STRERROR)
|
||||
CHECK_FUNCTION_EXISTS (strerror_r HAVE_STRERROR_R)
|
||||
CHECK_FUNCTION_EXISTS (strftime HAVE_STRFTIME)
|
||||
CHECK_FUNCTION_EXISTS (strrchr HAVE_STRRCHR)
|
||||
CHECK_FUNCTION_EXISTS (strspn HAVE_STRSPN)
|
||||
CHECK_FUNCTION_EXISTS (strstr HAVE_STRSTR)
|
||||
CHECK_FUNCTION_EXISTS (strtol HAVE_STRTOL)
|
||||
CHECK_FUNCTION_EXISTS (strtoul HAVE_STRTOUL)
|
||||
CHECK_FUNCTION_EXISTS (strtoull HAVE_STRTOULL)
|
||||
CHECK_FUNCTION_EXISTS (utime HAVE_UTIME)
|
||||
CHECK_FUNCTION_EXISTS (vfork HAVE_VFORK)
|
||||
CHECK_FUNCTION_EXISTS (wmempcpy HAVE_WMEMPCPY)
|
||||
|
||||
CHECK_TYPE_SIZE (ptrdiff_t PTRDIFF_T)
|
||||
|
||||
#AC_CONFIG_HEADER([config.h])
|
||||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
||||
|
||||
#AC_ENABLE_STATIC([no])
|
||||
#AC_PROG_LIBTOOL
|
||||
#AC_PROG_INSTALL
|
||||
|
||||
|
||||
#AC_PROG_LEX
|
||||
#if test "x$LEX" = "x:"; then
|
||||
# AC_MSG_ERROR([Could not find a usable lex program!])
|
||||
#fi
|
||||
|
||||
INCLUDE(bison.cmake)
|
||||
|
||||
SET (LEX_EXECUTABLE /usr/bin/flex)
|
||||
|
||||
#AC_PROG_AWK
|
||||
#AC_PROG_CPP
|
||||
#AC_PROG_LN_S
|
||||
#AC_PROG_MAKE_SET
|
||||
|
||||
## FIXME:
|
||||
## for quicklz (note this macro is not needed if autotools is 1.14 or
|
||||
## greater, but old versions of CentOS do not have newer version
|
||||
## of autotools
|
||||
#AM_PROG_CC_C_O
|
||||
|
||||
# Checks for header files.
|
||||
#AC_FUNC_ALLOCA
|
||||
#AC_HEADER_STDC
|
||||
#AC_HEADER_SYS_WAIT
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
#AC_HEADER_STAT
|
||||
#AC_HEADER_STDBOOL
|
||||
#AC_C_CONST
|
||||
#AC_C_INLINE
|
||||
#AC_TYPE_MODE_T
|
||||
#AC_TYPE_OFF_T
|
||||
#AC_TYPE_PID_T
|
||||
#AC_C_RESTRICT
|
||||
#AC_TYPE_SIZE_T
|
||||
#AC_HEADER_TIME
|
||||
#AC_STRUCT_TM
|
||||
#AC_C_VOLATILE
|
||||
|
||||
# Checks for library functions.
|
||||
#AC_FUNC_ERROR_AT_LINE
|
||||
#AC_REPLACE_FNMATCH
|
||||
#AC_FUNC_FORK
|
||||
#AC_FUNC_MALLOC
|
||||
#AC_FUNC_MEMCMP
|
||||
#AC_FUNC_MKTIME
|
||||
#AC_FUNC_SELECT_ARGTYPES
|
||||
#AC_FUNC_SETVBUF_REVERSED
|
||||
#AC_TYPE_SIGNAL
|
||||
#AC_FUNC_STAT
|
||||
#AC_FUNC_STRERROR_R
|
||||
#AC_FUNC_STRFTIME
|
||||
#AC_FUNC_STRTOD
|
||||
#AC_FUNC_UTIME_NULL
|
||||
#AC_CHECK_FUNCS([alarm dup2 floor ftime ftruncate gethostbyname getpagesize gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir pow regcomp rmdir select setenv setlocale socket strcasecmp strchr strcspn strdup strerror strrchr strspn strstr strtol strtoul strtoull utime])
|
||||
|
||||
#AM_PATH_XML2([2.6.26])
|
||||
#if test "x$XML_CPPFLAGS" = "x"; then
|
||||
# AC_MSG_ERROR([Could not find a usable libxml2 development environment!])
|
||||
#fi
|
||||
|
||||
#AC_MSG_CHECKING(whether to enable debugging)
|
||||
#AC_SUBST([idb_cppflags], [' '])
|
||||
#AC_ARG_WITH([debug],
|
||||
# AS_HELP_STRING([--with-debug],[include debugging symbols/no optimization]))
|
||||
#if test "x$with_debug" = "xyes"; then
|
||||
# AC_SUBST([idb_cxxflags],['-ggdb3 -O0 -Wall -D_DEBUG'])
|
||||
# AC_SUBST([idb_cflags],['-ggdb3 -O0 -Wall -D _DEBUG'])
|
||||
# AC_MSG_RESULT(yes)
|
||||
#else
|
||||
# AC_SUBST([idb_cxxflags],["-g0 -O3 -fno-strict-aliasing -Wall $cxx_extra_flags"])
|
||||
# AC_SUBST([idb_cflags],['-g0 -O3 -fno-strict-aliasing -Wall'])
|
||||
# AC_MSG_RESULT(no)
|
||||
#fi
|
||||
|
||||
|
||||
SET(CMAKE_CXX_FLAGS "-g0 -O3 -fno-strict-aliasing -Wall -DHAVE_CONFIG_H")
|
||||
SET(CMAKE_C_FLAGS "-g0 -O3 -fno-strict-aliasing -Wall -DHAVE_CONFIG_H")
|
||||
|
||||
#SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb3 -O0 -Wall -D_DEBUG -DHAVE_CONFIG_H")
|
||||
#SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb3 -O0 -Wall -D _DEBUG -DHAVE_CONFIG_H")
|
||||
|
||||
|
||||
|
||||
#AC_SUBST([idb_ldflags],['-Wl,--rpath -Wl,${idbinstall}/lib -Wl,--no-as-needed -Wl,--add-needed'])
|
||||
SET (ENGINE_LDFLAGS "-Wl,--rpath -Wl,${INSTALL_ENGINE}/lib -Wl,--no-as-needed -Wl,--add-needed")
|
||||
|
||||
|
||||
SET (ENGINE_LIBDIR "${INSTALL_ENGINE}/lib")
|
||||
SET (ENGINE_BINDIR "${INSTALL_ENGINE}/bin")
|
||||
SET (ENGINE_INCDIR "${INSTALL_ENGINE}/include")
|
||||
SET (ENGINE_ETCDIR "${INSTALL_ENGINE}/etc")
|
||||
SET (ENGINE_SYSCONFDIR "${INSTALL_ENGINE}/etc")
|
||||
SET (ENGINE_MANDIR "${INSTALL_ENGINE}/man")
|
||||
SET (ENGINE_SBINDIR "${INSTALL_ENGINE}/sbin")
|
||||
SET (ENGINE_SHAREDIR "${INSTALL_ENGINE}/share")
|
||||
SET (ENGINE_POSTDIR "${INSTALL_ENGINE}/post")
|
||||
SET (ENGINE_LOCALDIR "${INSTALL_ENGINE}/local")
|
||||
SET (ENGINE_MYSQLDIR "${INSTALL_ENGINE}/mysql")
|
||||
SET (ENGINE_MIBDIR "${INSTALL_ENGINE}/share/snmp/mibs")
|
||||
SET (ENGINE_TOOLSDIR "${INSTALL_ENGINE}/tools")
|
||||
|
||||
SET (ENGINE_NETSNMP_LIBS "-L${CMAKE_CURRENT_SOURCE_DIR}/net-snmp/net-snmp/snmplib/.libs -L${CMAKE_CURRENT_SOURCE_DIR}/net-snmp/net-snmp/agent/helpers/.libs -L${CMAKE_CURRENT_SOURCE_DIR}/net-snmp/net-snmp/agent/.libs/ -L${CMAKE_CURRENT_SOURCE_DIR}/net-snmp/net-snmp/apps/.libs/ -lnetsnmpmibs -lnetsnmpagent -lnetsnmp -lnetsnmpmibs -lnetsnmphelpers")
|
||||
SET (ENGINE_COMMON_LIBS messageqcpp loggingcpp configcpp idbboot boost_idb xml2 pthread rt)
|
||||
SET (ENGINE_OAM_LIBS oamcpp snmpmanager ${ENGINE_NETSNMP_LIBS})
|
||||
SET (ENGINE_BRM_LIBS brm idbdatafile cacheutils rwlock ${ENGINE_OAM_LIBS} ${ENGINE_COMMON_LIBS})
|
||||
SET (ENGINE_EXEC_LIBS joblist execplan windowfunction joiner rowgroup funcexp udfsdk dataconvert common compress mysqlcl_idb querystats querytele thrift threadpool ${ENGINE_BRM_LIBS})
|
||||
SET (ENGINE_WRITE_LIBS ddlpackageproc ddlpackage dmlpackageproc dmlpackage writeengine writeengineclient idbdatafile cacheutils ${ENGINE_EXEC_LIBS})
|
||||
|
||||
SET (ENGINE_COMMON_LDFLAGS "")
|
||||
|
||||
|
||||
SET (ENGINE_UTILS_XML_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/libxml")
|
||||
SET (ENGINE_UTILS_MESSAGEQCPP_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/messageqcpp")
|
||||
SET (ENGINE_WE_SHARED_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/writeengine/shared")
|
||||
SET (ENGINE_UTILS_IDBDATAFILE_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/idbdatafile")
|
||||
SET (ENGINE_UTILS_LOGGINGCPP_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/loggingcpp")
|
||||
SET (ENGINE_UTILS_CONFIGCPP_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/configcpp")
|
||||
SET (ENGINE_UTILS_COMPRESS_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/compress")
|
||||
SET (ENGINE_VERSIONING_BRM_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/versioning/BRM")
|
||||
SET (ENGINE_UTILS_ROWGROUP_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/rowgroup")
|
||||
SET (ENGINE_UTILS_COMMON_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/common")
|
||||
SET (ENGINE_UTILS_DATACONVERT_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/dataconvert")
|
||||
SET (ENGINE_UTILS_RWLOCK_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/rwlock")
|
||||
SET (ENGINE_UTILS_FUNCEXP_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/funcexp")
|
||||
SET (ENGINE_SNMPD_SNMPMANAGER_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/snmpd/snmpmanager")
|
||||
SET (ENGINE_UTILS_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils")
|
||||
SET (ENGINE_OAM_OAMCPP_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/oam/oamcpp")
|
||||
SET (ENGINE_DBCON_DDLPKGPROC_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/dbcon/ddlpackageproc")
|
||||
SET (ENGINE_DBCON_DDLPKG_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/dbcon/ddlpackage")
|
||||
SET (ENGINE_DBCON_EXECPLAN_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/dbcon/execplan")
|
||||
SET (ENGINE_UTILS_STARTUP_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/startup")
|
||||
SET (ENGINE_DBCON_JOBLIST_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/dbcon/joblist")
|
||||
SET (ENGINE_WE_WRAPPER_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/writeengine/wrapper")
|
||||
SET (ENGINE_WE_SERVER_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/writeengine/server")
|
||||
SET (ENGINE_DBCON_DMLPKG_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/dbcon/dmlpackage")
|
||||
SET (ENGINE_WE_CLIENT_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/writeengine/client")
|
||||
SET (ENGINE_DBCON_DMLPKGPROC_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/dbcon/dmlpackageproc")
|
||||
SET (ENGINE_UTILS_CACHEUTILS_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/cacheutils")
|
||||
SET (ENGINE_UTILS_MYSQLCL_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/mysqlcl_idb")
|
||||
SET (ENGINE_UTILS_QUERYTELE_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/querytele")
|
||||
SET (ENGINE_UTILS_BOOSTIDB_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/boost_idb")
|
||||
SET (ENGINE_UTILS_THRIFT_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/thrift")
|
||||
SET (ENGINE_UTILS_JOINER_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/joiner")
|
||||
SET (ENGINE_UTILS_THREADPOOL_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/threadpool")
|
||||
SET (ENGINE_UTILS_BATCHLDR_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/batchloader")
|
||||
SET (ENGINE_UTILS_DDLCLEANUP_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/ddlcleanup")
|
||||
SET (ENGINE_UTILS_QUERYSTATS_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/utils/querystats")
|
||||
SET (ENGINE_WE_CONFIGCPP_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/writeengine/xml")
|
||||
SET (ENGINE_SERVER_SQL_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/../../../sql")
|
||||
SET (ENGINE_SERVER_SQL2_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/../sql")
|
||||
SET (ENGINE_SERVER_INCLUDE_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/../../../include")
|
||||
SET (ENGINE_SERVER_INCLUDE_INCLUDE2 "${CMAKE_CURRENT_SOURCE_DIR}/../include")
|
||||
SET (ENGINE_SERVER_PCRE_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/../../../pcre")
|
||||
SET (ENGINE_SERVER_PCRE_INCLUDE2 "${CMAKE_CURRENT_SOURCE_DIR}/../pcre")
|
||||
SET (ENGINE_NETSNMP_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/net-snmp/net-snmp")
|
||||
SET (ENGINE_NETSNMP_INCLUDE2 "${CMAKE_CURRENT_SOURCE_DIR}/net-snmp/net-snmp/include")
|
||||
|
||||
SET (ENGINE_DEFAULT_INCLUDES "." "../" "../..")
|
||||
|
||||
SET (ENGINE_COMMON_INCLUDES ${ENGINE_DEFAULT_INCLUDES} ${ENGINE_DEFAULT_INCLUDES} ${ENGINE_UTILS_XML_INCLUDE} ${ENGINE_UTILS_MESSAGEQCPP_INCLUDE} ${ENGINE_WE_SHARED_INCLUDE} ${ENGINE_UTILS_IDBDATAFILE_INCLUDE} ${ENGINE_UTILS_LOGGINGCPP_INCLUDE} ${ENGINE_UTILS_CONFIGCPP_INCLUDE} ${ENGINE_UTILS_COMPRESS_INCLUDE} ${ENGINE_VERSIONING_BRM_INCLUDE} ${ENGINE_UTILS_ROWGROUP_INCLUDE} ${ENGINE_UTILS_COMMON_INCLUDE} ${ENGINE_UTILS_DATACONVERT_INCLUDE} ${ENGINE_UTILS_RWLOCK_INCLUDE} ${ENGINE_UTILS_FUNCEXP_INCLUDE} ${ENGINE_SNMPD_SNMPMANAGER_INCLUDE} ${ENGINE_UTILS_INCLUDE} ${ENGINE_OAM_OAMCPP_INCLUDE} ${ENGINE_DBCON_DDLPKGPROC_INCLUDE} ${ENGINE_DBCON_DDLPKG_INCLUDE} ${ENGINE_DBCON_EXECPLAN_INCLUDE} ${ENGINE_UTILS_STARTUP_INCLUDE} ${ENGINE_DBCON_JOBLIST_INCLUDE} ${ENGINE_WE_WRAPPER_INCLUDE} ${ENGINE_WE_SERVER_INCLUDE} ${ENGINE_DBCON_DMLPKG_INCLUDE} ${ENGINE_WE_CLIENT_INCLUDE} ${ENGINE_DBCON_DMLPKGPROC_INCLUDE} ${ENGINE_UTILS_CACHEUTILS_INCLUDE} ${ENGINE_UTILS_MYSQLCL_INCLUDE} ${ENGINE_UTILS_QUERYTELE_INCLUDE} ${ENGINE_UTILS_THRIFT_INCLUDE} ${ENGINE_UTILS_JOINER_INCLUDE} ${ENGINE_UTILS_THREADPOOL_INCLUDE} ${ENGINE_UTILS_BATCHLDR_INCLUDE} ${ENGINE_UTILS_DDLCLEANUP_INCLUDE} ${ENGINE_UTILS_QUERYSTATS_INCLUDE} ${ENGINE_WE_CONFIGCPP_INCLUDE} ${ENGINE_SERVER_SQL_INCLUDE} ${ENGINE_SERVER_INCLUDE_INCLUDE} ${ENGINE_SERVER_PCRE_INCLUDE} ${ENGINE_SERVER_SQL2_INCLUDE} ${ENGINE_SERVER_INCLUDE_INCLUDE2} ${ENGINE_SERVER_PCRE_INCLUDE2} ${ENGINE_NETSNMP_INCLUDE} ${ENGINE_NETSNMP_INCLUDE2})
|
||||
|
||||
|
||||
INCLUDE (ExternalProject)
|
||||
ExternalProject_Add(
|
||||
libnetsnmpmibs
|
||||
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/net-snmp/net-snmp
|
||||
CONFIGURE_COMMAND ./configure --prefix=${INSTALL_ENGINE} --with-mib-modules=disman/event-mib --with-cc=gcc --with-logfile=${INSTALL_ENGINE}/log/snmpd.log --with-sys-location=Unknown --with-sys-contact=root@localhost.localdomain --with-default-snmp-version=3 --with-persistent-directory=${INSTALL_ENGINE}/var/net-snmp --without-openssl --with-ldflags=-Wl,-rpath\ -Wl,${INSTALL_ENGINE}/lib
|
||||
BUILD_COMMAND ""
|
||||
INSTALL_COMMAND make
|
||||
BUILD_IN_SOURCE 1
|
||||
)
|
||||
|
||||
ADD_SUBDIRECTORY(utils)
|
||||
ADD_SUBDIRECTORY(oam/oamcpp)
|
||||
ADD_SUBDIRECTORY(snmpd)
|
||||
ADD_SUBDIRECTORY(dbcon/execplan)
|
||||
ADD_SUBDIRECTORY(dbcon/joblist)
|
||||
ADD_SUBDIRECTORY(versioning)
|
||||
ADD_SUBDIRECTORY(oam)
|
||||
ADD_SUBDIRECTORY(writeengine/wrapper)
|
||||
ADD_SUBDIRECTORY(writeengine/client)
|
||||
ADD_SUBDIRECTORY(writeengine/xml)
|
||||
ADD_SUBDIRECTORY(writeengine/redistribute)
|
||||
ADD_SUBDIRECTORY(dbcon/ddlpackage)
|
||||
ADD_SUBDIRECTORY(dbcon/ddlpackageproc)
|
||||
ADD_SUBDIRECTORY(dbcon/dmlpackage)
|
||||
ADD_SUBDIRECTORY(dbcon/dmlpackageproc)
|
||||
ADD_SUBDIRECTORY(dbcon/mysql)
|
||||
ADD_SUBDIRECTORY(exemgr)
|
||||
ADD_SUBDIRECTORY(ddlproc)
|
||||
ADD_SUBDIRECTORY(dmlproc)
|
||||
ADD_SUBDIRECTORY(procmon)
|
||||
ADD_SUBDIRECTORY(procmgr)
|
||||
ADD_SUBDIRECTORY(oamapps)
|
||||
ADD_SUBDIRECTORY(decomsvr)
|
||||
ADD_SUBDIRECTORY(primitives)
|
||||
ADD_SUBDIRECTORY(tools)
|
||||
ADD_SUBDIRECTORY(writeengine/server)
|
||||
ADD_SUBDIRECTORY(writeengine/bulk)
|
||||
ADD_SUBDIRECTORY(writeengine/splitter)
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
#ACLOCAL_AMFLAGS = -I m4
|
||||
## FIXME:
|
||||
## this sets the local linker path (-rpath) so that the ColumnStore
|
||||
## libraries and binaries know where to look for the necessary
|
||||
## libraries. This is almost certainly a wrong approach, as
|
||||
## MySQL should look in the plugin path for libraries, but that
|
||||
## path comes from CMake, not from autotools. For now, until
|
||||
## the ColumnStore engine is integrated with CMake into the
|
||||
## MariaDB server, the prefix must be set the same for the
|
||||
## MariaDB compilation and the engine compilation. I can't see
|
||||
## a way around that for now.
|
||||
##
|
||||
## FIXME:
|
||||
## a second problem here is that this manually specifies
|
||||
## the realtime library and a custom boost library. These
|
||||
## should be detected and used automatically by the autotools
|
||||
## process. A custom boost library should not be needed
|
||||
## either. The system boost should be used. I am not aware if
|
||||
## there are changes made to this custom boost, so I am leaving
|
||||
## this AS IS for now.
|
||||
#AM_LIBTOOLFLAGS = -Wl,-rpath -Wl,$(prefix)/lib -lrt -lboost_idb
|
||||
#.PHONY: test coverage leakcheck docs bootstrap install net-snmp-install
|
||||
#
|
||||
#net-snmp/net-snmp-5.7.3/agent/.libs/libnetsnmpmibs.so:
|
||||
# cd net-snmp/net-snmp; \
|
||||
# ./configure --prefix=${INSTALL_ENGINE} --with-mib-modules=disman/event-mib --with-cc=gcc --with-logfile=$(prefix)/log/snmpd.log --with-sys-location=Unknown --with-sys-contact=root@localhost.localdomain --with-default-snmp-version=3 --with-persistent-directory=$(prefix)var/net-snmp --without-openssl --with-ldflags="-Wl,-rpath -Wl,$(prefix)/lib"
|
||||
# $(MAKE)
|
||||
#
|
||||
#all-local: net-snmp/net-snmp-5.7.3/agent/.libs/libnetsnmpmibs.so
|
||||
# $(MAKE) -C utils
|
||||
# $(MAKE) -C oam/oamcpp
|
||||
# $(MAKE) -C snmpd
|
||||
# $(MAKE) -C dbcon/execplan
|
||||
# $(MAKE) -C dbcon/joblist
|
||||
# $(MAKE) -C versioning
|
||||
# $(MAKE) -C oam
|
||||
# $(MAKE) -C versioning dbrm tools
|
||||
# $(MAKE) -C writeengine/wrapper
|
||||
# $(MAKE) -C writeengine/client
|
||||
# $(MAKE) -C writeengine/xml
|
||||
# $(MAKE) -C writeengine/redistribute
|
||||
# $(MAKE) -C dbcon/ddlpackage
|
||||
# $(MAKE) -C dbcon/ddlpackageproc
|
||||
# $(MAKE) -C dbcon/dmlpackage
|
||||
# $(MAKE) -C dbcon/dmlpackageproc
|
||||
# $(MAKE) -C dbcon
|
||||
# $(MAKE) -C exemgr
|
||||
# $(MAKE) -C ddlproc
|
||||
# $(MAKE) -C dmlproc
|
||||
# $(MAKE) -C procmon
|
||||
# $(MAKE) -C procmgr
|
||||
# $(MAKE) -C oamapps
|
||||
# $(MAKE) -C decomsvr
|
||||
# $(MAKE) -C primitives
|
||||
# $(MAKE) -C tools
|
||||
# $(MAKE) -C writeengine/server
|
||||
# $(MAKE) -C writeengine/bulk
|
||||
# $(MAKE) -C writeengine/splitter
|
||||
# echo $(idb_cxxflags) $(CXXFLAGS) $(DEBUG_FLAGS) > buildFlags
|
||||
#
|
||||
#net-snmp-install:
|
||||
# $(MAKE) -C net-snmp install
|
||||
#
|
||||
#install: net-snmp-install
|
||||
# $(MAKE) -C utils install
|
||||
# $(MAKE) -C oam/oamcpp install
|
||||
# $(MAKE) -C snmpd install
|
||||
# $(MAKE) -C dbcon/execplan install
|
||||
# $(MAKE) -C dbcon/joblist install
|
||||
# $(MAKE) -C versioning install
|
||||
# $(MAKE) -C oam install
|
||||
# $(MAKE) -C versioning dbrm tools install
|
||||
# $(MAKE) -C writeengine/wrapper install
|
||||
# $(MAKE) -C writeengine/client install
|
||||
# $(MAKE) -C writeengine/xml install
|
||||
# $(MAKE) -C writeengine/redistribute install
|
||||
# $(MAKE) -C dbcon/ddlpackage install
|
||||
# $(MAKE) -C dbcon/ddlpackageproc install
|
||||
# $(MAKE) -C dbcon/dmlpackage install
|
||||
# $(MAKE) -C dbcon/dmlpackageproc install
|
||||
# $(MAKE) -C dbcon install
|
||||
# $(MAKE) -C exemgr install
|
||||
# $(MAKE) -C ddlproc install
|
||||
# $(MAKE) -C dmlproc install
|
||||
# $(MAKE) -C procmon install
|
||||
# $(MAKE) -C procmgr install
|
||||
# $(MAKE) -C oamapps install
|
||||
# $(MAKE) -C decomsvr install
|
||||
# $(MAKE) -C primitives install
|
||||
# $(MAKE) -C tools install
|
||||
# $(MAKE) -C writeengine/server install
|
||||
# $(MAKE) -C writeengine/bulk install
|
||||
# $(MAKE) -C writeengine/splitter install
|
||||
#
|
||||
#compile: all-local
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#clean:
|
||||
# rm -f net-snmp.built; \
|
||||
# find . -name \*.d.* -o -name \*.so -o -name \*.a -o -name \*.o -o -name \*.lib -o -name \*.sa -o -name \*.lo -o -name \*.la -exec rm {} \; -print
|
||||
#
|
81
bison.cmake
Normal file
81
bison.cmake
Normal file
@ -0,0 +1,81 @@
|
||||
# Copyright (c) 2009 Sun Microsystems, Inc.
|
||||
# Use is subject to license terms.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
IF(CMAKE_SYSTEM_NAME MATCHES "SunOS")
|
||||
# On Solaris, /opt/csw often contains a newer bison
|
||||
IF(NOT BISON_EXECUTABLE AND EXISTS /opt/csw/bin/bison)
|
||||
SET(BISON_EXECUTABLE /opt/csw/bin/bison)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
FIND_PROGRAM(BISON_EXECUTABLE bison DOC "path to the bison executable")
|
||||
MARK_AS_ADVANCED(BISON_EXECUTABLE "")
|
||||
IF(NOT BISON_EXECUTABLE)
|
||||
MESSAGE("Warning: Bison executable not found in PATH")
|
||||
ELSEIF(BISON_EXECUTABLE AND NOT BISON_USABLE)
|
||||
# Check version as well
|
||||
EXEC_PROGRAM(${BISON_EXECUTABLE} ARGS --version OUTPUT_VARIABLE BISON_VERSION_STR)
|
||||
# Get first line in case it's multiline
|
||||
STRING(REGEX REPLACE "([^\n]+).*" "\\1" FIRST_LINE "${BISON_VERSION_STR}")
|
||||
# get version information
|
||||
STRING(REGEX REPLACE ".* ([0-9]+)\\.([0-9]+)" "\\1" BISON_VERSION_MAJOR "${FIRST_LINE}")
|
||||
STRING(REGEX REPLACE ".* ([0-9]+)\\.([0-9]+)" "\\2" BISON_VERSION_MINOR "${FIRST_LINE}")
|
||||
IF (BISON_VERSION_MAJOR LESS 2)
|
||||
MESSAGE("Warning: bison version is old. please update to version 2")
|
||||
ELSE()
|
||||
SET(BISON_USABLE 1 CACHE INTERNAL "Bison version 2 or higher")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
# Use bison to generate C++ and header file
|
||||
MACRO (RUN_BISON input_yy output_cc output_h)
|
||||
IF(BISON_TOO_OLD)
|
||||
IF(EXISTS ${output_cc} AND EXISTS ${output_h})
|
||||
SET(BISON_USABLE FALSE)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
IF(BISON_USABLE)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${output_cc}
|
||||
${output_h}
|
||||
COMMAND ${BISON_EXECUTABLE} -y -p MYSQL
|
||||
--output=${output_cc}
|
||||
--defines=${output_h}
|
||||
${input_yy}
|
||||
DEPENDS ${input_yy}
|
||||
)
|
||||
ELSE()
|
||||
# Bison is missing or not usable, e.g too old
|
||||
IF(EXISTS ${output_cc} AND EXISTS ${output_h})
|
||||
IF(${input_yy} IS_NEWER_THAN ${output_cc} OR ${input_yy} IS_NEWER_THAN ${output_h})
|
||||
# Possibly timestamps are messed up in source distribution.
|
||||
MESSAGE("Warning: no usable bison found, ${input_yy} will not be rebuilt.")
|
||||
ENDIF()
|
||||
ELSE()
|
||||
# Output files are missing, bail out.
|
||||
SET(ERRMSG
|
||||
"Bison (GNU parser generator) is required to build MySQL."
|
||||
"Please install bison."
|
||||
)
|
||||
IF(WIN32)
|
||||
SET(ERRMSG ${ERRMSG}
|
||||
"You can download bison from http://gnuwin32.sourceforge.net/packages/bison.htm "
|
||||
"Choose 'Complete package, except sources' installation. We recommend to "
|
||||
"install bison into a directory without spaces, e.g C:\\GnuWin32.")
|
||||
ENDIF()
|
||||
MESSAGE(FATAL_ERROR ${ERRMSG})
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
ENDMACRO()
|
407
config.h.cmake
Normal file
407
config.h.cmake
Normal file
@ -0,0 +1,407 @@
|
||||
/* config.h.cmake */
|
||||
#ifndef TEST_CONFIG_H
|
||||
#define TEST_CONFIG_H
|
||||
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
|
||||
systems. This function is required for `alloca.c' support on those systems.
|
||||
*/
|
||||
#cmakedefine CRAY_STACKSEG_END
|
||||
|
||||
/* Define to 1 if using `alloca.c'. */
|
||||
#cmakedefine C_ALLOCA 1
|
||||
|
||||
/* Define to 1 if you have the `alarm' function. */
|
||||
#cmakedefine HAVE_ALARM 1
|
||||
|
||||
/* Define to 1 if you have `alloca', as a function or macro. */
|
||||
#cmakedefine HAVE_ALLOCA 1
|
||||
|
||||
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
|
||||
*/
|
||||
#cmakedefine HAVE_ALLOCA_H 1
|
||||
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
||||
#cmakedefine HAVE_ARPA_INET_H 1
|
||||
|
||||
/* Define to 1 if you have the `btowc' function. */
|
||||
#cmakedefine HAVE_BTOWC 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
|
||||
*/
|
||||
#cmakedefine HAVE_DECL_GETENV 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
|
||||
don't. */
|
||||
#cmakedefine HAVE_DECL_STRERROR_R 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#cmakedefine HAVE_DLFCN_H 1
|
||||
|
||||
/* Define to 1 if you have the `dup2' function. */
|
||||
#cmakedefine HAVE_DUP2 1
|
||||
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||
#cmakedefine HAVE_FCNTL_H 1
|
||||
|
||||
/* Define to 1 if you have the `floor' function. */
|
||||
#cmakedefine HAVE_FLOOR 1
|
||||
|
||||
/* Define to 1 if you have the `fork' function. */
|
||||
#cmakedefine HAVE_FORK 1
|
||||
|
||||
/* Define to 1 if you have the `ftime' function. */
|
||||
#cmakedefine HAVE_FTIME 1
|
||||
|
||||
/* Define to 1 if you have the `ftruncate' function. */
|
||||
#cmakedefine HAVE_FTRUNCATE 1
|
||||
|
||||
/* Define to 1 if you have the `gethostbyname' function. */
|
||||
#cmakedefine HAVE_GETHOSTBYNAME 1
|
||||
|
||||
/* Define to 1 if you have the `getpagesize' function. */
|
||||
#cmakedefine HAVE_GETPAGESIZE 1
|
||||
|
||||
/* Define to 1 if you have the `gettimeofday' function. */
|
||||
#cmakedefine HAVE_GETTIMEOFDAY 1
|
||||
|
||||
/* Define to 1 if you have the `inet_ntoa' function. */
|
||||
#cmakedefine HAVE_INET_NTOA 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#cmakedefine HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the `isascii' function. */
|
||||
#cmakedefine HAVE_ISASCII 1
|
||||
|
||||
/* Define to 1 if you have the <limits.h> header file. */
|
||||
#cmakedefine HAVE_LIMITS_H 1
|
||||
|
||||
/* Define to 1 if you have the `localtime_r' function. */
|
||||
#cmakedefine HAVE_LOCALTIME_R 1
|
||||
|
||||
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
|
||||
to 0 otherwise. */
|
||||
#cmakedefine HAVE_MALLOC 1
|
||||
|
||||
/* Define to 1 if you have the <malloc.h> header file. */
|
||||
#cmakedefine HAVE_MALLOC_H 1
|
||||
|
||||
/* Define to 1 if you have the `mbsrtowcs' function. */
|
||||
#cmakedefine HAVE_MBSRTOWCS 1
|
||||
|
||||
/* Define to 1 if <wchar.h> declares mbstate_t. */
|
||||
#cmakedefine HAVE_MBSTATE_T 1
|
||||
|
||||
/* Define to 1 if you have the `memchr' function. */
|
||||
#cmakedefine HAVE_MEMCHR 1
|
||||
|
||||
/* Define to 1 if you have the `memmove' function. */
|
||||
#cmakedefine HAVE_MEMMOVE 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#cmakedefine HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the `mempcpy' function. */
|
||||
#cmakedefine HAVE_MEMPCPY 1
|
||||
|
||||
/* Define to 1 if you have the `memset' function. */
|
||||
#cmakedefine HAVE_MEMSET 1
|
||||
|
||||
/* Define to 1 if you have the `mkdir' function. */
|
||||
#cmakedefine HAVE_MKDIR 1
|
||||
|
||||
/* Define to 1 if you have the <ncurses.h> header file. */
|
||||
#cmakedefine HAVE_NCURSES_H 1
|
||||
|
||||
/* Define to 1 if you have the <netdb.h> header file. */
|
||||
#cmakedefine HAVE_NETDB_H 1
|
||||
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */
|
||||
#cmakedefine HAVE_NETINET_IN_H 1
|
||||
|
||||
/* Define to 1 if you have the `pow' function. */
|
||||
#cmakedefine HAVE_POW 1
|
||||
|
||||
/* Define to 1 if the system has the type `ptrdiff_t'. */
|
||||
#cmakedefine HAVE_PTRDIFF_T 1
|
||||
|
||||
/* Define to 1 if you have the <readline/readline.h> header file. */
|
||||
#cmakedefine HAVE_READLINE_READLINE_H 1
|
||||
|
||||
/* Define to 1 if you have the `regcomp' function. */
|
||||
#cmakedefine HAVE_REGCOMP 1
|
||||
|
||||
/* Define to 1 if you have the `rmdir' function. */
|
||||
#cmakedefine HAVE_RMDIR 1
|
||||
|
||||
/* Define to 1 if you have the `select' function. */
|
||||
#cmakedefine HAVE_SELECT 1
|
||||
|
||||
/* Define to 1 if you have the `setenv' function. */
|
||||
#cmakedefine HAVE_SETENV 1
|
||||
|
||||
/* Define to 1 if you have the `setlocale' function. */
|
||||
#cmakedefine HAVE_SETLOCALE 1
|
||||
|
||||
/* Define to 1 if you have the `socket' function. */
|
||||
#cmakedefine HAVE_SOCKET 1
|
||||
|
||||
/* Define to 1 if `stat' has the bug that it succeeds when given the
|
||||
zero-length file name argument. */
|
||||
#cmakedefine HAVE_STAT_EMPTY_STRING_BUG 1
|
||||
|
||||
/* Define to 1 if stdbool.h conforms to C99. */
|
||||
#cmakedefine HAVE_STDBOOL_H 1
|
||||
|
||||
/* Define to 1 if you have the <stddef.h> header file. */
|
||||
#cmakedefine HAVE_STDDEF_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#cmakedefine HAVE_STDINT_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#cmakedefine HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the `strcasecmp' function. */
|
||||
#cmakedefine HAVE_STRCASECMP 1
|
||||
|
||||
/* Define to 1 if you have the `strchr' function. */
|
||||
#cmakedefine HAVE_STRCHR 1
|
||||
|
||||
/* Define to 1 if you have the `strcspn' function. */
|
||||
#cmakedefine HAVE_STRCSPN 1
|
||||
|
||||
/* Define to 1 if you have the `strdup' function. */
|
||||
#cmakedefine HAVE_STRDUP 1
|
||||
|
||||
/* Define to 1 if you have the `strerror' function. */
|
||||
#cmakedefine HAVE_STRERROR 1
|
||||
|
||||
/* Define to 1 if you have the `strerror_r' function. */
|
||||
#cmakedefine HAVE_STRERROR_R 1
|
||||
|
||||
/* Define to 1 if you have the `strftime' function. */
|
||||
#cmakedefine HAVE_STRFTIME 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#cmakedefine HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#cmakedefine HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the `strrchr' function. */
|
||||
#cmakedefine HAVE_STRRCHR 1
|
||||
|
||||
/* Define to 1 if you have the `strspn' function. */
|
||||
#cmakedefine HAVE_STRSPN 1
|
||||
|
||||
/* Define to 1 if you have the `strstr' function. */
|
||||
#cmakedefine HAVE_STRSTR 1
|
||||
|
||||
/* Define to 1 if you have the `strtol' function. */
|
||||
#cmakedefine HAVE_STRTOL 1
|
||||
|
||||
/* Define to 1 if you have the `strtoul' function. */
|
||||
#cmakedefine HAVE_STRTOUL 1
|
||||
|
||||
/* Define to 1 if you have the `strtoull' function. */
|
||||
#cmakedefine HAVE_STRTOULL 1
|
||||
|
||||
/* Define to 1 if you have the <syslog.h> header file. */
|
||||
#cmakedefine HAVE_SYSLOG_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/file.h> header file. */
|
||||
#cmakedefine HAVE_SYS_FILE_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/mount.h> header file. */
|
||||
#cmakedefine HAVE_SYS_MOUNT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */
|
||||
#cmakedefine HAVE_SYS_SELECT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */
|
||||
#cmakedefine HAVE_SYS_SOCKET_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/statfs.h> header file. */
|
||||
#cmakedefine HAVE_SYS_STATFS_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#cmakedefine HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/timeb.h> header file. */
|
||||
#cmakedefine HAVE_SYS_TIMEB_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||
#cmakedefine HAVE_SYS_TIME_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#cmakedefine HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
|
||||
#cmakedefine HAVE_SYS_WAIT_H 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#cmakedefine HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to 1 if you have the `utime' function. */
|
||||
#cmakedefine HAVE_UTIME 1
|
||||
|
||||
/* Define to 1 if you have the <utime.h> header file. */
|
||||
#cmakedefine HAVE_UTIME_H 1
|
||||
|
||||
/* Define to 1 if `utime(file, NULL)' sets file's timestamp to the present. */
|
||||
#cmakedefine HAVE_UTIME_NULL 1
|
||||
|
||||
/* Define to 1 if you have the <values.h> header file. */
|
||||
#cmakedefine HAVE_VALUES_H 1
|
||||
|
||||
/* Define to 1 if you have the `vfork' function. */
|
||||
#cmakedefine HAVE_VFORK 1
|
||||
|
||||
/* Define to 1 if you have the <vfork.h> header file. */
|
||||
#cmakedefine HAVE_VFORK_H 1
|
||||
|
||||
/* Define to 1 if you have the <wchar.h> header file. */
|
||||
#cmakedefine HAVE_WCHAR_H 1
|
||||
|
||||
/* Define to 1 if you have the <wctype.h> header file. */
|
||||
#cmakedefine HAVE_WCTYPE_H 1
|
||||
|
||||
/* Define to 1 if you have the `wmempcpy' function. */
|
||||
#cmakedefine HAVE_WMEMPCPY 1
|
||||
|
||||
/* Define to 1 if `fork' works. */
|
||||
#cmakedefine HAVE_WORKING_FORK 1
|
||||
|
||||
/* Define to 1 if `vfork' works. */
|
||||
#cmakedefine HAVE_WORKING_VFORK 1
|
||||
|
||||
/* Define to 1 if you have the <zlib.h> header file. */
|
||||
#cmakedefine HAVE_ZLIB_H 1
|
||||
|
||||
/* Define to 1 if the system has the type `_Bool'. */
|
||||
#cmakedefine HAVE__BOOL 1
|
||||
|
||||
/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
|
||||
slash. */
|
||||
#cmakedefine LSTAT_FOLLOWS_SLASHED_SYMLINK 1
|
||||
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
#cmakedefine LT_OBJDIR
|
||||
|
||||
/* Name of package */
|
||||
#cmakedefine PACKAGE
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#cmakedefine PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#cmakedefine PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#cmakedefine PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#cmakedefine PACKAGE_TARNAME
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#cmakedefine PACKAGE_URL
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#cmakedefine PACKAGE_VERSION
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#cmakedefine RETSIGTYPE
|
||||
|
||||
/* Define to the type of arg 1 for `select'. */
|
||||
#cmakedefine SELECT_TYPE_ARG1
|
||||
|
||||
/* Define to the type of args 2, 3 and 4 for `select'. */
|
||||
#cmakedefine SELECT_TYPE_ARG234
|
||||
|
||||
/* Define to the type of arg 5 for `select'. */
|
||||
#cmakedefine SELECT_TYPE_ARG5
|
||||
|
||||
/* If using the C implementation of alloca, define if you know the
|
||||
direction of stack growth for your system; otherwise it will be
|
||||
automatically deduced at runtime.
|
||||
STACK_DIRECTION > 0 => grows toward higher addresses
|
||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
||||
STACK_DIRECTION = 0 => direction of growth unknown */
|
||||
#cmakedefine STACK_DIRECTION
|
||||
|
||||
/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
|
||||
#cmakedefine STAT_MACROS_BROKEN 1
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#cmakedefine STDC_HEADERS 1
|
||||
|
||||
/* Define to 1 if strerror_r returns char *. */
|
||||
/* #cmakedefine STRERROR_R_CHAR_P 1 */
|
||||
#define STRERROR_R_CHAR_P 1
|
||||
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#cmakedefine TIME_WITH_SYS_TIME 1
|
||||
|
||||
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
|
||||
#cmakedefine TM_IN_SYS_TIME 1
|
||||
|
||||
/* Version number of package */
|
||||
#cmakedefine VERSION
|
||||
|
||||
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
|
||||
`char[]'. */
|
||||
#cmakedefine YYTEXT_POINTER 1
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
#cmakedefine const
|
||||
|
||||
/* Define to rpl_fnmatch if the replacement function should be used. */
|
||||
#cmakedefine fnmatch
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
#cmakedefine inline
|
||||
#endif
|
||||
|
||||
/* Define to rpl_malloc if the replacement function should be used. */
|
||||
#cmakedefine malloc
|
||||
|
||||
/* Define to a type if <wchar.h> does not define. */
|
||||
#cmakedefine mbstate_t
|
||||
|
||||
/* Define to `int' if <sys/types.h> does not define. */
|
||||
#cmakedefine mode_t
|
||||
|
||||
/* Define to `long int' if <sys/types.h> does not define. */
|
||||
#cmakedefine off_t
|
||||
|
||||
/* Define to `int' if <sys/types.h> does not define. */
|
||||
#cmakedefine pid_t
|
||||
|
||||
/* Define to the equivalent of the C99 'restrict' keyword, or to
|
||||
nothing if this is not supported. Do not define if restrict is
|
||||
supported directly. */
|
||||
#cmakedefine restrict
|
||||
/* Work around a bug in Sun C++: it does not support _Restrict or
|
||||
__restrict__, even though the corresponding Sun C compiler ends up with
|
||||
"#define restrict _Restrict" or "#define restrict __restrict__" in the
|
||||
previous line. Perhaps some future version of Sun C++ will work with
|
||||
restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
|
||||
#if defined __SUNPRO_CC && !defined __RESTRICT
|
||||
# define _Restrict
|
||||
# define __restrict__
|
||||
#endif
|
||||
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
||||
#cmakedefine size_t
|
||||
|
||||
/* Define as `fork' if `vfork' does not work. */
|
||||
#cmakedefine vfork
|
||||
|
||||
/* Define to empty if the keyword `volatile' does not work. Warning: valid
|
||||
code using `volatile' can become incorrect without. Disable with care. */
|
||||
#cmakedefine volatile
|
||||
|
||||
#endif
|
9
dbcon/CMakeLists.txt
Normal file
9
dbcon/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
add_subdirectory(ddlpackage)
|
||||
add_subdirectory(ddlpackageproc)
|
||||
add_subdirectory(dmlpackage)
|
||||
add_subdirectory(dmlpackageproc)
|
||||
add_subdirectory(execplan)
|
||||
add_subdirectory(joblist)
|
||||
add_subdirectory(mysql)
|
||||
|
52
dbcon/ddlpackage/CMakeLists.txt
Normal file
52
dbcon/ddlpackage/CMakeLists.txt
Normal file
@ -0,0 +1,52 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ddl-gram.cpp ddl-gram-temp.cpp
|
||||
COMMAND ./ddl-gram.sh ${BISON_EXECUTABLE}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDS ddl.y
|
||||
)
|
||||
ADD_CUSTOM_TARGET(
|
||||
ddlgramSRC ALL DEPENDS ddl-gram-temp.cpp
|
||||
)
|
||||
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ddl-scan.cpp ddl-scan-temp.cpp
|
||||
COMMAND ./ddl-scan.sh ${LEX_EXECUTABLE}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDS ddl.l
|
||||
)
|
||||
ADD_CUSTOM_TARGET(
|
||||
ddlscanSRC ALL DEPENDS ddl-scan-temp.cpp
|
||||
)
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(ddlpackage_LIB_SRCS
|
||||
serialize.cpp
|
||||
ddl-scan.cpp
|
||||
ddl-gram.cpp
|
||||
ddlpkg.cpp
|
||||
columndef.cpp
|
||||
createtable.cpp
|
||||
tabledef.cpp
|
||||
sqlstatement.cpp
|
||||
sqlstatementlist.cpp
|
||||
altertable.cpp
|
||||
createindex.cpp
|
||||
dropindex.cpp
|
||||
droptable.cpp
|
||||
sqlparser.cpp
|
||||
markpartition.cpp
|
||||
restorepartition.cpp
|
||||
droppartition.cpp)
|
||||
|
||||
add_library(ddlpackage SHARED ${ddlpackage_LIB_SRCS})
|
||||
|
||||
add_dependencies(ddlpackage ddlgramSRC ddlscanSRC)
|
||||
|
||||
set_target_properties(ddlpackage PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS ddlpackage DESTINATION ${ENGINE_LIBDIR})
|
||||
|
26
dbcon/ddlpackage/ddl-gram.sh
Executable file
26
dbcon/ddlpackage/ddl-gram.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
#ddl-gram.cpp: ddl.y
|
||||
$1 -y -l -v -d -p ddl -o ddl-gram-temp.cpp ddl.y
|
||||
set +e; \
|
||||
if [ -f ddl-gram.cpp ]; \
|
||||
then diff -abBq ddl-gram-temp.cpp ddl-gram.cpp >/dev/null 2>&1; \
|
||||
if [ $? -ne 0 ]; \
|
||||
then mv -f ddl-gram-temp.cpp ddl-gram.cpp; \
|
||||
else touch ddl-gram.cpp; \
|
||||
fi; \
|
||||
else mv -f ddl-gram-temp.cpp ddl-gram.cpp; \
|
||||
fi
|
||||
set +e; \
|
||||
if [ -f ddl-gram.h ]; \
|
||||
then diff -abBq ddl-gram-temp.hpp ddl-gram.h >/dev/null 2>&1; \
|
||||
if [ $? -ne 0 ]; \
|
||||
then mv -f ddl-gram-temp.hpp ddl-gram.h; \
|
||||
else touch ddl-gram.h; \
|
||||
fi; \
|
||||
else mv -f ddl-gram-temp.hpp ddl-gram.h; \
|
||||
fi
|
||||
rm -f ddl-gram-temp.cpp ddl-gram-temp.hpp ddl-gram-temp.output
|
||||
|
||||
|
||||
|
16
dbcon/ddlpackage/ddl-scan.sh
Executable file
16
dbcon/ddlpackage/ddl-scan.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
#ddl-scan.cpp: ddl.l
|
||||
$1 -i -L -P ddl -o ddl-scan-temp.cpp ddl.l
|
||||
set +e;
|
||||
if [ -f ddl-scan.cpp ];
|
||||
then diff -abBq ddl-scan-temp.cpp ddl-scan.cpp >/dev/null 2>&1;
|
||||
if [ "$?" -ne 0 ];
|
||||
then mv -f ddl-scan-temp.cpp ddl-scan.cpp;
|
||||
else touch ddl-scan.cpp;
|
||||
fi;
|
||||
else mv -f ddl-scan-temp.cpp ddl-scan.cpp;
|
||||
fi
|
||||
rm -f ddl-scan-temp.cpp
|
||||
|
||||
|
20
dbcon/ddlpackageproc/CMakeLists.txt
Normal file
20
dbcon/ddlpackageproc/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(ddlpackageproc_LIB_SRCS
|
||||
ddlpackageprocessor.cpp
|
||||
createtableprocessor.cpp
|
||||
altertableprocessor.cpp
|
||||
droptableprocessor.cpp
|
||||
markpartitionprocessor.cpp
|
||||
restorepartitionprocessor.cpp
|
||||
droppartitionprocessor.cpp)
|
||||
|
||||
add_library(ddlpackageproc SHARED ${ddlpackageproc_LIB_SRCS})
|
||||
|
||||
set_target_properties(ddlpackageproc PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS ddlpackageproc DESTINATION ${ENGINE_LIBDIR})
|
||||
|
52
dbcon/dmlpackage/CMakeLists.txt
Normal file
52
dbcon/dmlpackage/CMakeLists.txt
Normal file
@ -0,0 +1,52 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT dml-gram.cpp dml-gram-temp.cpp
|
||||
COMMAND ./dml-gram.sh ${BISON_EXECUTABLE}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDS dml.y
|
||||
)
|
||||
ADD_CUSTOM_TARGET(
|
||||
dmlgramSRC ALL DEPENDS dml-gram-temp.cpp
|
||||
)
|
||||
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT dml-scan.cpp dml-scan-temp.cpp
|
||||
COMMAND ./dml-scan.sh ${LEX_EXECUTABLE}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDS dml.l
|
||||
)
|
||||
ADD_CUSTOM_TARGET(
|
||||
dmlscanSRC ALL DEPENDS dml-scan-temp.cpp
|
||||
)
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(dmlpackage_LIB_SRCS
|
||||
dml-scan.cpp
|
||||
dml-gram.cpp
|
||||
calpontdmlfactory.cpp
|
||||
calpontdmlpackage.cpp
|
||||
dmlcolumn.cpp
|
||||
deletedmlpackage.cpp
|
||||
dmlobject.cpp
|
||||
insertdmlpackage.cpp
|
||||
mysqldmlstatement.cpp
|
||||
oracledmlstatement.cpp
|
||||
row.cpp
|
||||
dmltable.cpp
|
||||
updatedmlpackage.cpp
|
||||
vendordmlstatement.cpp
|
||||
commanddmlpackage.cpp
|
||||
dmlpkg.cpp
|
||||
dmlparser.cpp)
|
||||
|
||||
add_library(dmlpackage SHARED ${dmlpackage_LIB_SRCS})
|
||||
|
||||
add_dependencies(dmlpackage dmlgramSRC dmlscanSRC)
|
||||
|
||||
set_target_properties(dmlpackage PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS dmlpackage DESTINATION ${ENGINE_LIBDIR})
|
||||
|
23
dbcon/dmlpackage/dml-gram.sh
Executable file
23
dbcon/dmlpackage/dml-gram.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
#dml-gram.cpp: dml.y
|
||||
$1 -l -v -d -p dml -o dml-gram-temp.cpp dml.y
|
||||
set +e; \
|
||||
if [ -f dml-gram.cpp ]; \
|
||||
then diff -abBq dml-gram-temp.cpp dml-gram.cpp >/dev/null 2>&1; \
|
||||
if [ $? -ne 0 ]; \
|
||||
then mv -f dml-gram-temp.cpp dml-gram.cpp; \
|
||||
else touch dml-gram.cpp; \
|
||||
fi; \
|
||||
else mv -f dml-gram-temp.cpp dml-gram.cpp; \
|
||||
fi
|
||||
set +e; \
|
||||
if [ -f dml-gram.h ]; \
|
||||
then diff -abBq dml-gram-temp.hpp dml-gram.h >/dev/null 2>&1; \
|
||||
if [ $? -ne 0 ]; \
|
||||
then mv -f dml-gram-temp.hpp dml-gram.h; \
|
||||
else touch dml-gram.h; \
|
||||
fi; \
|
||||
else mv -f dml-gram-temp.hpp dml-gram.h; \
|
||||
fi
|
||||
rm -f dml-gram-temp.cpp dml-gram-temp.hpp dml-gram-temp.output
|
14
dbcon/dmlpackage/dml-scan.sh
Executable file
14
dbcon/dmlpackage/dml-scan.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
#dml-scan.cpp: dml.l
|
||||
$1 -i -L -Pdml -odml-scan-temp.cpp dml.l
|
||||
set +e; \
|
||||
if [ -f dml-scan.cpp ]; \
|
||||
then diff -abBq dml-scan-temp.cpp dml-scan.cpp >/dev/null 2>&1; \
|
||||
if [ $$? -ne 0 ]; \
|
||||
then mv -f dml-scan-temp.cpp dml-scan.cpp; \
|
||||
else touch dml-scan.cpp; \
|
||||
fi; \
|
||||
else mv -f dml-scan-temp.cpp dml-scan.cpp; \
|
||||
fi
|
||||
rm -f dml-scan-temp.cpp
|
21
dbcon/dmlpackageproc/CMakeLists.txt
Normal file
21
dbcon/dmlpackageproc/CMakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(dmlpackageproc_LIB_SRCS
|
||||
deletepackageprocessor.cpp
|
||||
dmlpackageprocessor.cpp
|
||||
insertpackageprocessor.cpp
|
||||
updatepackageprocessor.cpp
|
||||
commandpackageprocessor.cpp
|
||||
autoincrementdata.cpp
|
||||
tablelockdata.cpp)
|
||||
|
||||
add_library(dmlpackageproc SHARED ${dmlpackageproc_LIB_SRCS})
|
||||
|
||||
set_target_properties(dmlpackageproc PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
#install(TARGETS dmlpackageproc DESTINATION ${ENGINE_LIBDIR})
|
||||
|
51
dbcon/execplan/CMakeLists.txt
Normal file
51
dbcon/execplan/CMakeLists.txt
Normal file
@ -0,0 +1,51 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(execplan_LIB_SRCS
|
||||
calpontsystemcatalog.cpp
|
||||
aggregatecolumn.cpp
|
||||
arithmeticcolumn.cpp
|
||||
arithmeticoperator.cpp
|
||||
calpontexecutionplan.cpp
|
||||
calpontexecutionplanfactory.cpp
|
||||
calpontselectexecutionplan.cpp
|
||||
clientrotator.cpp
|
||||
constantcolumn.cpp
|
||||
constantfilter.cpp
|
||||
existsfilter.cpp
|
||||
expressionparser.cpp
|
||||
filter.cpp
|
||||
functioncolumn.cpp
|
||||
groupconcatcolumn.cpp
|
||||
intervalcolumn.cpp
|
||||
logicoperator.cpp
|
||||
mysqlexecutionplan.cpp
|
||||
objectidmanager.cpp
|
||||
objectreader.cpp
|
||||
operator.cpp
|
||||
oracleexecutionplan.cpp
|
||||
outerjoinonfilter.cpp
|
||||
predicateoperator.cpp
|
||||
pseudocolumn.cpp
|
||||
range.cpp
|
||||
returnedcolumn.cpp
|
||||
rowcolumn.cpp
|
||||
selectfilter.cpp
|
||||
sessionmanager.cpp
|
||||
simplecolumn.cpp
|
||||
simplefilter.cpp
|
||||
simplescalarfilter.cpp
|
||||
treenode.cpp
|
||||
treenodeimpl.cpp
|
||||
vendorexecutionplan.cpp
|
||||
windowfunctioncolumn.cpp)
|
||||
|
||||
add_library(execplan SHARED ${execplan_LIB_SRCS})
|
||||
|
||||
set_target_properties(execplan PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS execplan DESTINATION ${ENGINE_LIBDIR})
|
||||
|
68
dbcon/joblist/CMakeLists.txt
Normal file
68
dbcon/joblist/CMakeLists.txt
Normal file
@ -0,0 +1,68 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(joblist_LIB_SRCS
|
||||
anydatalist.cpp
|
||||
batchprimitiveprocessor-jl.cpp
|
||||
columncommand-jl.cpp
|
||||
command-jl.cpp
|
||||
crossenginestep.cpp
|
||||
dictstep-jl.cpp
|
||||
diskjoinstep.cpp
|
||||
distributedenginecomm.cpp
|
||||
elementtype.cpp
|
||||
expressionstep.cpp
|
||||
filtercommand-jl.cpp
|
||||
filterstep.cpp
|
||||
groupconcat.cpp
|
||||
jl_logger.cpp
|
||||
jlf_common.cpp
|
||||
jlf_execplantojoblist.cpp
|
||||
jlf_graphics.cpp
|
||||
jlf_tuplejoblist.cpp
|
||||
jlf_subquery.cpp
|
||||
joblist.cpp
|
||||
joblistfactory.cpp
|
||||
jobstep.cpp
|
||||
jobstepassociation.cpp
|
||||
lbidlist.cpp
|
||||
limitedorderby.cpp
|
||||
passthrucommand-jl.cpp
|
||||
passthrustep.cpp
|
||||
pcolscan.cpp
|
||||
pcolstep.cpp
|
||||
pdictionary.cpp
|
||||
pdictionaryscan.cpp
|
||||
primitivemsg.cpp
|
||||
pseudocc-jl.cpp
|
||||
resourcedistributor.cpp
|
||||
resourcemanager.cpp
|
||||
rowestimator.cpp
|
||||
rtscommand-jl.cpp
|
||||
subquerystep.cpp
|
||||
subquerytransformer.cpp
|
||||
tablecolumn.cpp
|
||||
timestamp.cpp
|
||||
tuple-bps.cpp
|
||||
tupleaggregatestep.cpp
|
||||
tupleannexstep.cpp
|
||||
tupleconstantstep.cpp
|
||||
tuplehashjoin.cpp
|
||||
tuplehavingstep.cpp
|
||||
tupleunion.cpp
|
||||
unique32generator.cpp
|
||||
virtualtable.cpp
|
||||
windowfunctionstep.cpp)
|
||||
|
||||
#libjoblist_la_CXXFLAGS = $(march_flags) $(AM_CXXFLAGS)
|
||||
|
||||
add_library(joblist SHARED ${joblist_LIB_SRCS})
|
||||
|
||||
set_target_properties(joblist PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS joblist DESTINATION ${ENGINE_LIBDIR})
|
||||
|
||||
|
@ -1,155 +1,55 @@
|
||||
# Copyright (C) 2006 MySQL AB
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
INCLUDE("${PROJECT_SOURCE_DIR}/win/mysql_manifest.cmake")
|
||||
|
||||
SET(CMAKE_CXX_FLAGS_DEBUG
|
||||
"${CMAKE_CXX_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX -DUSE_SYMDIR /Zi")
|
||||
SET(CMAKE_C_FLAGS_DEBUG
|
||||
"${CMAKE_C_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX -DUSE_SYMDIR /Zi")
|
||||
SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /MAP /MAPINFO:EXPORTS")
|
||||
|
||||
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
|
||||
${CMAKE_SOURCE_DIR}/extra/yassl/include
|
||||
${CMAKE_SOURCE_DIR}/sql
|
||||
${CMAKE_SOURCE_DIR}/regex
|
||||
${CMAKE_SOURCE_DIR}/zlib
|
||||
)
|
||||
|
||||
SET_SOURCE_FILES_PROPERTIES(${CMAKE_SOURCE_DIR}/sql/sql_yacc.h
|
||||
${CMAKE_SOURCE_DIR}/sql/sql_yacc.cc
|
||||
${CMAKE_SOURCE_DIR}/include/mysql_version.h
|
||||
${CMAKE_SOURCE_DIR}/sql/sql_builtin.cc
|
||||
${CMAKE_SOURCE_DIR}/sql/lex_hash.h
|
||||
${PROJECT_SOURCE_DIR}/include/mysqld_error.h
|
||||
${PROJECT_SOURCE_DIR}/include/mysqld_ername.h
|
||||
${PROJECT_SOURCE_DIR}/include/sql_state.h
|
||||
PROPERTIES GENERATED 1)
|
||||
|
||||
ADD_DEFINITIONS(-DMYSQL_SERVER -D_CONSOLE -DHAVE_DLOPEN -DHAVE_EVENT_SCHEDULER)
|
||||
|
||||
|
||||
SET (SQL_SOURCE
|
||||
../sql-common/client.c derror.cc des_key_file.cc
|
||||
discover.cc ../libmysql/errmsg.c field.cc field_conv.cc
|
||||
filesort.cc gstream.cc
|
||||
ha_partition.cc
|
||||
handler.cc hash_filo.cc hash_filo.h
|
||||
hostname.cc init.cc item.cc item_buff.cc item_cmpfunc.cc
|
||||
item_create.cc item_func.cc item_geofunc.cc item_row.cc
|
||||
item_strfunc.cc item_subselect.cc item_sum.cc item_timefunc.cc
|
||||
item_window_function.cc item_create_window_function.cc
|
||||
key.cc log.cc lock.cc message.rc
|
||||
log_event.cc rpl_record.cc rpl_reporting.cc
|
||||
log_event_old.cc rpl_record_old.cc
|
||||
message.h mf_iocache.cc my_decimal.cc ../sql-common/my_time.c
|
||||
mysqld.cc net_serv.cc
|
||||
nt_servc.cc nt_servc.h opt_range.cc opt_range.h opt_sum.cc
|
||||
../sql-common/pack.c parse_file.cc password.c procedure.cc
|
||||
protocol.cc records.cc repl_failsafe.cc rpl_filter.cc set_var.cc
|
||||
slave.cc sp.cc sp_cache.cc sp_head.cc sp_pcontext.cc
|
||||
sp_rcontext.cc spatial.cc sql_acl.cc sql_analyse.cc sql_base.cc
|
||||
sql_cache.cc sql_class.cc sql_client.cc sql_crypt.cc sql_crypt.h
|
||||
sql_cursor.cc sql_db.cc sql_delete.cc sql_derived.cc sql_do.cc
|
||||
sql_error.cc sql_handler.cc sql_help.cc sql_insert.cc sql_lex.cc
|
||||
sql_list.cc sql_load.cc sql_manager.cc sql_map.cc sql_parse.cc
|
||||
sql_partition.cc sql_plugin.cc sql_prepare.cc sql_rename.cc
|
||||
sql_repl.cc sql_select.cc sql_show.cc sql_state.c sql_string.cc
|
||||
sql_table.cc sql_test.cc sql_trigger.cc sql_udf.cc sql_union.cc
|
||||
sql_update.cc sql_view.cc strfunc.cc table.cc thr_malloc.cc
|
||||
time.cc tztime.cc uniques.cc unireg.cc item_xmlfunc.cc
|
||||
rpl_tblmap.cc sql_binlog.cc event_scheduler.cc event_data_objects.cc
|
||||
event_queue.cc event_db_repository.cc
|
||||
sql_tablespace.cc events.cc ../sql-common/my_user.c
|
||||
partition_info.cc rpl_utility.cc rpl_injector.cc sql_locale.cc
|
||||
rpl_rli.cc rpl_mi.cc sql_servers.cc
|
||||
sql_connect.cc scheduler.cc
|
||||
sql_profile.cc event_parse_data.cc
|
||||
${PROJECT_SOURCE_DIR}/sql/sql_yacc.cc
|
||||
${PROJECT_SOURCE_DIR}/sql/sql_yacc.h
|
||||
${PROJECT_SOURCE_DIR}/include/mysqld_error.h
|
||||
${PROJECT_SOURCE_DIR}/include/mysqld_ername.h
|
||||
${PROJECT_SOURCE_DIR}/include/sql_state.h
|
||||
${PROJECT_SOURCE_DIR}/include/mysql_version.h
|
||||
${PROJECT_SOURCE_DIR}/sql/sql_builtin.cc
|
||||
${PROJECT_SOURCE_DIR}/sql/lex_hash.h)
|
||||
ADD_LIBRARY(sql ${SQL_SOURCE})
|
||||
|
||||
IF (NOT EXISTS cmake_dummy.cc)
|
||||
FILE (WRITE cmake_dummy.cc "")
|
||||
ENDIF (NOT EXISTS cmake_dummy.cc)
|
||||
ADD_EXECUTABLE(mysqld cmake_dummy.cc)
|
||||
|
||||
SET_TARGET_PROPERTIES(mysqld PROPERTIES OUTPUT_NAME mysqld${MYSQLD_EXE_SUFFIX})
|
||||
SET_TARGET_PROPERTIES(mysqld PROPERTIES ENABLE_EXPORTS TRUE)
|
||||
|
||||
SET (MYSQLD_CORE_LIBS mysys zlib dbug strings yassl taocrypt vio regex sql)
|
||||
TARGET_LINK_LIBRARIES(mysqld ${MYSQLD_CORE_LIBS} ${MYSQLD_STATIC_ENGINE_LIBS})
|
||||
TARGET_LINK_LIBRARIES(mysqld ws2_32.lib)
|
||||
|
||||
|
||||
IF(MSVC AND NOT WITHOUT_DYNAMIC_PLUGINS)
|
||||
# Set module definition file. Also use non-incremental linker,
|
||||
# incremental appears to crash from time to time,if used with /DEF option
|
||||
SET_TARGET_PROPERTIES(mysqld PROPERTIES LINK_FLAGS "/DEF:mysqld.def /INCREMENTAL:NO")
|
||||
|
||||
FOREACH (CORELIB ${MYSQLD_CORE_LIBS})
|
||||
GET_TARGET_PROPERTY(LOC ${CORELIB} LOCATION)
|
||||
FILE(TO_NATIVE_PATH ${LOC} LOC)
|
||||
SET (LIB_LOCATIONS ${LIB_LOCATIONS} ${LOC})
|
||||
ENDFOREACH (CORELIB ${MYSQLD_CORE_LIBS})
|
||||
|
||||
ADD_CUSTOM_COMMAND(TARGET mysqld PRE_LINK
|
||||
COMMAND cscript ARGS //nologo ${PROJECT_SOURCE_DIR}/win/create_def_file.js
|
||||
${PLATFORM} ${LIB_LOCATIONS} > mysqld.def
|
||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/sql)
|
||||
ENDIF(MSVC AND NOT WITHOUT_DYNAMIC_PLUGINS)
|
||||
|
||||
ADD_DEPENDENCIES(sql GenError)
|
||||
|
||||
# Sql Parser custom command
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${PROJECT_SOURCE_DIR}/sql/sql_yacc.h
|
||||
${PROJECT_SOURCE_DIR}/sql/sql_yacc.cc
|
||||
COMMAND bison ARGS -y -p MYSQL --defines=sql_yacc.h
|
||||
--output=sql_yacc.cc sql_yacc.yy
|
||||
DEPENDS ${PROJECT_SOURCE_DIR}/sql/sql_yacc.yy)
|
||||
|
||||
|
||||
# Gen_lex_hash
|
||||
ADD_EXECUTABLE(gen_lex_hash gen_lex_hash.cc)
|
||||
TARGET_LINK_LIBRARIES(gen_lex_hash debug dbug mysqlclient wsock32)
|
||||
GET_TARGET_PROPERTY(GEN_LEX_HASH_EXE gen_lex_hash LOCATION)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${PROJECT_SOURCE_DIR}/sql/lex_hash.h
|
||||
COMMAND ${GEN_LEX_HASH_EXE} ARGS > lex_hash.h
|
||||
DEPENDS ${GEN_LEX_HASH_EXE})
|
||||
|
||||
ADD_CUSTOM_TARGET(
|
||||
GenServerSource ALL
|
||||
DEPENDS ${PROJECT_SOURCE_DIR}/sql/sql_yacc.h
|
||||
${PROJECT_SOURCE_DIR}/sql/sql_yacc.cc
|
||||
${PROJECT_SOURCE_DIR}/sql/message.h
|
||||
${PROJECT_SOURCE_DIR}/sql/message.rc
|
||||
${PROJECT_SOURCE_DIR}/sql/lex_hash.h)
|
||||
|
||||
ADD_DEPENDENCIES(mysqld GenServerSource)
|
||||
|
||||
# Remove the auto-generated files as part of 'Clean Solution'
|
||||
SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
|
||||
"lex_hash.h;sql_yacc.h;sql_yacc.cc;mysqld.def")
|
||||
|
||||
ADD_LIBRARY(udf_example MODULE udf_example.c udf_example.def)
|
||||
ADD_DEPENDENCIES(udf_example strings GenError)
|
||||
TARGET_LINK_LIBRARIES(udf_example strings wsock32)
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
SET ( libcalmysql_SRCS
|
||||
ha_calpont.cpp
|
||||
ha_calpont_impl.cpp
|
||||
ha_calpont_dml.cpp
|
||||
ha_calpont_ddl.cpp
|
||||
ha_calpont_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_calpont_partition.cpp
|
||||
ha_pseudocolumn.cpp )
|
||||
|
||||
add_definitions(-DMYSQL_DYNAMIC_PLUGIN)
|
||||
|
||||
add_library(calmysql SHARED ${libcalmysql_SRCS})
|
||||
|
||||
set_target_properties(calmysql PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS calmysql DESTINATION ${ENGINE_LIBDIR})
|
||||
install(FILES syscatalog_mysql.sql
|
||||
dumpcat_mysql.sql
|
||||
calsetuserpriority.sql
|
||||
calremoveuserpriority.sql
|
||||
calshowprocesslist.sql
|
||||
my.cnf
|
||||
DESTINATION ${ENGINE_MYSQLDIR})
|
||||
install(FILES install_calpont_mysql.sh mysql-Columnstore dumpcat.pl
|
||||
DESTINATION ${ENGINE_MYSQLDIR})
|
||||
|
||||
|
||||
#AM_CPPFLAGS = $(idb_common_includes) $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#lib_LTLIBRARIES = libcalmysql.la
|
||||
#libcalmysql_la_SOURCES = ha_calpont.cpp ha_calpont_impl.cpp ha_calpont_dml.cpp ha_calpont_ddl.cpp ha_calpont_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_calpont_partition.cpp ha_pseudocolumn.cpp
|
||||
#libcalmysql_la_LDFLAGS = -version-info 1:0:0 $(idb_common_ldflags) $(idb_common_libs) $(idb_write_libs) $(AM_LDFLAGS)
|
||||
#libcalmysql_la_CPPFLAGS = -I/usr/include/libxml2 -I../../../mysql/include -I../../../mysql/sql -I../../../mysql/regex -DMYSQL_DYNAMIC_PLUGIN $(AM_CPPFLAGS)
|
||||
#include_HEADERS = idb_mysql.h
|
||||
#
|
||||
#dist_mysql_DATA = syscatalog_mysql.sql dumpcat_mysql.sql calsetuserpriority.sql calremoveuserpriority.sql calshowprocesslist.sql my.cnf
|
||||
#dist_mysql_SCRIPTS = install_calpont_mysql.sh mysql-Columnstore dumpcat.pl
|
||||
#
|
||||
#libcalmysql_la-ha_calpont.lo: ha_calpont.cpp
|
||||
# if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcalmysql_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -fno-rtti -fno-implicit-templates -MT libcalmysql_la-ha_calpont.lo -MD -MP -MF "$(DEPDIR)/libcalmysql_la-ha_calpont.Tpo" -c -o libcalmysql_la-ha_calpont.lo `test -f 'ha_calpont.cpp' || echo '$(srcdir)/'`ha_calpont.cpp; \
|
||||
# then mv -f "$(DEPDIR)/libcalmysql_la-ha_calpont.Tpo" "$(DEPDIR)/libcalmysql_la-ha_calpont.Plo"; else rm -f "$(DEPDIR)/libcalmysql_la-ha_calpont.Tpo"; exit 1; fi
|
||||
|
||||
|
0
dbcon/mysql/cmake_dummy.cc
Normal file
0
dbcon/mysql/cmake_dummy.cc
Normal file
14
ddlproc/CMakeLists.txt
Normal file
14
ddlproc/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(DDLProc_SRCS ddlproc.cpp ddlprocessor.cpp)
|
||||
|
||||
add_executable(DDLProc ${DDLProc_SRCS})
|
||||
|
||||
target_link_libraries(DDLProc ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS} threadpool)
|
||||
|
||||
install(TARGETS DDLProc DESTINATION ${ENGINE_BINDIR})
|
||||
|
14
decomsvr/CMakeLists.txt
Normal file
14
decomsvr/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(DecomSvr_SRCS quicklz.c server.cpp)
|
||||
|
||||
add_executable(DecomSvr ${DecomSvr_SRCS})
|
||||
|
||||
target_link_libraries(DecomSvr ${ENGINE_LDFLAGS} boost_idb pthread rt)
|
||||
|
||||
install(TARGETS DecomSvr DESTINATION ${ENGINE_BINDIR})
|
||||
|
20
dmlproc/CMakeLists.txt
Normal file
20
dmlproc/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(DMLProc_SRCS
|
||||
dmlproc.cpp
|
||||
dmlprocessor.cpp
|
||||
dmlresultbuffer.cpp
|
||||
batchinsertprocessor.cpp)
|
||||
|
||||
add_executable(DMLProc ${DMLProc_SRCS})
|
||||
|
||||
target_link_libraries(DMLProc ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS} threadpool ddlcleanuputil batchloader)
|
||||
|
||||
install(TARGETS DMLProc DESTINATION ${ENGINE_BINDIR})
|
||||
|
||||
|
||||
|
18
exemgr/CMakeLists.txt
Normal file
18
exemgr/CMakeLists.txt
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(ExeMgr_SRCS main.cpp activestatementcounter.cpp femsghandler.cpp)
|
||||
|
||||
add_executable(ExeMgr ${ExeMgr_SRCS})
|
||||
|
||||
target_link_libraries(ExeMgr ${ENGINE_LDFLAGS} ${ENGINE_EXEC_LIBS} cacheutils threadpool)
|
||||
|
||||
install(TARGETS ExeMgr DESTINATION ${ENGINE_BINDIR})
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
6
oam/CMakeLists.txt
Normal file
6
oam/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
add_subdirectory(etc)
|
||||
add_subdirectory(post)
|
||||
add_subdirectory(install_scripts)
|
||||
add_subdirectory(cloud)
|
||||
|
2
oam/cloud/CMakeLists.txt
Normal file
2
oam/cloud/CMakeLists.txt
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
install(FILES IDBInstanceCmds.sh IDBVolumeCmds.sh DESTINATION ${ENGINE_BINDIR})
|
8
oam/etc/CMakeLists.txt
Normal file
8
oam/etc/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
install(FILES AlarmConfig.xml
|
||||
Columnstore.xml
|
||||
ProcessConfig.xml
|
||||
ConsoleCmds.xml
|
||||
Columnstore.xml.singleserver
|
||||
ProcessConfig.xml.singleserver
|
||||
DESTINATION ${ENGINE_ETCDIR})
|
40
oam/install_scripts/CMakeLists.txt
Normal file
40
oam/install_scripts/CMakeLists.txt
Normal file
@ -0,0 +1,40 @@
|
||||
|
||||
install(FILES post-install
|
||||
pre-uninstall
|
||||
remote_command.sh
|
||||
columnstoreLogRotate
|
||||
transactionLog
|
||||
transactionLogArchiver.sh
|
||||
module_installer.sh
|
||||
startupTests.sh
|
||||
user_installer.sh
|
||||
performance_installer.sh
|
||||
remote_scp_get.sh
|
||||
columnstoreAlias
|
||||
run.sh
|
||||
upgrade-columnstore.sh
|
||||
post-mysql-install
|
||||
post-mysqld-install
|
||||
binary_installer.sh
|
||||
os_check.sh
|
||||
columnstore
|
||||
columnstoreSyslog
|
||||
columnstoreSyslog-ng
|
||||
syslogSetup.sh
|
||||
remote_scp_put.sh
|
||||
columnstoreUninstall.sh
|
||||
columnstore.def
|
||||
remotessh.exp
|
||||
rsync.sh
|
||||
remote_command_verify.sh
|
||||
columnstore.conf
|
||||
columnstoreSyslog7
|
||||
master-rep-columnstore.sh
|
||||
slave-rep-columnstore.sh
|
||||
disable-rep-columnstore.sh
|
||||
myCnf-include-args.text
|
||||
myCnf-exclude-args.text
|
||||
DESTINATION ${ENGINE_BINDIR})
|
||||
|
||||
install(FILES module DESTINATION ${ENGINE_LOCALDIR})
|
||||
|
15
oam/oamcpp/CMakeLists.txt
Normal file
15
oam/oamcpp/CMakeLists.txt
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(oamcpp_LIB_SRCS liboamcpp.cpp oamcache.cpp)
|
||||
|
||||
add_library(oamcpp SHARED ${oamcpp_LIB_SRCS})
|
||||
|
||||
set_target_properties(oamcpp PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS oamcpp DESTINATION ${ENGINE_LIBDIR})
|
||||
|
||||
|
3
oam/post/CMakeLists.txt
Normal file
3
oam/post/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
install(FILES functions test-001.sh test-002.sh test-003.sh test-004.sh DESTINATION ${ENGINE_POSTDIR})
|
||||
|
49
oam/replaytxnlog/CMakeLists.txt
Normal file
49
oam/replaytxnlog/CMakeLists.txt
Normal file
@ -0,0 +1,49 @@
|
||||
|
||||
#
|
||||
# Not used
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## Copyright (C) 2014 InfiniDB, Inc.
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or
|
||||
## modify it under the terms of the GNU General Public License
|
||||
## as published by the Free Software Foundation; version 2 of
|
||||
## the License.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
## MA 02110-1301, USA.
|
||||
#
|
||||
## $Id: Makefile.am 864 2009-04-02 19:22:49Z rdempsey $
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#lib_LTLIBRARIES = libreplaytxnlog.la
|
||||
#libreplaytxnlog_la_SOURCES = replaytxnlog.cpp
|
||||
#libreplaytxnlog_la_LDFLAGS = -version-info 1:0:0 $(AM_LDFLAGS)
|
||||
#libreplaytxnlog_la_CPPFLAGS = @idb_common_includes@ $(AM_CPPFLAGS)
|
||||
#include_HEADERS = replaytxnlog.h
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
53
oamapps/CMakeLists.txt
Normal file
53
oamapps/CMakeLists.txt
Normal file
@ -0,0 +1,53 @@
|
||||
|
||||
add_subdirectory(mcsadmin)
|
||||
add_subdirectory(columnstoreDB)
|
||||
add_subdirectory(postConfigure)
|
||||
add_subdirectory(serverMonitor)
|
||||
add_subdirectory(traphandler)
|
||||
add_subdirectory(sendtrap)
|
||||
add_subdirectory(columnstoreSupport)
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## Copyright (C) 2014 InfiniDB, Inc.
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or
|
||||
## modify it under the terms of the GNU General Public License
|
||||
## as published by the Free Software Foundation; version 2 of
|
||||
## the License.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
## MA 02110-1301, USA.
|
||||
#
|
||||
## $Id: Makefile.am 878 2009-04-03 20:34:32Z rdempsey $
|
||||
##
|
||||
##.PHONY: install
|
||||
#
|
||||
#SUBDIRS = mcsadmin columnstoreDB postConfigure serverMonitor traphandler \
|
||||
#sendtrap columnstoreSupport
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
##install:
|
||||
## for subdir in $(SUBDIRS); \
|
||||
## do $(MAKE) -C $$subdir install
|
||||
## done
|
48
oamapps/calpontConsole/CMakeLists.txt
Normal file
48
oamapps/calpontConsole/CMakeLists.txt
Normal file
@ -0,0 +1,48 @@
|
||||
|
||||
#
|
||||
# Not used
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## Copyright (C) 2014 InfiniDB, Inc.
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or
|
||||
## modify it under the terms of the GNU General Public License
|
||||
## as published by the Free Software Foundation; version 2 of
|
||||
## the License.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
## MA 02110-1301, USA.
|
||||
#
|
||||
## $Id: Makefile.am 333 2009-04-03 20:35:04Z rdempsey $
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#bin_PROGRAMS = calpontConsole
|
||||
#calpontConsole_SOURCES = calpontConsole.cpp
|
||||
#calpontConsole_CPPFLAGS = $(idb_common_includes) $(AM_CPPFLAGS)
|
||||
#calpontConsole_LDFLAGS = $(idb_common_ldflags) $(idb_common_libs) $(idb_oam_libs) $(idb_exec_libs) -lreadline -lncurses $(AM_LDFLAGS)
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
49
oamapps/calpontDB/CMakeLists.txt
Normal file
49
oamapps/calpontDB/CMakeLists.txt
Normal file
@ -0,0 +1,49 @@
|
||||
|
||||
#
|
||||
# Not used
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## Copyright (C) 2014 InfiniDB, Inc.
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or
|
||||
## modify it under the terms of the GNU General Public License
|
||||
## as published by the Free Software Foundation; version 2 of
|
||||
## the License.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
## MA 02110-1301, USA.
|
||||
#
|
||||
## $Id: Makefile.am 333 2009-04-03 20:35:04Z rdempsey $
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#bin_PROGRAMS = calpontDBWrite
|
||||
#calpontDBWrite_SOURCES = calpontDB.cpp
|
||||
#calpontDBWrite_CPPFLAGS = $(idb_common_includes) $(AM_CPPFLAGS)
|
||||
#calpontDBWrite_LDFLAGS = $(idb_common_ldflags) $(idb_common_libs) $(idb_oam_libs) $(idb_exec_libs) -lreadline -lncurses $(AM_LDFLAGS)
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
57
oamapps/calpontSupport/CMakeLists.txt
Normal file
57
oamapps/calpontSupport/CMakeLists.txt
Normal file
@ -0,0 +1,57 @@
|
||||
|
||||
#
|
||||
# Not used
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## Copyright (C) 2014 InfiniDB, Inc.
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or
|
||||
## modify it under the terms of the GNU General Public License
|
||||
## as published by the Free Software Foundation; version 2 of
|
||||
## the License.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
## MA 02110-1301, USA.
|
||||
#
|
||||
## $Id: Makefile.am 333 2009-04-03 20:35:04Z rdempsey $
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#bin_PROGRAMS = calpontSupport
|
||||
#calpontSupport_SOURCES = calpontSupport.cpp
|
||||
#calpontSupport_CPPFLAGS = $(idb_common_includes) $(AM_CPPFLAGS)
|
||||
#calpontSupport_LDFLAGS = $(idb_common_ldflags) $(idb_brm_libs) $(idb_oam_libs) $(idb_exec_libs) -lreadline -lncurses $(AM_LDFLAGS)
|
||||
#dist_bin_SCRIPTS=\
|
||||
# alarmReport.sh \
|
||||
# bulklogReport.sh \
|
||||
# configReport.sh \
|
||||
# hadoopReport.sh \
|
||||
# hardwareReport.sh \
|
||||
# logReport.sh \
|
||||
# resourceReport.sh \
|
||||
# softwareReport.sh
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
14
oamapps/columnstoreDB/CMakeLists.txt
Normal file
14
oamapps/columnstoreDB/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(columnstoreDBWrite_SRCS columnstoreDB.cpp)
|
||||
|
||||
add_executable(columnstoreDBWrite ${columnstoreDBWrite_SRCS})
|
||||
|
||||
target_link_libraries(columnstoreDBWrite ${ENGINE_LDFLAGS} readline ncurses ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS columnstoreDBWrite DESTINATION ${ENGINE_BINDIR})
|
||||
|
14
oamapps/columnstoreSupport/CMakeLists.txt
Normal file
14
oamapps/columnstoreSupport/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(columnstoreSupport_SRCS columnstoreSupport.cpp)
|
||||
|
||||
add_executable(columnstoreSupport ${columnstoreSupport_SRCS})
|
||||
|
||||
target_link_libraries(columnstoreSupport ${ENGINE_LDFLAGS} readline ncurses ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS columnstoreSupport DESTINATION ${ENGINE_BINDIR})
|
||||
|
14
oamapps/mcsadmin/CMakeLists.txt
Normal file
14
oamapps/mcsadmin/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(mcsadmin_SRCS mcsadmin.cpp)
|
||||
|
||||
add_executable(mcsadmin ${mcsadmin_SRCS})
|
||||
|
||||
target_link_libraries(mcsadmin ${ENGINE_LDFLAGS} readline ncurses ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS mcsadmin DESTINATION ${ENGINE_BINDIR})
|
||||
|
58
oamapps/postConfigure/CMakeLists.txt
Normal file
58
oamapps/postConfigure/CMakeLists.txt
Normal file
@ -0,0 +1,58 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(postConfigure_SRCS postConfigure.cpp helpers.cpp)
|
||||
|
||||
add_executable(postConfigure ${postConfigure_SRCS})
|
||||
|
||||
target_link_libraries(postConfigure ${ENGINE_LDFLAGS} readline ncurses ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS postConfigure DESTINATION ${ENGINE_BINDIR})
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(installer_SRCS installer.cpp helpers.cpp)
|
||||
|
||||
add_executable(installer ${installer_SRCS})
|
||||
|
||||
target_link_libraries(installer ${ENGINE_LDFLAGS} readline ncurses ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS installer DESTINATION ${ENGINE_BINDIR})
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(getMySQLpw_SRCS getMySQLpw.cpp)
|
||||
|
||||
add_executable(getMySQLpw ${getMySQLpw_SRCS})
|
||||
|
||||
target_link_libraries(getMySQLpw ${ENGINE_LDFLAGS} readline ncurses ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS getMySQLpw DESTINATION ${ENGINE_BINDIR})
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(amazonInstaller_SRCS amazonInstaller.cpp helpers.cpp)
|
||||
|
||||
add_executable(amazonInstaller ${amazonInstaller_SRCS})
|
||||
|
||||
target_link_libraries(amazonInstaller ${ENGINE_LDFLAGS} readline ncurses ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS amazonInstaller DESTINATION ${ENGINE_BINDIR})
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(mycnfUpgrade_SRCS mycnfUpgrade.cpp)
|
||||
|
||||
add_executable(mycnfUpgrade ${mycnfUpgrade_SRCS})
|
||||
|
||||
target_link_libraries(mycnfUpgrade ${ENGINE_LDFLAGS} readline ncurses ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS mycnfUpgrade DESTINATION ${ENGINE_BINDIR})
|
||||
|
49
oamapps/replayTransactionLog/CMakeLists.txt
Normal file
49
oamapps/replayTransactionLog/CMakeLists.txt
Normal file
@ -0,0 +1,49 @@
|
||||
|
||||
#
|
||||
# Not used
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## Copyright (C) 2014 InfiniDB, Inc.
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or
|
||||
## modify it under the terms of the GNU General Public License
|
||||
## as published by the Free Software Foundation; version 2 of
|
||||
## the License.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
## MA 02110-1301, USA.
|
||||
#
|
||||
## $Id: Makefile.am 333 2009-04-03 20:35:04Z rdempsey $
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#bin_PROGRAMS = ReplayTransactionLog
|
||||
#ReplayTransactionLog_SOURCES = replaytransactionlog.cpp
|
||||
#ReplayTransactionLog_CPPFLAGS = @idb_common_includes@ $(AM_CPPFLAGS)
|
||||
#ReplayTransactionLog_LDFLAGS = @idb_common_ldflags@ @idb_exec_libs@ -lreplaytxnlog $(AM_LDFLAGS)
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
14
oamapps/sendtrap/CMakeLists.txt
Normal file
14
oamapps/sendtrap/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(sendtrap_SRCS sendtrap.cpp)
|
||||
|
||||
add_executable(sendtrap ${sendtrap_SRCS})
|
||||
|
||||
target_link_libraries(sendtrap ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS})
|
||||
|
||||
install(TARGETS sendtrap DESTINATION ${ENGINE_BINDIR})
|
||||
|
23
oamapps/serverMonitor/CMakeLists.txt
Normal file
23
oamapps/serverMonitor/CMakeLists.txt
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(ServerMonitor_SRCS
|
||||
main.cpp
|
||||
serverMonitor.cpp
|
||||
cpuMonitor.cpp
|
||||
diskMonitor.cpp
|
||||
memoryMonitor.cpp
|
||||
procmonMonitor.cpp
|
||||
msgProcessor.cpp
|
||||
dbhealthMonitor.cpp
|
||||
UMAutoSync.cpp)
|
||||
|
||||
add_executable(ServerMonitor ${ServerMonitor_SRCS})
|
||||
|
||||
target_link_libraries(ServerMonitor ${ENGINE_LDFLAGS} ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS ServerMonitor DESTINATION ${ENGINE_BINDIR})
|
||||
|
49
oamapps/sessionWalker/CMakeLists.txt
Normal file
49
oamapps/sessionWalker/CMakeLists.txt
Normal file
@ -0,0 +1,49 @@
|
||||
|
||||
#
|
||||
# Not used
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## Copyright (C) 2014 InfiniDB, Inc.
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or
|
||||
## modify it under the terms of the GNU General Public License
|
||||
## as published by the Free Software Foundation; version 2 of
|
||||
## the License.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
## MA 02110-1301, USA.
|
||||
#
|
||||
## $Id: Makefile.am 333 2009-04-03 20:35:04Z rdempsey $
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#bin_PROGRAMS = sessionWalker
|
||||
#sessionWalker_SOURCES = sessionwalker.cpp
|
||||
#sessionWalker_CPPFLAGS = @idb_common_includes@ $(AM_CPPFLAGS)
|
||||
#sessionWalker_LDFLAGS = @idb_common_ldflags@ @idb_common_libs@ @idb_write_libs@ @netsnmp_libs@ $(AM_LDFLAGS)
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
14
oamapps/traphandler/CMakeLists.txt
Normal file
14
oamapps/traphandler/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(trapHandler_SRCS trapHandler.cpp)
|
||||
|
||||
add_executable(trapHandler ${trapHandler_SRCS})
|
||||
|
||||
target_link_libraries(trapHandler ${ENGINE_LDFLAGS} ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS trapHandler DESTINATION ${ENGINE_BINDIR})
|
||||
|
5
primitives/CMakeLists.txt
Normal file
5
primitives/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
add_subdirectory(blockcache)
|
||||
add_subdirectory(linux-port)
|
||||
add_subdirectory(primproc)
|
||||
|
21
primitives/blockcache/CMakeLists.txt
Normal file
21
primitives/blockcache/CMakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} ../primproc)
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(dbbc_STAT_SRCS
|
||||
blockcacheclient.cpp
|
||||
blockrequestprocessor.cpp
|
||||
fileblockrequestqueue.cpp
|
||||
filebuffer.cpp
|
||||
filebuffermgr.cpp
|
||||
filerequest.cpp
|
||||
iomanager.cpp
|
||||
stats.cpp
|
||||
fsutils.cpp)
|
||||
|
||||
#libdbbc_a_CXXFLAGS = $(march_flags) $(AM_CXXFLAGS)
|
||||
|
||||
add_library(dbbc STATIC ${dbbc_STAT_SRCS})
|
||||
|
||||
INSTALL (TARGETS dbbc DESTINATION ${ENGINE_LIBDIR})
|
14
primitives/linux-port/CMakeLists.txt
Normal file
14
primitives/linux-port/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} ../blockcache ../primproc)
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(processor_STAT_SRCS primitiveprocessor.cpp dictionary.cpp column.cpp)
|
||||
|
||||
#libprocessor_a_CXXFLAGS = $(march_flags) $(AM_CXXFLAGS)
|
||||
|
||||
add_library(processor STATIC ${processor_STAT_SRCS})
|
||||
|
||||
INSTALL (TARGETS processor DESTINATION ${ENGINE_LIBDIR})
|
||||
|
31
primitives/primproc/CMakeLists.txt
Normal file
31
primitives/primproc/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} ../blockcache ../linux-port)
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(PrimProc_SRCS
|
||||
primproc.cpp
|
||||
batchprimitiveprocessor.cpp
|
||||
bppseeder.cpp
|
||||
bppsendthread.cpp
|
||||
columncommand.cpp
|
||||
command.cpp
|
||||
dictstep.cpp
|
||||
filtercommand.cpp
|
||||
logger.cpp
|
||||
passthrucommand.cpp
|
||||
primitiveserver.cpp
|
||||
pseudocc.cpp
|
||||
rtscommand.cpp
|
||||
umsocketselector.cpp)
|
||||
|
||||
#PrimProc_CXXFLAGS = $(march_flags) $(AM_CXXFLAGS)
|
||||
|
||||
add_executable(PrimProc ${PrimProc_SRCS})
|
||||
|
||||
target_link_libraries(PrimProc ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS} threadpool cacheutils dbbc processor)
|
||||
|
||||
install(TARGETS PrimProc DESTINATION ${ENGINE_BINDIR})
|
||||
|
||||
|
14
procmgr/CMakeLists.txt
Normal file
14
procmgr/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(ProcMgr_SRCS main.cpp processmanager.cpp)
|
||||
|
||||
add_executable(ProcMgr ${ProcMgr_SRCS})
|
||||
|
||||
target_link_libraries(ProcMgr ${ENGINE_LDFLAGS} cacheutils ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS ProcMgr DESTINATION ${ENGINE_BINDIR})
|
||||
|
14
procmon/CMakeLists.txt
Normal file
14
procmon/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(ProcMon_SRCS main.cpp processmonitor.cpp)
|
||||
|
||||
add_executable(ProcMon ${ProcMon_SRCS})
|
||||
|
||||
target_link_libraries(ProcMon ${ENGINE_LDFLAGS} cacheutils ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS ProcMon DESTINATION ${ENGINE_BINDIR})
|
||||
|
4
snmpd/CMakeLists.txt
Normal file
4
snmpd/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
add_subdirectory(etc)
|
||||
add_subdirectory(snmpmanager)
|
||||
|
68
snmpd/etc/CMakeLists.txt
Normal file
68
snmpd/etc/CMakeLists.txt
Normal file
@ -0,0 +1,68 @@
|
||||
|
||||
########### install files ###############
|
||||
|
||||
install(FILES snmpd.conf
|
||||
snmptrapd.conf
|
||||
snmpd.conf.singleserver
|
||||
snmptrapd.conf.singleserver
|
||||
DESTINATION ${ENGINE_ETCDIR})
|
||||
|
||||
install(FILES CALPONT-MIB.txt
|
||||
AGENTX-MIB.txt
|
||||
DISMAN-EVENT-MIB.txt
|
||||
DISMAN-SCHEDULE-MIB.txt
|
||||
DISMAN-SCRIPT-MIB.txt
|
||||
EtherLike-MIB.txt
|
||||
HCNUM-TC.txt
|
||||
HOST-RESOURCES-MIB.txt
|
||||
HOST-RESOURCES-TYPES.txt
|
||||
IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
|
||||
IANAifType-MIB.txt
|
||||
IANA-LANGUAGE-MIB.txt
|
||||
IANA-RTPROTO-MIB.txt
|
||||
IF-INVERTED-STACK-MIB.txt
|
||||
IF-MIB.txt
|
||||
INET-ADDRESS-MIB.txt
|
||||
IP-FORWARD-MIB.txt
|
||||
IP-MIB.txt
|
||||
IPV6-ICMP-MIB.txt
|
||||
IPV6-MIB.txt
|
||||
IPV6-TCP-MIB.txt
|
||||
IPV6-TC.txt
|
||||
IPV6-UDP-MIB.txt
|
||||
NET-SNMP-AGENT-MIB.txt
|
||||
NET-SNMP-EXAMPLES-MIB.txt
|
||||
NET-SNMP-EXTEND-MIB.txt
|
||||
NET-SNMP-MIB.txt
|
||||
NET-SNMP-TC.txt
|
||||
NOTIFICATION-LOG-MIB.txt
|
||||
RFC1155-SMI.txt
|
||||
RFC1213-MIB.txt
|
||||
RFC-1215.txt
|
||||
RMON-MIB.txt
|
||||
SMUX-MIB.txt
|
||||
SNMP-COMMUNITY-MIB.txt
|
||||
SNMP-FRAMEWORK-MIB.txt
|
||||
SNMP-MPD-MIB.txt
|
||||
SNMP-NOTIFICATION-MIB.txt
|
||||
SNMP-PROXY-MIB.txt
|
||||
SNMP-TARGET-MIB.txt
|
||||
SNMP-USER-BASED-SM-MIB.txt
|
||||
SNMP-USM-AES-MIB.txt
|
||||
SNMP-USM-DH-OBJECTS-MIB.txt
|
||||
SNMPv2-CONF.txt
|
||||
SNMPv2-MIB.txt
|
||||
SNMPv2-SMI.txt
|
||||
SNMPv2-TC.txt
|
||||
SNMPv2-TM.txt
|
||||
SNMP-VIEW-BASED-ACM-MIB.txt
|
||||
TCP-MIB.txt
|
||||
TRANSPORT-ADDRESS-MIB.txt
|
||||
UCD-DEMO-MIB.txt
|
||||
UCD-DISKIO-MIB.txt
|
||||
UCD-DLMOD-MIB.txt
|
||||
UCD-IPFWACC-MIB.txt
|
||||
UCD-SNMP-MIB.txt
|
||||
UDP-MIB.txt DESTINATION ${ENGINE_MIBDIR} )
|
||||
|
||||
install(FILES snmpdx.conf snmpdx.conf.singleserver DESTINATION ${ENGINE_LOCALDIR})
|
15
snmpd/snmpmanager/CMakeLists.txt
Normal file
15
snmpd/snmpmanager/CMakeLists.txt
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(snmpmanager_LIB_SRCS snmpmanager.cpp alarm.cpp)
|
||||
|
||||
add_library(snmpmanager SHARED ${snmpmanager_LIB_SRCS})
|
||||
|
||||
set_target_properties(snmpmanager PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS snmpmanager DESTINATION ${ENGINE_LIBDIR})
|
||||
|
||||
|
14
tools/CMakeLists.txt
Normal file
14
tools/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
add_subdirectory(dbbuilder)
|
||||
add_subdirectory(editem)
|
||||
add_subdirectory(dbloadxml)
|
||||
add_subdirectory(getConfig)
|
||||
add_subdirectory(cplogger)
|
||||
add_subdirectory(clearShm)
|
||||
add_subdirectory(setConfig)
|
||||
add_subdirectory(configMgt)
|
||||
add_subdirectory(viewtablelock)
|
||||
add_subdirectory(cleartablelock)
|
||||
add_subdirectory(ddlcleanup)
|
||||
add_subdirectory(idbmeminfo)
|
||||
|
45
tools/brmtest/CMakeLists.txt
Normal file
45
tools/brmtest/CMakeLists.txt
Normal file
@ -0,0 +1,45 @@
|
||||
|
||||
include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(brmtest_SRCS brmtest.cpp locks.cpp)
|
||||
|
||||
kde4_add_executable(brmtest ${brmtest_SRCS})
|
||||
|
||||
target_link_libraries(brmtest ${KDE4_KDECORE_LIBS} execplan joblist rowgroup dataconvert loggingcpp @boost_thread_lib@ brm messageqcpp rwlock configcpp xml2 joiner oamcpp snmpmanager @boost_filesystem_lib@ @boost_date_time_lib@ multicast funcexp)
|
||||
|
||||
install(TARGETS brmtest ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## $Id: Makefile.am 333 2009-04-03 20:35:04Z rdempsey $
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#bin_PROGRAMS = brmtest
|
||||
#brmtest_SOURCES = brmtest.cpp locks.cpp
|
||||
#brmtest_CPPFLAGS = -I@prefix@/Calpont/include -I/usr/include/libxml2 $(AM_CPPFLAGS)
|
||||
#brmtest_LDFLAGS = @idb_common_ldflags@ -lexecplan -ljoblist -lrowgroup -ldataconvert -lloggingcpp -l@boost_thread_lib@ -lbrm -lmessageqcpp -lrwlock -lconfigcpp -lxml2 -ljoiner \
|
||||
#-loamcpp -lsnmpmanager -l@boost_filesystem_lib@ -l@boost_date_time_lib@ @netsnmp_libs@ -lmulticast -lfuncexp $(AM_LDFLAGS)
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
58
tools/cfread/CMakeLists.txt
Normal file
58
tools/cfread/CMakeLists.txt
Normal file
@ -0,0 +1,58 @@
|
||||
|
||||
include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(cfread_SRCS cfread.cpp)
|
||||
|
||||
kde4_add_executable(cfread ${cfread_SRCS})
|
||||
|
||||
target_link_libraries(cfread ${KDE4_KDECORE_LIBS} pthread writeengine brm rwlock messageqcpp dl configcpp xml2 loggingcpp cacheutils boost_idb pthread rt)
|
||||
|
||||
install(TARGETS cfread ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(mtread_SRCS mtread.cpp)
|
||||
|
||||
kde4_add_executable(mtread ${mtread_SRCS})
|
||||
|
||||
target_link_libraries(mtread ${KDE4_KDECORE_LIBS} pthread writeengine brm rwlock messageqcpp dl configcpp xml2 loggingcpp cacheutils boost_idb pthread rt)
|
||||
|
||||
install(TARGETS mtread ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## $Id: Makefile.am 333 2009-04-03 20:35:04Z rdempsey $
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#bin_PROGRAMS = cfread mtread
|
||||
#cfread_SOURCES = cfread.cpp
|
||||
#cfread_CPPFLAGS = @idb_common_includes@ $(AM_CPPFLAGS)
|
||||
#cfread_LDFLAGS = @idb_common_ldflags@ -lpthread -lwriteengine -lbrm -lrwlock -lmessageqcpp -ldl -lconfigcpp -lxml2 -lloggingcpp -lcacheutils -lboost_idb -lpthread -lrt $(AM_LDFLAGS)
|
||||
#mtread_SOURCES = mtread.cpp
|
||||
#mtread_CPPFLAGS = @idb_common_includes@ $(AM_CPPFLAGS)
|
||||
#mtread_LDFLAGS = @idb_common_ldflags@ -lpthread -lwriteengine -lbrm -lrwlock -lmessageqcpp -ldl -lconfigcpp -lxml2 -lloggingcpp -lcacheutils -lboost_idb -lpthread -lrt $(AM_LDFLAGS)
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
14
tools/clearShm/CMakeLists.txt
Normal file
14
tools/clearShm/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(clearShm_SRCS main.cpp)
|
||||
|
||||
add_executable(clearShm ${clearShm_SRCS})
|
||||
|
||||
target_link_libraries(clearShm ${ENGINE_LDFLAGS} ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS clearShm DESTINATION ${ENGINE_BINDIR})
|
||||
|
14
tools/cleartablelock/CMakeLists.txt
Normal file
14
tools/cleartablelock/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(cleartablelock_SRCS cleartablelock.cpp cleartablelockthread.cpp)
|
||||
|
||||
add_executable(cleartablelock ${cleartablelock_SRCS})
|
||||
|
||||
target_link_libraries(cleartablelock ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS})
|
||||
|
||||
install(TARGETS cleartablelock DESTINATION ${ENGINE_BINDIR})
|
||||
|
36
tools/configMgt/CMakeLists.txt
Normal file
36
tools/configMgt/CMakeLists.txt
Normal file
@ -0,0 +1,36 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(autoInstaller_SRCS autoInstaller.cpp)
|
||||
|
||||
add_executable(autoInstaller ${autoInstaller_SRCS})
|
||||
|
||||
target_link_libraries(autoInstaller ${ENGINE_LDFLAGS} ${ENGINE_EXEC_LIBS} readline ncurses)
|
||||
|
||||
install(TARGETS autoInstaller DESTINATION ${ENGINE_BINDIR})
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(autoConfigure_SRCS autoConfigure.cpp)
|
||||
|
||||
add_executable(autoConfigure ${autoConfigure_SRCS})
|
||||
|
||||
target_link_libraries(autoConfigure ${ENGINE_LDFLAGS} ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS autoConfigure DESTINATION ${ENGINE_BINDIR})
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(svnQuery_SRCS svnQuery.cpp)
|
||||
|
||||
add_executable(svnQuery ${svnQuery_SRCS})
|
||||
|
||||
target_link_libraries(svnQuery ${ENGINE_LDFLAGS} ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS svnQuery DESTINATION ${ENGINE_BINDIR})
|
||||
|
14
tools/cplogger/CMakeLists.txt
Normal file
14
tools/cplogger/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(cplogger_SRCS main.cpp)
|
||||
|
||||
add_executable(cplogger ${cplogger_SRCS})
|
||||
|
||||
target_link_libraries(cplogger ${ENGINE_LDFLAGS} ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS cplogger DESTINATION ${ENGINE_BINDIR})
|
||||
|
14
tools/dbbuilder/CMakeLists.txt
Normal file
14
tools/dbbuilder/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(dbbuilder_SRCS dbbuilder.cpp systemcatalog.cpp)
|
||||
|
||||
add_executable(dbbuilder ${dbbuilder_SRCS})
|
||||
|
||||
target_link_libraries(dbbuilder ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS})
|
||||
|
||||
install(TARGETS dbbuilder DESTINATION ${ENGINE_BINDIR})
|
||||
|
19
tools/dbloadxml/CMakeLists.txt
Normal file
19
tools/dbloadxml/CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(dbload_STAT_SRCS inputmgr.cpp)
|
||||
|
||||
add_library(dbload STATIC ${dbload_STAT_SRCS})
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(colxml_SRCS colxml.cpp)
|
||||
|
||||
add_executable(colxml ${colxml_SRCS})
|
||||
|
||||
target_link_libraries(colxml ${ENGINE_LDFLAGS} dbload ${ENGINE_WRITE_LIBS})
|
||||
|
||||
install(TARGETS colxml DESTINATION ${ENGINE_BINDIR})
|
||||
|
14
tools/ddlcleanup/CMakeLists.txt
Normal file
14
tools/ddlcleanup/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(ddlcleanup_SRCS ddlcleanup.cpp)
|
||||
|
||||
add_executable(ddlcleanup ${ddlcleanup_SRCS})
|
||||
|
||||
target_link_libraries(ddlcleanup ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS} ddlcleanuputil)
|
||||
|
||||
install(TARGETS ddlcleanup DESTINATION ${ENGINE_BINDIR})
|
||||
|
61
tools/ddldriver/CMakeLists.txt
Normal file
61
tools/ddldriver/CMakeLists.txt
Normal file
@ -0,0 +1,61 @@
|
||||
|
||||
include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(ddldriver_SRCS ddldriver.cpp)
|
||||
|
||||
kde4_add_executable(ddldriver ${ddldriver_SRCS})
|
||||
|
||||
target_link_libraries(ddldriver ${KDE4_KDECORE_LIBS})
|
||||
|
||||
install(TARGETS ddldriver ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## Copyright (C) 2014 InfiniDB, Inc.
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or
|
||||
## modify it under the terms of the GNU General Public License
|
||||
## as published by the Free Software Foundation; version 2 of
|
||||
## the License.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
## MA 02110-1301, USA.
|
||||
#
|
||||
## $Id: Makefile.am 333 2009-04-03 20:35:04Z rdempsey $
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#bin_PROGRAMS = ddldriver
|
||||
#ddldriver_SOURCES = ddldriver.cpp
|
||||
#ddldriver_CPPFLAGS = @idb_common_includes@ $(AM_CPPFLAGS)
|
||||
#ddldriver_LDFLAGS = @idb_common_ldflags@ @idb_write_libs@ @idb_common_libs@ @netsnmp_libs@ $(AM_LDFLAGS)
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
61
tools/dmldriver/CMakeLists.txt
Normal file
61
tools/dmldriver/CMakeLists.txt
Normal file
@ -0,0 +1,61 @@
|
||||
|
||||
include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(dmldriver_SRCS dmldriver.cpp tpchrf2.cpp dmlif.cpp)
|
||||
|
||||
kde4_add_executable(dmldriver ${dmldriver_SRCS})
|
||||
|
||||
target_link_libraries(dmldriver ${KDE4_KDECORE_LIBS})
|
||||
|
||||
install(TARGETS dmldriver ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## Copyright (C) 2014 InfiniDB, Inc.
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or
|
||||
## modify it under the terms of the GNU General Public License
|
||||
## as published by the Free Software Foundation; version 2 of
|
||||
## the License.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
## MA 02110-1301, USA.
|
||||
#
|
||||
## $Id: Makefile.am 333 2009-04-03 20:35:04Z rdempsey $
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#bin_PROGRAMS = dmldriver
|
||||
#dmldriver_SOURCES = dmldriver.cpp tpchrf2.cpp dmlif.cpp
|
||||
#dmldriver_CPPFLAGS = @idb_common_includes@ $(AM_CPPFLAGS)
|
||||
#dmldriver_LDFLAGS = @idb_common_ldflags@ @idb_write_libs@ @idb_common_libs@ @netsnmp_libs@ $(AM_LDFLAGS)
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
14
tools/editem/CMakeLists.txt
Normal file
14
tools/editem/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(editem_SRCS editem.cpp)
|
||||
|
||||
add_executable(editem ${editem_SRCS})
|
||||
|
||||
target_link_libraries(editem ${ENGINE_LDFLAGS} ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS editem DESTINATION ${ENGINE_BINDIR})
|
||||
|
47
tools/evalidx/CMakeLists.txt
Normal file
47
tools/evalidx/CMakeLists.txt
Normal file
@ -0,0 +1,47 @@
|
||||
|
||||
include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(evalidx_SRCS evalidx.cpp)
|
||||
|
||||
kde4_add_executable(evalidx ${evalidx_SRCS})
|
||||
|
||||
target_link_libraries(evalidx ${KDE4_KDECORE_LIBS} dmlpackageproc execplan joblist rowgroup writeengine brm dataconvert cacheutils dmlpackage messageqcpp loggingcpp configcpp rwlock @boost_thread_lib@ xml2 joiner oamcpp snmpmanager @boost_filesystem_lib@ @boost_date_time_lib@ multicast funcexp)
|
||||
|
||||
install(TARGETS evalidx ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## $Id: Makefile.am 333 2009-04-03 20:35:04Z rdempsey $
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#bin_PROGRAMS = evalidx
|
||||
#evalidx_SOURCES = evalidx.cpp
|
||||
#evalidx_CPPFLAGS = @idb_common_includes@ $(AM_CPPFLAGS)
|
||||
#evalidx_LDFLAGS = @idb_common_ldflags@ -ldmlpackageproc -lexecplan -ljoblist -lrowgroup -lwriteengine -lbrm \
|
||||
#-ldataconvert -lcacheutils -ldmlpackage -lmessageqcpp -lloggingcpp -lconfigcpp -lrwlock -l@boost_thread_lib@ -lxml2 \
|
||||
#-ljoiner -loamcpp -lsnmpmanager -l@boost_filesystem_lib@ -l@boost_date_time_lib@ @netsnmp_libs@ -lmulticast -lfuncexp \
|
||||
#$(AM_LDFLAGS)
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
14
tools/getConfig/CMakeLists.txt
Normal file
14
tools/getConfig/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(getConfig_SRCS main.cpp)
|
||||
|
||||
add_executable(getConfig ${getConfig_SRCS})
|
||||
|
||||
target_link_libraries(getConfig ${ENGINE_LDFLAGS} ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS getConfig DESTINATION ${ENGINE_BINDIR})
|
||||
|
14
tools/idbmeminfo/CMakeLists.txt
Normal file
14
tools/idbmeminfo/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(idbmeminfo_SRCS idbmeminfo.cpp)
|
||||
|
||||
add_executable(idbmeminfo ${idbmeminfo_SRCS})
|
||||
|
||||
target_link_libraries(idbmeminfo ${ENGINE_LDFLAGS})
|
||||
|
||||
install(TARGETS idbmeminfo DESTINATION ${ENGINE_BINDIR})
|
||||
|
82
tools/qfe/CMakeLists.txt
Normal file
82
tools/qfe/CMakeLists.txt
Normal file
@ -0,0 +1,82 @@
|
||||
|
||||
include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(QFE_SRCS
|
||||
cseputils.cpp
|
||||
ddlstmts.cpp
|
||||
parsequery.cpp
|
||||
returnedrows.cpp
|
||||
sendcsep.cpp
|
||||
server.cpp
|
||||
socketio.cpp
|
||||
qfelexer.lpp
|
||||
qfeparser.ypp)
|
||||
|
||||
kde4_add_executable(QFE ${QFE_SRCS})
|
||||
|
||||
target_link_libraries(QFE ${KDE4_KDECORE_LIBS})
|
||||
|
||||
install(TARGETS QFE ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## Copyright (C) 2014 InfiniDB, Inc.
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or
|
||||
## modify it under the terms of the GNU General Public License
|
||||
## as published by the Free Software Foundation; version 2 of
|
||||
## the License.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
## MA 02110-1301, USA.
|
||||
#
|
||||
## $Id$
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#AM_YFLAGS = -d -p qfe
|
||||
#AM_LFLAGS = -i -Pqfe -olex.yy.c
|
||||
#bin_PROGRAMS = QFE
|
||||
#QFE_SOURCES = \
|
||||
#cseputils.cpp \
|
||||
#ddlstmts.cpp \
|
||||
#parsequery.cpp \
|
||||
#returnedrows.cpp \
|
||||
#sendcsep.cpp \
|
||||
#server.cpp \
|
||||
#socketio.cpp \
|
||||
#qfelexer.lpp \
|
||||
#qfeparser.ypp
|
||||
#QFE_CPPFLAGS = @idb_common_includes@ $(AM_CPPFLAGS)
|
||||
#QFE_LDFLAGS = @idb_common_ldflags@ @idb_write_libs@ @idb_exec_libs@ $(AM_LDFLAGS)
|
||||
#BUILT_SOURCES = qfeparser.cpp qfelexer.cpp qfeparser.h
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
44
tools/sendPlan/CMakeLists.txt
Normal file
44
tools/sendPlan/CMakeLists.txt
Normal file
@ -0,0 +1,44 @@
|
||||
|
||||
include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(sendPlan_SRCS sendplan.cpp)
|
||||
|
||||
kde4_add_executable(sendPlan ${sendPlan_SRCS})
|
||||
|
||||
target_link_libraries(sendPlan ${KDE4_KDECORE_LIBS})
|
||||
|
||||
install(TARGETS sendPlan ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## $Id: Makefile.am 333 2009-04-03 20:35:04Z rdempsey $
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#bin_PROGRAMS = sendPlan
|
||||
#sendPlan_SOURCES = sendplan.cpp
|
||||
#sendPlan_CPPFLAGS = @idb_common_includes@ $(AM_CPPFLAGS)
|
||||
#sendPlan_LDFLAGS = @idb_common_ldflags@ @idb_exec_libs@ $(AM_LDFLAGS)
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
16
tools/setConfig/CMakeLists.txt
Normal file
16
tools/setConfig/CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(setConfig_SRCS main.cpp)
|
||||
|
||||
add_executable(setConfig ${setConfig_SRCS})
|
||||
|
||||
target_link_libraries(setConfig ${ENGINE_LDFLAGS} ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS setConfig DESTINATION ${ENGINE_BINDIR})
|
||||
|
||||
install(FILES configxml.sh DESTINATION ${ENGINE_BINDIR})
|
||||
|
61
tools/vbgen/CMakeLists.txt
Normal file
61
tools/vbgen/CMakeLists.txt
Normal file
@ -0,0 +1,61 @@
|
||||
|
||||
include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(vbgen_SRCS vbgen.cpp myrand.cpp)
|
||||
|
||||
kde4_add_executable(vbgen ${vbgen_SRCS})
|
||||
|
||||
target_link_libraries(vbgen ${KDE4_KDECORE_LIBS})
|
||||
|
||||
install(TARGETS vbgen ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## Copyright (C) 2014 InfiniDB, Inc.
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or
|
||||
## modify it under the terms of the GNU General Public License
|
||||
## as published by the Free Software Foundation; version 2 of
|
||||
## the License.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
## MA 02110-1301, USA.
|
||||
#
|
||||
## $Id$
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#bin_PROGRAMS = vbgen
|
||||
#vbgen_SOURCES = vbgen.cpp myrand.cpp
|
||||
#vbgen_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
#vbgen_LDFLAGS = $(AM_LDFLAGS)
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
14
tools/viewtablelock/CMakeLists.txt
Normal file
14
tools/viewtablelock/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(viewtablelock_SRCS viewtablelock.cpp)
|
||||
|
||||
add_executable(viewtablelock ${viewtablelock_SRCS})
|
||||
|
||||
target_link_libraries(viewtablelock ${ENGINE_LDFLAGS} ${ENGINE_EXEC_LIBS})
|
||||
|
||||
install(TARGETS viewtablelock DESTINATION ${ENGINE_BINDIR})
|
||||
|
28
utils/CMakeLists.txt
Normal file
28
utils/CMakeLists.txt
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
add_subdirectory(boost_idb)
|
||||
add_subdirectory(startup)
|
||||
add_subdirectory(common)
|
||||
add_subdirectory(configcpp)
|
||||
add_subdirectory(loggingcpp)
|
||||
add_subdirectory(messageqcpp)
|
||||
add_subdirectory(threadpool)
|
||||
add_subdirectory(rwlock)
|
||||
add_subdirectory(dataconvert)
|
||||
add_subdirectory(joiner)
|
||||
add_subdirectory(rowgroup)
|
||||
add_subdirectory(cacheutils)
|
||||
add_subdirectory(funcexp)
|
||||
add_subdirectory(udfsdk)
|
||||
add_subdirectory(compress)
|
||||
add_subdirectory(batchloader)
|
||||
add_subdirectory(ddlcleanup)
|
||||
add_subdirectory(mysqlcl_idb)
|
||||
add_subdirectory(querystats)
|
||||
add_subdirectory(jemalloc)
|
||||
add_subdirectory(windowfunction)
|
||||
add_subdirectory(idbdatafile)
|
||||
add_subdirectory(idbhdfs)
|
||||
add_subdirectory(winport)
|
||||
add_subdirectory(thrift)
|
||||
add_subdirectory(querytele)
|
||||
|
98
utils/autoconf/CMakeLists.txt
Normal file
98
utils/autoconf/CMakeLists.txt
Normal file
@ -0,0 +1,98 @@
|
||||
|
||||
#
|
||||
# Not used
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## Copyright (C) 2014 InfiniDB, Inc.
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or
|
||||
## modify it under the terms of the GNU General Public License
|
||||
## as published by the Free Software Foundation; version 2 of
|
||||
## the License.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
## MA 02110-1301, USA.
|
||||
#
|
||||
## $Id$
|
||||
#
|
||||
#ACLOCAL_AMFLAGS = -I ./m4
|
||||
#
|
||||
#all-local: bootstrap
|
||||
# cd utils && $(MAKE) && $(MAKE) install
|
||||
# cd oam; \
|
||||
# $(MAKE) -C oamcpp install
|
||||
# cd snmpd && $(MAKE) && $(MAKE) install
|
||||
# cd dbcon; \
|
||||
# $(MAKE) -C execplan install; \
|
||||
# $(MAKE) -C joblist install
|
||||
# cd versioning && $(MAKE) && $(MAKE) install
|
||||
# cd oam && $(MAKE) && $(MAKE) install
|
||||
# cd versioning && $(MAKE) dbrm tools && $(MAKE) install_dbrm install_tools
|
||||
# cd writeengine; \
|
||||
# $(MAKE) -C wrapper install; \
|
||||
# $(MAKE) -C client install; \
|
||||
# $(MAKE) -C xml install; \
|
||||
# $(MAKE) -C redistribute install
|
||||
# cd dbcon; \
|
||||
# $(MAKE) -C ddlpackage install; \
|
||||
# $(MAKE) -C ddlpackageproc install; \
|
||||
# $(MAKE) -C dmlpackage install; \
|
||||
# $(MAKE) -C dmlpackageproc install
|
||||
# cd dbcon && $(MAKE) && $(MAKE) install
|
||||
# cd exemgr && $(MAKE) && $(MAKE) install
|
||||
# cd ddlproc && $(MAKE) && $(MAKE) install
|
||||
# cd dmlproc && $(MAKE) && $(MAKE) install
|
||||
# cd procmon && $(MAKE) && $(MAKE) install
|
||||
# cd procmgr && $(MAKE) && $(MAKE) install
|
||||
# cd oamapps && $(MAKE) && $(MAKE) install
|
||||
# cd decomsvr && $(MAKE) && $(MAKE) install
|
||||
# cd primitives && $(MAKE) && $(MAKE) install
|
||||
# cd tools && $(MAKE) && $(MAKE) install
|
||||
# cd versioning && $(MAKE) tools install_tools
|
||||
# $(MAKE) -C writeengine/server install_server
|
||||
# $(MAKE) -C writeengine/bulk install_bulk
|
||||
# $(MAKE) -C writeengine/splitter install_splitter
|
||||
# echo $(CXXFLAGS) $(DEBUG_FLAGS) > buildFlags
|
||||
#
|
||||
#compile: all-local
|
||||
#
|
||||
#.PHONY: test coverage leakcheck docs bootstrap
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap:
|
||||
# ./build/genVersion.sh --prefix=$(prefix)
|
||||
# for subdir in dbcon ddlproc dmlproc exemgr mysql net-snmp oam \
|
||||
# oamapps decomsvr primitives procmgr procmon qa snmpd tools utils versioning \
|
||||
# writeengine ; do \
|
||||
# if test -f $$subdir/Makefile; then \
|
||||
# $(MAKE) BOOTSTRAP=1 -C $$subdir bootstrap || exit $$?; \
|
||||
# fi; \
|
||||
# done
|
||||
#
|
||||
#clean: clean-am
|
||||
# for subdir in dbcon ddlproc dmlproc exemgr mysql net-snmp oam \
|
||||
# oamapps decomsvr primitives procmgr procmon qa snmpd tools utils versioning \
|
||||
# writeengine ; do \
|
||||
# if test -f $$subdir/Makefile; then \
|
||||
# $(MAKE) BOOTSTRAP=1 -C $$subdir clean || exit $$?; \
|
||||
# fi; \
|
||||
# done
|
||||
#
|
15
utils/batchloader/CMakeLists.txt
Normal file
15
utils/batchloader/CMakeLists.txt
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(batchloader_LIB_SRCS batchloader.cpp)
|
||||
|
||||
add_library(batchloader SHARED ${batchloader_LIB_SRCS})
|
||||
|
||||
set_target_properties(batchloader PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS batchloader DESTINATION ${ENGINE_LIBDIR})
|
||||
|
||||
|
43
utils/boost_idb/CMakeLists.txt
Normal file
43
utils/boost_idb/CMakeLists.txt
Normal file
@ -0,0 +1,43 @@
|
||||
include_directories(${ENGINE_COMMON_INCLUDES})
|
||||
|
||||
set(boost_idb_LIB_SRCS
|
||||
codecvt_error_category.cpp
|
||||
cpp_regex_traits.cpp
|
||||
cregex.cpp
|
||||
c_regex_traits.cpp
|
||||
error_code.cpp
|
||||
fileiter.cpp
|
||||
future.cpp
|
||||
greg_month.cpp
|
||||
icu.cpp
|
||||
instances.cpp
|
||||
once.cpp
|
||||
operations.cpp
|
||||
path.cpp
|
||||
path_traits.cpp
|
||||
portability.cpp
|
||||
posix_api.cpp
|
||||
regex.cpp
|
||||
regex_debug.cpp
|
||||
regex_raw_buffer.cpp
|
||||
regex_traits_defaults.cpp
|
||||
static_mutex.cpp
|
||||
thread.cpp
|
||||
tss_null.cpp
|
||||
unique_path.cpp
|
||||
usinstances.cpp
|
||||
utf8_codecvt_facet.cpp
|
||||
w32_regex_traits.cpp
|
||||
wc_regex_traits.cpp
|
||||
wide_posix_api.cpp
|
||||
windows_file_codecvt.cpp
|
||||
winstances.cpp)
|
||||
|
||||
add_library(boost_idb SHARED ${boost_idb_LIB_SRCS})
|
||||
|
||||
#target_link_libraries(boost_idb ${ENGINE_LDFLAGS})
|
||||
|
||||
set_target_properties(boost_idb PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS boost_idb DESTINATION ${ENGINE_LIBDIR})
|
||||
|
14
utils/cacheutils/CMakeLists.txt
Normal file
14
utils/cacheutils/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(cacheutils_LIB_SRCS cacheutils.cpp)
|
||||
|
||||
add_library(cacheutils SHARED ${cacheutils_LIB_SRCS})
|
||||
|
||||
set_target_properties(cacheutils PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
#install(TARGETS cacheutils DESTINATION ${ENGINE_LIBDIR})
|
||||
|
18
utils/common/CMakeLists.txt
Normal file
18
utils/common/CMakeLists.txt
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(common_LIB_SRCS
|
||||
fixedallocator.cpp
|
||||
poolallocator.cpp
|
||||
cgroupconfigurator.cpp
|
||||
MonitorProcMem.cpp
|
||||
nullvaluemanip.cpp)
|
||||
|
||||
add_library(common SHARED ${common_LIB_SRCS})
|
||||
|
||||
set_target_properties(common PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
#install(TARGETS common DESTINATION ${ENGINE_LIBDIR})
|
||||
|
20
utils/compress/CMakeLists.txt
Normal file
20
utils/compress/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(compress_LIB_SRCS
|
||||
idbcompress.cpp
|
||||
snappy.cpp
|
||||
snappy-sinksource.cpp
|
||||
version1.cpp
|
||||
snappy-stubs-internal.cpp)
|
||||
|
||||
add_definitions(-DNDEBUG)
|
||||
|
||||
add_library(compress SHARED ${compress_LIB_SRCS})
|
||||
|
||||
set_target_properties(compress PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
#install(TARGETS compress DESTINATION ${ENGINE_LIBDIR})
|
||||
|
13
utils/configcpp/CMakeLists.txt
Normal file
13
utils/configcpp/CMakeLists.txt
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(configcpp_LIB_SRCS configcpp.cpp xmlparser.cpp configstream.cpp)
|
||||
|
||||
add_library(configcpp SHARED ${configcpp_LIB_SRCS})
|
||||
|
||||
set_target_properties(configcpp PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS configcpp DESTINATION ${ENGINE_LIBDIR})
|
||||
|
24
utils/configcpp/md5/CMakeLists.txt
Normal file
24
utils/configcpp/md5/CMakeLists.txt
Normal file
@ -0,0 +1,24 @@
|
||||
|
||||
#
|
||||
# Not used
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#noinst_LIBRARIES = libmd5.a
|
||||
#libmd5_a_SOURCES = md5_dgst.c md5_one.c mem_clr.c
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap:
|
||||
#
|
14
utils/dataconvert/CMakeLists.txt
Normal file
14
utils/dataconvert/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(dataconvert_LIB_SRCS dataconvert.cpp)
|
||||
|
||||
add_library(dataconvert SHARED ${dataconvert_LIB_SRCS})
|
||||
|
||||
set_target_properties(dataconvert PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
#install(TARGETS dataconvert DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
14
utils/ddlcleanup/CMakeLists.txt
Normal file
14
utils/ddlcleanup/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(ddlcleanuputil_LIB_SRCS ddlcleanuputil.cpp)
|
||||
|
||||
add_library(ddlcleanuputil SHARED ${ddlcleanuputil_LIB_SRCS})
|
||||
|
||||
set_target_properties(ddlcleanuputil PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS ddlcleanuputil DESTINATION ${ENGINE_LIBDIR})
|
||||
|
115
utils/funcexp/CMakeLists.txt
Normal file
115
utils/funcexp/CMakeLists.txt
Normal file
@ -0,0 +1,115 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(funcexp_LIB_SRCS
|
||||
functor.cpp
|
||||
funcexp.cpp
|
||||
funcexpwrapper.cpp
|
||||
func_abs.cpp
|
||||
func_add_time.cpp
|
||||
func_ascii.cpp
|
||||
func_between.cpp
|
||||
func_bitwise.cpp
|
||||
func_case.cpp
|
||||
func_cast.cpp
|
||||
func_ceil.cpp
|
||||
func_char.cpp
|
||||
func_char_length.cpp
|
||||
func_coalesce.cpp
|
||||
func_concat.cpp
|
||||
func_concat_ws.cpp
|
||||
func_conv.cpp
|
||||
func_crc32.cpp
|
||||
func_date.cpp
|
||||
func_date_add.cpp
|
||||
func_date_format.cpp
|
||||
func_day.cpp
|
||||
func_dayname.cpp
|
||||
func_dayofweek.cpp
|
||||
func_dayofyear.cpp
|
||||
func_div.cpp
|
||||
func_elt.cpp
|
||||
func_exp.cpp
|
||||
func_extract.cpp
|
||||
func_find_in_set.cpp
|
||||
func_floor.cpp
|
||||
func_from_days.cpp
|
||||
func_from_unixtime.cpp
|
||||
func_get_format.cpp
|
||||
func_greatest.cpp
|
||||
func_hex.cpp
|
||||
func_hour.cpp
|
||||
func_idbpartition.cpp
|
||||
func_if.cpp
|
||||
func_ifnull.cpp
|
||||
func_in.cpp
|
||||
func_inet_aton.cpp
|
||||
func_inet_ntoa.cpp
|
||||
func_insert.cpp
|
||||
func_instr.cpp
|
||||
func_isnull.cpp
|
||||
func_last_day.cpp
|
||||
func_lcase.cpp
|
||||
func_least.cpp
|
||||
func_left.cpp
|
||||
func_length.cpp
|
||||
func_lpad.cpp
|
||||
func_ltrim.cpp
|
||||
func_makedate.cpp
|
||||
func_maketime.cpp
|
||||
func_math.cpp
|
||||
func_microsecond.cpp
|
||||
func_md5.cpp
|
||||
func_minute.cpp
|
||||
func_mod.cpp
|
||||
func_month.cpp
|
||||
func_monthname.cpp
|
||||
func_nullif.cpp
|
||||
func_pow.cpp
|
||||
func_period_add.cpp
|
||||
func_period_diff.cpp
|
||||
func_quarter.cpp
|
||||
func_rand.cpp
|
||||
func_regexp.cpp
|
||||
func_repeat.cpp
|
||||
func_replace.cpp
|
||||
func_reverse.cpp
|
||||
func_right.cpp
|
||||
func_round.cpp
|
||||
func_rpad.cpp
|
||||
func_rtrim.cpp
|
||||
func_second.cpp
|
||||
func_sec_to_time.cpp
|
||||
func_sha.cpp
|
||||
func_sign.cpp
|
||||
func_str_to_date.cpp
|
||||
func_strcmp.cpp
|
||||
func_substr.cpp
|
||||
func_substring_index.cpp
|
||||
func_sysdate.cpp
|
||||
func_time.cpp
|
||||
func_time_format.cpp
|
||||
func_time_to_sec.cpp
|
||||
func_timediff.cpp
|
||||
func_timestampdiff.cpp
|
||||
func_to_days.cpp
|
||||
func_trim.cpp
|
||||
func_truncate.cpp
|
||||
func_ucase.cpp
|
||||
func_unhex.cpp
|
||||
func_unix_timestamp.cpp
|
||||
func_week.cpp
|
||||
func_weekday.cpp
|
||||
func_year.cpp
|
||||
func_yearweek.cpp)
|
||||
|
||||
add_library(funcexp SHARED ${funcexp_LIB_SRCS})
|
||||
|
||||
set_target_properties(funcexp PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS funcexp DESTINATION ${ENGINE_LIBDIR})
|
||||
|
||||
|
22
utils/idbdatafile/CMakeLists.txt
Normal file
22
utils/idbdatafile/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(idbdatafile_LIB_SRCS
|
||||
BufferedFile.cpp
|
||||
IDBDataFile.cpp
|
||||
IDBFactory.cpp
|
||||
IDBFileSystem.cpp
|
||||
IDBLogger.cpp
|
||||
IDBPolicy.cpp
|
||||
PosixFileSystem.cpp
|
||||
UnbufferedFile.cpp)
|
||||
|
||||
add_library(idbdatafile SHARED ${idbdatafile_LIB_SRCS})
|
||||
|
||||
set_target_properties(idbdatafile PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
#install(TARGETS idbdatafile DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
4
utils/idbhdfs/CMakeLists.txt
Normal file
4
utils/idbhdfs/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
add_subdirectory(hdfs-20)
|
||||
add_subdirectory(hdfs-12)
|
||||
|
22
utils/idbhdfs/hdfs-12/CMakeLists.txt
Normal file
22
utils/idbhdfs/hdfs-12/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(hdfs-12_LIB_SRCS
|
||||
../hdfs-shared/HdfsFile.cpp
|
||||
../hdfs-shared/HdfsFileSystem.cpp
|
||||
../hdfs-shared/HdfsFsCache.cpp
|
||||
../hdfs-shared/HdfsRdwrFileBuffer.cpp
|
||||
../hdfs-shared/HdfsRdwrMemBuffer.cpp
|
||||
../hdfs-shared/HdfsPlugin.cpp)
|
||||
|
||||
add_library(hdfs-12 SHARED ${hdfs-12_LIB_SRCS})
|
||||
|
||||
set_target_properties(hdfs-12 PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS hdfs-12 DESTINATION ${ENGINE_LIBDIR})
|
||||
|
||||
install(PROGRAMS setenv-hdfs-12 DESTINATION ${ENGINE_BINDIR})
|
||||
|
24
utils/idbhdfs/hdfs-20/CMakeLists.txt
Normal file
24
utils/idbhdfs/hdfs-20/CMakeLists.txt
Normal file
@ -0,0 +1,24 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(hdfs-20_LIB_SRCS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../hdfs-shared/HdfsFile.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../hdfs-shared/HdfsFileSystem.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../hdfs-shared/HdfsFsCache.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../hdfs-shared/HdfsRdwrFileBuffer.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../hdfs-shared/HdfsRdwrMemBuffer.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../hdfs-shared/HdfsPlugin.cpp)
|
||||
|
||||
add_definitions(-DCDH4)
|
||||
|
||||
add_library(hdfs-20 SHARED ${hdfs-20_LIB_SRCS})
|
||||
|
||||
set_target_properties(hdfs-20 PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS hdfs-20 DESTINATION ${ENGINE_LIBDIR})
|
||||
|
||||
install(PROGRAMS setenv-hdfs-20 DESTINATION ${ENGINE_BINDIR})
|
||||
|
22
utils/jemalloc/CMakeLists.txt
Normal file
22
utils/jemalloc/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
# mkdir -p $(libdir)
|
||||
# $(install_sh) libjemalloc.so.3.3.0 $(libdir)
|
||||
#
|
15
utils/joiner/CMakeLists.txt
Normal file
15
utils/joiner/CMakeLists.txt
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(joiner_LIB_SRCS joiner.cpp tuplejoiner.cpp joinpartition.cpp)
|
||||
|
||||
add_library(joiner SHARED ${joiner_LIB_SRCS})
|
||||
|
||||
set_target_properties(joiner PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
#install(TARGETS joiner DESTINATION ${ENGINE_LIBDIR})
|
||||
|
||||
|
57
utils/loggingcpp/CMakeLists.txt
Normal file
57
utils/loggingcpp/CMakeLists.txt
Normal file
@ -0,0 +1,57 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(loggingcpp_LIB_SRCS
|
||||
message.cpp
|
||||
messagelog.cpp
|
||||
logger.cpp
|
||||
errorcodes.cpp
|
||||
sqllogger.cpp
|
||||
stopwatch.cpp
|
||||
idberrorinfo.cpp)
|
||||
|
||||
add_library(loggingcpp SHARED ${loggingcpp_LIB_SRCS})
|
||||
|
||||
set_target_properties(loggingcpp PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS loggingcpp DESTINATION ${ENGINE_LIBDIR})
|
||||
|
||||
install(FILES MessageFile.txt ErrorMessage.txt DESTINATION ${ENGINE_ETCDIR})
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
# TODO BEN FIX ME
|
||||
#
|
||||
#
|
||||
execute_process(
|
||||
COMMAND ./genMsgId.pl > messageids-temp.h
|
||||
COMMAND diff -abBq messageids-temp.h messageids.h >/dev/null 2>&1;
|
||||
if [ $$? -ne 0 ]; then
|
||||
mv -f messageids-temp.h messageids.h;
|
||||
else
|
||||
touch messageids.h;
|
||||
fi;
|
||||
rm -f messageids-temp.h
|
||||
)
|
||||
|
||||
execute_process(
|
||||
COMMAND ./genErrId.pl > errorids-temp.h
|
||||
COMMAND diff -abBq errorids-temp.h errorids.h >/dev/null 2>&1;
|
||||
if [ $$? -ne 0 ]; then
|
||||
mv -f errorids-temp.h errorids.h;
|
||||
else
|
||||
touch errorids.h;
|
||||
fi;
|
||||
rm -f errorids-temp.h
|
||||
)
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
#install(FILES loggingid.h messageobj.h messagelog.h messageids.h logger.h errorcodes.h exceptclasses.h sqllogger.h stopwatch.h idberrorinfo.h errorids.h DESTINATION include)
|
||||
#install(FILES MessageFile.txt ErrorMessage.txt DESTINATION )
|
18
utils/messageqcpp/CMakeLists.txt
Normal file
18
utils/messageqcpp/CMakeLists.txt
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(messageqcpp_LIB_SRCS
|
||||
messagequeue.cpp
|
||||
bytestream.cpp
|
||||
socketparms.cpp
|
||||
inetstreamsocket.cpp
|
||||
iosocket.cpp
|
||||
compressed_iss.cpp)
|
||||
|
||||
add_library(messageqcpp SHARED ${messageqcpp_LIB_SRCS})
|
||||
|
||||
set_target_properties(messageqcpp PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS messageqcpp DESTINATION ${ENGINE_LIBDIR})
|
48
utils/multicast/CMakeLists.txt
Normal file
48
utils/multicast/CMakeLists.txt
Normal file
@ -0,0 +1,48 @@
|
||||
|
||||
#
|
||||
# Not used
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
## Copyright (C) 2014 InfiniDB, Inc.
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or
|
||||
## modify it under the terms of the GNU General Public License
|
||||
## as published by the Free Software Foundation; version 2 of
|
||||
## the License.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
## MA 02110-1301, USA.
|
||||
#
|
||||
## $Id$
|
||||
### Process this file with automake to produce Makefile.in
|
||||
#
|
||||
#AM_CPPFLAGS = $(idb_common_includes) $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = -version-info 1:0:0 $(idb_ldflags)
|
||||
#lib_LTLIBRARIES = libmulticast.la
|
||||
#libmulticast_la_SOURCES = multicast.cpp
|
||||
#include_HEADERS = multicast.h
|
||||
#
|
||||
#test:
|
||||
#
|
||||
#coverage:
|
||||
#
|
||||
#leakcheck:
|
||||
#
|
||||
#docs:
|
||||
#
|
||||
#bootstrap: install-data-am
|
||||
#
|
28
utils/mysqlcl_idb/CMakeLists.txt
Normal file
28
utils/mysqlcl_idb/CMakeLists.txt
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
include_directories( /usr/include/libxml2 ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(mysqlcl_idb_LIB_SRCS
|
||||
column.cc
|
||||
command.cc
|
||||
conn.cc
|
||||
conn_uds.cc
|
||||
drizzle.cc
|
||||
field.cc
|
||||
handshake.cc
|
||||
pack.cc
|
||||
query.cc
|
||||
result.cc
|
||||
row.cc
|
||||
sha1.cc
|
||||
state.cc)
|
||||
|
||||
add_library(mysqlcl_idb SHARED ${mysqlcl_idb_LIB_SRCS})
|
||||
|
||||
set_target_properties(mysqlcl_idb PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
#install(TARGETS mysqlcl_idb DESTINATION ${ENGINE_LIBDIR})
|
||||
|
||||
|
14
utils/querystats/CMakeLists.txt
Normal file
14
utils/querystats/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(querystats_LIB_SRCS querystats.cpp)
|
||||
|
||||
add_library(querystats SHARED ${querystats_LIB_SRCS})
|
||||
|
||||
set_target_properties(querystats PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS querystats DESTINATION ${ENGINE_LIBDIR})
|
||||
|
20
utils/querytele/CMakeLists.txt
Normal file
20
utils/querytele/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(querytele_LIB_SRCS
|
||||
querytele.cpp
|
||||
queryteleclient.cpp
|
||||
querytele_constants.cpp
|
||||
querytele_types.cpp
|
||||
QueryTeleService.cpp
|
||||
queryteleprotoimpl.cpp)
|
||||
|
||||
add_library(querytele SHARED ${querytele_LIB_SRCS})
|
||||
|
||||
set_target_properties(querytele PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS querytele DESTINATION ${ENGINE_LIBDIR})
|
||||
|
16
utils/rowgroup/CMakeLists.txt
Normal file
16
utils/rowgroup/CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(rowgroup_LIB_SRCS rowaggregation.cpp rowgroup.cpp)
|
||||
|
||||
#librowgroup_la_CXXFLAGS = $(march_flags) $(AM_CXXFLAGS)
|
||||
|
||||
add_library(rowgroup SHARED ${rowgroup_LIB_SRCS})
|
||||
|
||||
set_target_properties(rowgroup PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS rowgroup DESTINATION ${ENGINE_LIBDIR})
|
||||
|
15
utils/rwlock/CMakeLists.txt
Normal file
15
utils/rwlock/CMakeLists.txt
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(rwlock_LIB_SRCS rwlock.cpp rwlock_local.cpp)
|
||||
|
||||
add_library(rwlock SHARED ${rwlock_LIB_SRCS})
|
||||
|
||||
set_target_properties(rwlock PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS rwlock DESTINATION ${ENGINE_LIBDIR})
|
||||
|
10
utils/startup/CMakeLists.txt
Normal file
10
utils/startup/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
ADD_DEFINITIONS(-fPIC -DPIC)
|
||||
|
||||
add_library(idbboot STATIC installdir.cpp)
|
||||
|
||||
INSTALL(TARGETS idbboot DESTINATION ${ENGINE_LIBDIR})
|
||||
|
||||
|
13
utils/threadpool/CMakeLists.txt
Normal file
13
utils/threadpool/CMakeLists.txt
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(threadpool_LIB_SRCS weightedthreadpool.cpp threadpool.cpp prioritythreadpool.cpp)
|
||||
|
||||
add_library(threadpool SHARED ${threadpool_LIB_SRCS})
|
||||
|
||||
set_target_properties(threadpool PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS threadpool DESTINATION ${ENGINE_LIBDIR})
|
22
utils/thrift/CMakeLists.txt
Normal file
22
utils/thrift/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(thrift_LIB_SRCS
|
||||
thrift/Thrift.cpp
|
||||
thrift/server/TSimpleServer.cpp
|
||||
thrift/transport/TSocket.cpp
|
||||
thrift/transport/TServerSocket.cpp
|
||||
thrift/transport/TBufferTransports.cpp
|
||||
thrift/TApplicationException.cpp)
|
||||
|
||||
add_definitions(-DTHRIFT_SQUELCH_CONSOLE_OUTPUT)
|
||||
|
||||
add_library(thrift SHARED ${thrift_LIB_SRCS})
|
||||
|
||||
set_target_properties(thrift PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS thrift DESTINATION ${ENGINE_LIBDIR})
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user