diff --git a/.gitignore b/.gitignore index 1fa5e6c6a..2145441da 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,7 @@ config.status stamp-h1 export/ libtool +libnetsnmpmibs-prefix buildFlags dbcon/ddlpackage/ddl-gram.cpp dbcon/ddlpackage/ddl-gram.h diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 000000000..2aca0362a --- /dev/null +++ b/CMakeLists.txt @@ -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 +# diff --git a/bison.cmake b/bison.cmake new file mode 100644 index 000000000..d5c725fbb --- /dev/null +++ b/bison.cmake @@ -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() diff --git a/config.h.cmake b/config.h.cmake new file mode 100644 index 000000000..98e038195 --- /dev/null +++ b/config.h.cmake @@ -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 and it should be used (not on Ultrix). + */ +#cmakedefine HAVE_ALLOCA_H 1 + +/* Define to 1 if you have the 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 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 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 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 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 header file. */ +#cmakedefine HAVE_MALLOC_H 1 + +/* Define to 1 if you have the `mbsrtowcs' function. */ +#cmakedefine HAVE_MBSRTOWCS 1 + +/* Define to 1 if 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 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 header file. */ +#cmakedefine HAVE_NCURSES_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_NETDB_H 1 + +/* Define to 1 if you have the 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 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 header file. */ +#cmakedefine HAVE_STDDEF_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_STDINT_H 1 + +/* Define to 1 if you have the 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 header file. */ +#cmakedefine HAVE_STRINGS_H 1 + +/* Define to 1 if you have the 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 header file. */ +#cmakedefine HAVE_SYSLOG_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_SYS_FILE_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_SYS_MOUNT_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_SYS_SELECT_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_SYS_SOCKET_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_SYS_STATFS_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_SYS_TIMEB_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have that is POSIX.1 compatible. */ +#cmakedefine HAVE_SYS_WAIT_H 1 + +/* Define to 1 if you have the 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 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 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 header file. */ +#cmakedefine HAVE_VFORK_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_WCHAR_H 1 + +/* Define to 1 if you have the 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 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 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 and . */ +#cmakedefine TIME_WITH_SYS_TIME 1 + +/* Define to 1 if your 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 does not define. */ +#cmakedefine mbstate_t + +/* Define to `int' if does not define. */ +#cmakedefine mode_t + +/* Define to `long int' if does not define. */ +#cmakedefine off_t + +/* Define to `int' if 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 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 \ No newline at end of file diff --git a/dbcon/CMakeLists.txt b/dbcon/CMakeLists.txt new file mode 100644 index 000000000..ed587717a --- /dev/null +++ b/dbcon/CMakeLists.txt @@ -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) + diff --git a/dbcon/ddlpackage/CMakeLists.txt b/dbcon/ddlpackage/CMakeLists.txt new file mode 100644 index 000000000..f3bcbe197 --- /dev/null +++ b/dbcon/ddlpackage/CMakeLists.txt @@ -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}) + diff --git a/dbcon/ddlpackage/ddl-gram.sh b/dbcon/ddlpackage/ddl-gram.sh new file mode 100755 index 000000000..5c1b121c0 --- /dev/null +++ b/dbcon/ddlpackage/ddl-gram.sh @@ -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 + + + diff --git a/dbcon/ddlpackage/ddl-scan.sh b/dbcon/ddlpackage/ddl-scan.sh new file mode 100755 index 000000000..4d62056ec --- /dev/null +++ b/dbcon/ddlpackage/ddl-scan.sh @@ -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 + + diff --git a/dbcon/ddlpackageproc/CMakeLists.txt b/dbcon/ddlpackageproc/CMakeLists.txt new file mode 100644 index 000000000..0e1d7951e --- /dev/null +++ b/dbcon/ddlpackageproc/CMakeLists.txt @@ -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}) + diff --git a/dbcon/dmlpackage/CMakeLists.txt b/dbcon/dmlpackage/CMakeLists.txt new file mode 100644 index 000000000..bde4b3842 --- /dev/null +++ b/dbcon/dmlpackage/CMakeLists.txt @@ -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}) + diff --git a/dbcon/dmlpackage/dml-gram.sh b/dbcon/dmlpackage/dml-gram.sh new file mode 100755 index 000000000..665a80da3 --- /dev/null +++ b/dbcon/dmlpackage/dml-gram.sh @@ -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 \ No newline at end of file diff --git a/dbcon/dmlpackage/dml-scan.sh b/dbcon/dmlpackage/dml-scan.sh new file mode 100755 index 000000000..33299e477 --- /dev/null +++ b/dbcon/dmlpackage/dml-scan.sh @@ -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 \ No newline at end of file diff --git a/dbcon/dmlpackageproc/CMakeLists.txt b/dbcon/dmlpackageproc/CMakeLists.txt new file mode 100644 index 000000000..1345c6852 --- /dev/null +++ b/dbcon/dmlpackageproc/CMakeLists.txt @@ -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}) + diff --git a/dbcon/execplan/CMakeLists.txt b/dbcon/execplan/CMakeLists.txt new file mode 100644 index 000000000..480632b92 --- /dev/null +++ b/dbcon/execplan/CMakeLists.txt @@ -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}) + diff --git a/dbcon/joblist/CMakeLists.txt b/dbcon/joblist/CMakeLists.txt new file mode 100644 index 000000000..11187d7fa --- /dev/null +++ b/dbcon/joblist/CMakeLists.txt @@ -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}) + + diff --git a/dbcon/mysql/CMakeLists.txt b/dbcon/mysql/CMakeLists.txt index b28fab8b8..13183f16a 100644 --- a/dbcon/mysql/CMakeLists.txt +++ b/dbcon/mysql/CMakeLists.txt @@ -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 + diff --git a/dbcon/mysql/cmake_dummy.cc b/dbcon/mysql/cmake_dummy.cc new file mode 100644 index 000000000..e69de29bb diff --git a/ddlproc/CMakeLists.txt b/ddlproc/CMakeLists.txt new file mode 100644 index 000000000..18d3540b1 --- /dev/null +++ b/ddlproc/CMakeLists.txt @@ -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}) + diff --git a/decomsvr/CMakeLists.txt b/decomsvr/CMakeLists.txt new file mode 100644 index 000000000..86cac9d27 --- /dev/null +++ b/decomsvr/CMakeLists.txt @@ -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}) + diff --git a/dmlproc/CMakeLists.txt b/dmlproc/CMakeLists.txt new file mode 100644 index 000000000..4b1511faf --- /dev/null +++ b/dmlproc/CMakeLists.txt @@ -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}) + + + diff --git a/exemgr/CMakeLists.txt b/exemgr/CMakeLists.txt new file mode 100644 index 000000000..266b84abd --- /dev/null +++ b/exemgr/CMakeLists.txt @@ -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 ############### + + diff --git a/oam/CMakeLists.txt b/oam/CMakeLists.txt new file mode 100644 index 000000000..77707fdec --- /dev/null +++ b/oam/CMakeLists.txt @@ -0,0 +1,6 @@ + +add_subdirectory(etc) +add_subdirectory(post) +add_subdirectory(install_scripts) +add_subdirectory(cloud) + diff --git a/oam/cloud/CMakeLists.txt b/oam/cloud/CMakeLists.txt new file mode 100644 index 000000000..fe8c5a1a2 --- /dev/null +++ b/oam/cloud/CMakeLists.txt @@ -0,0 +1,2 @@ + +install(FILES IDBInstanceCmds.sh IDBVolumeCmds.sh DESTINATION ${ENGINE_BINDIR}) diff --git a/oam/etc/CMakeLists.txt b/oam/etc/CMakeLists.txt new file mode 100644 index 000000000..066c24601 --- /dev/null +++ b/oam/etc/CMakeLists.txt @@ -0,0 +1,8 @@ + +install(FILES AlarmConfig.xml + Columnstore.xml + ProcessConfig.xml + ConsoleCmds.xml + Columnstore.xml.singleserver + ProcessConfig.xml.singleserver + DESTINATION ${ENGINE_ETCDIR}) diff --git a/oam/install_scripts/CMakeLists.txt b/oam/install_scripts/CMakeLists.txt new file mode 100644 index 000000000..1c27b8f1c --- /dev/null +++ b/oam/install_scripts/CMakeLists.txt @@ -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}) + diff --git a/oam/oamcpp/CMakeLists.txt b/oam/oamcpp/CMakeLists.txt new file mode 100644 index 000000000..96a8a8eb5 --- /dev/null +++ b/oam/oamcpp/CMakeLists.txt @@ -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}) + + diff --git a/oam/post/CMakeLists.txt b/oam/post/CMakeLists.txt new file mode 100644 index 000000000..4495ac76e --- /dev/null +++ b/oam/post/CMakeLists.txt @@ -0,0 +1,3 @@ + +install(FILES functions test-001.sh test-002.sh test-003.sh test-004.sh DESTINATION ${ENGINE_POSTDIR}) + diff --git a/oam/replaytxnlog/CMakeLists.txt b/oam/replaytxnlog/CMakeLists.txt new file mode 100644 index 000000000..bf4c1a33d --- /dev/null +++ b/oam/replaytxnlog/CMakeLists.txt @@ -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 +# diff --git a/oamapps/CMakeLists.txt b/oamapps/CMakeLists.txt new file mode 100644 index 000000000..48c59fba9 --- /dev/null +++ b/oamapps/CMakeLists.txt @@ -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 diff --git a/oamapps/calpontConsole/CMakeLists.txt b/oamapps/calpontConsole/CMakeLists.txt new file mode 100644 index 000000000..6566529cc --- /dev/null +++ b/oamapps/calpontConsole/CMakeLists.txt @@ -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 +# diff --git a/oamapps/calpontDB/CMakeLists.txt b/oamapps/calpontDB/CMakeLists.txt new file mode 100644 index 000000000..781a909e2 --- /dev/null +++ b/oamapps/calpontDB/CMakeLists.txt @@ -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 +# diff --git a/oamapps/calpontSupport/CMakeLists.txt b/oamapps/calpontSupport/CMakeLists.txt new file mode 100644 index 000000000..3db067d75 --- /dev/null +++ b/oamapps/calpontSupport/CMakeLists.txt @@ -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 +# diff --git a/oamapps/columnstoreDB/CMakeLists.txt b/oamapps/columnstoreDB/CMakeLists.txt new file mode 100644 index 000000000..a043420d3 --- /dev/null +++ b/oamapps/columnstoreDB/CMakeLists.txt @@ -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}) + diff --git a/oamapps/columnstoreSupport/CMakeLists.txt b/oamapps/columnstoreSupport/CMakeLists.txt new file mode 100644 index 000000000..83eac4063 --- /dev/null +++ b/oamapps/columnstoreSupport/CMakeLists.txt @@ -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}) + diff --git a/oamapps/mcsadmin/CMakeLists.txt b/oamapps/mcsadmin/CMakeLists.txt new file mode 100644 index 000000000..dec35a230 --- /dev/null +++ b/oamapps/mcsadmin/CMakeLists.txt @@ -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}) + diff --git a/oamapps/postConfigure/CMakeLists.txt b/oamapps/postConfigure/CMakeLists.txt new file mode 100644 index 000000000..eefbf8790 --- /dev/null +++ b/oamapps/postConfigure/CMakeLists.txt @@ -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}) + diff --git a/oamapps/replayTransactionLog/CMakeLists.txt b/oamapps/replayTransactionLog/CMakeLists.txt new file mode 100644 index 000000000..3a86d6569 --- /dev/null +++ b/oamapps/replayTransactionLog/CMakeLists.txt @@ -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 +# diff --git a/oamapps/sendtrap/CMakeLists.txt b/oamapps/sendtrap/CMakeLists.txt new file mode 100644 index 000000000..e453e4970 --- /dev/null +++ b/oamapps/sendtrap/CMakeLists.txt @@ -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}) + diff --git a/oamapps/serverMonitor/CMakeLists.txt b/oamapps/serverMonitor/CMakeLists.txt new file mode 100644 index 000000000..7e3821fc4 --- /dev/null +++ b/oamapps/serverMonitor/CMakeLists.txt @@ -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}) + diff --git a/oamapps/sessionWalker/CMakeLists.txt b/oamapps/sessionWalker/CMakeLists.txt new file mode 100644 index 000000000..b6224e23e --- /dev/null +++ b/oamapps/sessionWalker/CMakeLists.txt @@ -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 +# diff --git a/oamapps/traphandler/CMakeLists.txt b/oamapps/traphandler/CMakeLists.txt new file mode 100644 index 000000000..14247c146 --- /dev/null +++ b/oamapps/traphandler/CMakeLists.txt @@ -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}) + diff --git a/primitives/CMakeLists.txt b/primitives/CMakeLists.txt new file mode 100644 index 000000000..71f2739d6 --- /dev/null +++ b/primitives/CMakeLists.txt @@ -0,0 +1,5 @@ + +add_subdirectory(blockcache) +add_subdirectory(linux-port) +add_subdirectory(primproc) + diff --git a/primitives/blockcache/CMakeLists.txt b/primitives/blockcache/CMakeLists.txt new file mode 100644 index 000000000..a45778c7c --- /dev/null +++ b/primitives/blockcache/CMakeLists.txt @@ -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}) diff --git a/primitives/linux-port/CMakeLists.txt b/primitives/linux-port/CMakeLists.txt new file mode 100644 index 000000000..45f010277 --- /dev/null +++ b/primitives/linux-port/CMakeLists.txt @@ -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}) + diff --git a/primitives/primproc/CMakeLists.txt b/primitives/primproc/CMakeLists.txt new file mode 100644 index 000000000..aa300e475 --- /dev/null +++ b/primitives/primproc/CMakeLists.txt @@ -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}) + + diff --git a/procmgr/CMakeLists.txt b/procmgr/CMakeLists.txt new file mode 100644 index 000000000..1f81c0ac7 --- /dev/null +++ b/procmgr/CMakeLists.txt @@ -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}) + diff --git a/procmon/CMakeLists.txt b/procmon/CMakeLists.txt new file mode 100644 index 000000000..b535b9c36 --- /dev/null +++ b/procmon/CMakeLists.txt @@ -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}) + diff --git a/snmpd/CMakeLists.txt b/snmpd/CMakeLists.txt new file mode 100644 index 000000000..69eb31e08 --- /dev/null +++ b/snmpd/CMakeLists.txt @@ -0,0 +1,4 @@ + +add_subdirectory(etc) +add_subdirectory(snmpmanager) + diff --git a/snmpd/etc/CMakeLists.txt b/snmpd/etc/CMakeLists.txt new file mode 100644 index 000000000..273441be1 --- /dev/null +++ b/snmpd/etc/CMakeLists.txt @@ -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}) diff --git a/snmpd/snmpmanager/CMakeLists.txt b/snmpd/snmpmanager/CMakeLists.txt new file mode 100644 index 000000000..859a0f7a3 --- /dev/null +++ b/snmpd/snmpmanager/CMakeLists.txt @@ -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}) + + diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt new file mode 100644 index 000000000..5a50f6357 --- /dev/null +++ b/tools/CMakeLists.txt @@ -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) + diff --git a/tools/brmtest/CMakeLists.txt b/tools/brmtest/CMakeLists.txt new file mode 100644 index 000000000..4f2f5f1b0 --- /dev/null +++ b/tools/brmtest/CMakeLists.txt @@ -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 +# diff --git a/tools/cfread/CMakeLists.txt b/tools/cfread/CMakeLists.txt new file mode 100644 index 000000000..49a9a76b9 --- /dev/null +++ b/tools/cfread/CMakeLists.txt @@ -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 +# diff --git a/tools/clearShm/CMakeLists.txt b/tools/clearShm/CMakeLists.txt new file mode 100644 index 000000000..41527417f --- /dev/null +++ b/tools/clearShm/CMakeLists.txt @@ -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}) + diff --git a/tools/cleartablelock/CMakeLists.txt b/tools/cleartablelock/CMakeLists.txt new file mode 100644 index 000000000..d096f77e5 --- /dev/null +++ b/tools/cleartablelock/CMakeLists.txt @@ -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}) + diff --git a/tools/configMgt/CMakeLists.txt b/tools/configMgt/CMakeLists.txt new file mode 100644 index 000000000..855aabbf1 --- /dev/null +++ b/tools/configMgt/CMakeLists.txt @@ -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}) + diff --git a/tools/cplogger/CMakeLists.txt b/tools/cplogger/CMakeLists.txt new file mode 100644 index 000000000..f80505b93 --- /dev/null +++ b/tools/cplogger/CMakeLists.txt @@ -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}) + diff --git a/tools/dbbuilder/CMakeLists.txt b/tools/dbbuilder/CMakeLists.txt new file mode 100644 index 000000000..d049fb705 --- /dev/null +++ b/tools/dbbuilder/CMakeLists.txt @@ -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}) + diff --git a/tools/dbloadxml/CMakeLists.txt b/tools/dbloadxml/CMakeLists.txt new file mode 100644 index 000000000..7f68cf0af --- /dev/null +++ b/tools/dbloadxml/CMakeLists.txt @@ -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}) + diff --git a/tools/ddlcleanup/CMakeLists.txt b/tools/ddlcleanup/CMakeLists.txt new file mode 100644 index 000000000..657631e05 --- /dev/null +++ b/tools/ddlcleanup/CMakeLists.txt @@ -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}) + diff --git a/tools/ddldriver/CMakeLists.txt b/tools/ddldriver/CMakeLists.txt new file mode 100644 index 000000000..366f99bb1 --- /dev/null +++ b/tools/ddldriver/CMakeLists.txt @@ -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 +# diff --git a/tools/dmldriver/CMakeLists.txt b/tools/dmldriver/CMakeLists.txt new file mode 100644 index 000000000..0af124d5f --- /dev/null +++ b/tools/dmldriver/CMakeLists.txt @@ -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 +# diff --git a/tools/editem/CMakeLists.txt b/tools/editem/CMakeLists.txt new file mode 100644 index 000000000..19a950464 --- /dev/null +++ b/tools/editem/CMakeLists.txt @@ -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}) + diff --git a/tools/evalidx/CMakeLists.txt b/tools/evalidx/CMakeLists.txt new file mode 100644 index 000000000..859067bc5 --- /dev/null +++ b/tools/evalidx/CMakeLists.txt @@ -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 +# diff --git a/tools/getConfig/CMakeLists.txt b/tools/getConfig/CMakeLists.txt new file mode 100644 index 000000000..cb9114017 --- /dev/null +++ b/tools/getConfig/CMakeLists.txt @@ -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}) + diff --git a/tools/idbmeminfo/CMakeLists.txt b/tools/idbmeminfo/CMakeLists.txt new file mode 100644 index 000000000..1666d31c0 --- /dev/null +++ b/tools/idbmeminfo/CMakeLists.txt @@ -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}) + diff --git a/tools/qfe/CMakeLists.txt b/tools/qfe/CMakeLists.txt new file mode 100644 index 000000000..923796412 --- /dev/null +++ b/tools/qfe/CMakeLists.txt @@ -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 +# diff --git a/tools/sendPlan/CMakeLists.txt b/tools/sendPlan/CMakeLists.txt new file mode 100644 index 000000000..560a6aa19 --- /dev/null +++ b/tools/sendPlan/CMakeLists.txt @@ -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 +# diff --git a/tools/setConfig/CMakeLists.txt b/tools/setConfig/CMakeLists.txt new file mode 100644 index 000000000..6983b3fd1 --- /dev/null +++ b/tools/setConfig/CMakeLists.txt @@ -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}) + diff --git a/tools/vbgen/CMakeLists.txt b/tools/vbgen/CMakeLists.txt new file mode 100644 index 000000000..7791a1870 --- /dev/null +++ b/tools/vbgen/CMakeLists.txt @@ -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 +# diff --git a/tools/viewtablelock/CMakeLists.txt b/tools/viewtablelock/CMakeLists.txt new file mode 100644 index 000000000..bc6db623d --- /dev/null +++ b/tools/viewtablelock/CMakeLists.txt @@ -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}) + diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt new file mode 100644 index 000000000..88e58df26 --- /dev/null +++ b/utils/CMakeLists.txt @@ -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) + diff --git a/utils/autoconf/CMakeLists.txt b/utils/autoconf/CMakeLists.txt new file mode 100644 index 000000000..91f50c94a --- /dev/null +++ b/utils/autoconf/CMakeLists.txt @@ -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 +# diff --git a/utils/batchloader/CMakeLists.txt b/utils/batchloader/CMakeLists.txt new file mode 100644 index 000000000..a9204b915 --- /dev/null +++ b/utils/batchloader/CMakeLists.txt @@ -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}) + + diff --git a/utils/boost_idb/CMakeLists.txt b/utils/boost_idb/CMakeLists.txt new file mode 100644 index 000000000..011a4a869 --- /dev/null +++ b/utils/boost_idb/CMakeLists.txt @@ -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}) + diff --git a/utils/cacheutils/CMakeLists.txt b/utils/cacheutils/CMakeLists.txt new file mode 100644 index 000000000..dccddd2d1 --- /dev/null +++ b/utils/cacheutils/CMakeLists.txt @@ -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}) + diff --git a/utils/common/CMakeLists.txt b/utils/common/CMakeLists.txt new file mode 100644 index 000000000..601c9249b --- /dev/null +++ b/utils/common/CMakeLists.txt @@ -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}) + diff --git a/utils/compress/CMakeLists.txt b/utils/compress/CMakeLists.txt new file mode 100644 index 000000000..b0b7a4f89 --- /dev/null +++ b/utils/compress/CMakeLists.txt @@ -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}) + diff --git a/utils/configcpp/CMakeLists.txt b/utils/configcpp/CMakeLists.txt new file mode 100644 index 000000000..cb916d2f6 --- /dev/null +++ b/utils/configcpp/CMakeLists.txt @@ -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}) + diff --git a/utils/configcpp/md5/CMakeLists.txt b/utils/configcpp/md5/CMakeLists.txt new file mode 100644 index 000000000..1b3488ab1 --- /dev/null +++ b/utils/configcpp/md5/CMakeLists.txt @@ -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: +# diff --git a/utils/dataconvert/CMakeLists.txt b/utils/dataconvert/CMakeLists.txt new file mode 100644 index 000000000..61b33fd1b --- /dev/null +++ b/utils/dataconvert/CMakeLists.txt @@ -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}) + diff --git a/utils/ddlcleanup/CMakeLists.txt b/utils/ddlcleanup/CMakeLists.txt new file mode 100644 index 000000000..fede0e4a8 --- /dev/null +++ b/utils/ddlcleanup/CMakeLists.txt @@ -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}) + diff --git a/utils/funcexp/CMakeLists.txt b/utils/funcexp/CMakeLists.txt new file mode 100644 index 000000000..7bdc51a97 --- /dev/null +++ b/utils/funcexp/CMakeLists.txt @@ -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}) + + diff --git a/utils/idbdatafile/CMakeLists.txt b/utils/idbdatafile/CMakeLists.txt new file mode 100644 index 000000000..394de8273 --- /dev/null +++ b/utils/idbdatafile/CMakeLists.txt @@ -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}) + diff --git a/utils/idbhdfs/CMakeLists.txt b/utils/idbhdfs/CMakeLists.txt new file mode 100644 index 000000000..b98f0e16b --- /dev/null +++ b/utils/idbhdfs/CMakeLists.txt @@ -0,0 +1,4 @@ + +add_subdirectory(hdfs-20) +add_subdirectory(hdfs-12) + diff --git a/utils/idbhdfs/hdfs-12/CMakeLists.txt b/utils/idbhdfs/hdfs-12/CMakeLists.txt new file mode 100644 index 000000000..82436c71f --- /dev/null +++ b/utils/idbhdfs/hdfs-12/CMakeLists.txt @@ -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}) + diff --git a/utils/idbhdfs/hdfs-20/CMakeLists.txt b/utils/idbhdfs/hdfs-20/CMakeLists.txt new file mode 100644 index 000000000..d5a369ebd --- /dev/null +++ b/utils/idbhdfs/hdfs-20/CMakeLists.txt @@ -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}) + diff --git a/utils/jemalloc/CMakeLists.txt b/utils/jemalloc/CMakeLists.txt new file mode 100644 index 000000000..d57bedf9a --- /dev/null +++ b/utils/jemalloc/CMakeLists.txt @@ -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) +# diff --git a/utils/joiner/CMakeLists.txt b/utils/joiner/CMakeLists.txt new file mode 100644 index 000000000..8097f71d6 --- /dev/null +++ b/utils/joiner/CMakeLists.txt @@ -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}) + + diff --git a/utils/loggingcpp/CMakeLists.txt b/utils/loggingcpp/CMakeLists.txt new file mode 100644 index 000000000..a6b6c7b3d --- /dev/null +++ b/utils/loggingcpp/CMakeLists.txt @@ -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 ) diff --git a/utils/messageqcpp/CMakeLists.txt b/utils/messageqcpp/CMakeLists.txt new file mode 100644 index 000000000..5359396bc --- /dev/null +++ b/utils/messageqcpp/CMakeLists.txt @@ -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}) diff --git a/utils/multicast/CMakeLists.txt b/utils/multicast/CMakeLists.txt new file mode 100644 index 000000000..23ddb2d6c --- /dev/null +++ b/utils/multicast/CMakeLists.txt @@ -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 +# diff --git a/utils/mysqlcl_idb/CMakeLists.txt b/utils/mysqlcl_idb/CMakeLists.txt new file mode 100644 index 000000000..0bacb7496 --- /dev/null +++ b/utils/mysqlcl_idb/CMakeLists.txt @@ -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}) + + diff --git a/utils/querystats/CMakeLists.txt b/utils/querystats/CMakeLists.txt new file mode 100644 index 000000000..bb3975cef --- /dev/null +++ b/utils/querystats/CMakeLists.txt @@ -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}) + diff --git a/utils/querytele/CMakeLists.txt b/utils/querytele/CMakeLists.txt new file mode 100644 index 000000000..2ab3e8c6d --- /dev/null +++ b/utils/querytele/CMakeLists.txt @@ -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}) + diff --git a/utils/rowgroup/CMakeLists.txt b/utils/rowgroup/CMakeLists.txt new file mode 100644 index 000000000..04096374f --- /dev/null +++ b/utils/rowgroup/CMakeLists.txt @@ -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}) + diff --git a/utils/rwlock/CMakeLists.txt b/utils/rwlock/CMakeLists.txt new file mode 100644 index 000000000..c29926ee0 --- /dev/null +++ b/utils/rwlock/CMakeLists.txt @@ -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}) + diff --git a/utils/startup/CMakeLists.txt b/utils/startup/CMakeLists.txt new file mode 100644 index 000000000..7d384487a --- /dev/null +++ b/utils/startup/CMakeLists.txt @@ -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}) + + diff --git a/utils/threadpool/CMakeLists.txt b/utils/threadpool/CMakeLists.txt new file mode 100644 index 000000000..c75958b8d --- /dev/null +++ b/utils/threadpool/CMakeLists.txt @@ -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}) diff --git a/utils/thrift/CMakeLists.txt b/utils/thrift/CMakeLists.txt new file mode 100644 index 000000000..a335afaae --- /dev/null +++ b/utils/thrift/CMakeLists.txt @@ -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}) + diff --git a/utils/udfsdk/CMakeLists.txt b/utils/udfsdk/CMakeLists.txt new file mode 100644 index 000000000..71354d589 --- /dev/null +++ b/utils/udfsdk/CMakeLists.txt @@ -0,0 +1,18 @@ + +include_directories( ${ENGINE_COMMON_INCLUDES} + ../../dbcon/mysql + ../../mysql/include + ../../mysql/sql + ../../mysql/regex ) +########### next target ############### + +set(udfsdk_LIB_SRCS udfinfinidb.cpp) + +add_definitions(-DMYSQL_DYNAMIC_PLUGIN) + +add_library(udfsdk SHARED ${udfsdk_LIB_SRCS}) + +set_target_properties(udfsdk PROPERTIES VERSION 1.0.0 SOVERSION 1) + +install(TARGETS udfsdk DESTINATION ${ENGINE_LIBDIR}) + diff --git a/utils/windowfunction/CMakeLists.txt b/utils/windowfunction/CMakeLists.txt new file mode 100644 index 000000000..ec1be152a --- /dev/null +++ b/utils/windowfunction/CMakeLists.txt @@ -0,0 +1,31 @@ + +include_directories( ${ENGINE_COMMON_INCLUDES} ) + + +########### next target ############### + +set(windowfunction_LIB_SRCS + framebound.cpp + frameboundrange.cpp + frameboundrow.cpp + idborderby.cpp + windowframe.cpp + windowfunction.cpp + windowfunctiontype.cpp + wf_count.cpp + wf_lead_lag.cpp + wf_min_max.cpp + wf_nth_value.cpp + wf_ntile.cpp + wf_percentile.cpp + wf_ranking.cpp + wf_row_number.cpp + wf_stats.cpp + wf_sum_avg.cpp) + +add_library(windowfunction SHARED ${windowfunction_LIB_SRCS}) + +set_target_properties(windowfunction PROPERTIES VERSION 1.0.0 SOVERSION 1) + +install(TARGETS windowfunction DESTINATION ${ENGINE_LIBDIR}) + diff --git a/utils/winport/CMakeLists.txt b/utils/winport/CMakeLists.txt new file mode 100644 index 000000000..2f0fc31d9 --- /dev/null +++ b/utils/winport/CMakeLists.txt @@ -0,0 +1,3 @@ + +include_directories( ${ENGINE_COMMON_INCLUDES} ) + diff --git a/versioning/BRM/CMakeLists.txt b/versioning/BRM/CMakeLists.txt new file mode 100644 index 000000000..d7507adb4 --- /dev/null +++ b/versioning/BRM/CMakeLists.txt @@ -0,0 +1,115 @@ + +include_directories( ${ENGINE_COMMON_INCLUDES} ) + + +########### next target ############### + +set(brm_LIB_SRCS + autoincrementmanager.cpp + blockresolutionmanager.cpp + brmshmimpl.cpp + brmtypes.cpp + copylocks.cpp + dbrm.cpp + extentmap.cpp + lbidresourcegraph.cpp + logicalpartition.cpp + mastersegmenttable.cpp + oidserver.cpp + resourcenode.cpp + rgnode.cpp + rwlockmonitor.cpp + sessionmanagerserver.cpp + shmkeys.cpp + slavedbrmnode.cpp + slavecomm.cpp + tablelockserver.cpp + tracer.cpp + transactionnode.cpp + undoable.cpp + vbbm.cpp + vss.cpp) + +add_library(brm SHARED ${brm_LIB_SRCS}) + +set_target_properties(brm PROPERTIES VERSION 1.0.0 SOVERSION 1) + +install(TARGETS brm DESTINATION ${ENGINE_LIBDIR}) + + +########### next target ############### + +set(controllernode_SRCS masternode.cpp masterdbrmnode.cpp) + +add_executable(controllernode ${controllernode_SRCS}) + +target_link_libraries(controllernode ${ENGINE_LDFLAGS} ${ENGINE_OAM_LIBS} ${ENGINE_EXEC_LIBS} ${ENGINE_NETSNMP_LIBS}) + +install(TARGETS controllernode DESTINATION ${ENGINE_BINDIR}) + + +########### next target ############### + +set(workernode_SRCS slavenode.cpp) + +add_executable(workernode ${workernode_SRCS}) + +target_link_libraries(workernode ${ENGINE_LDFLAGS} ${ENGINE_OAM_LIBS} ${ENGINE_EXEC_LIBS} ${ENGINE_NETSNMP_LIBS}) + +install(TARGETS workernode DESTINATION ${ENGINE_BINDIR}) + + +########### next target ############### + +set(dbrmctl_SRCS dbrmctl.cpp) + +add_executable(dbrmctl ${dbrmctl_SRCS}) + +target_link_libraries(dbrmctl ${ENGINE_LDFLAGS} ${ENGINE_OAM_LIBS} ${ENGINE_EXEC_LIBS} ${ENGINE_NETSNMP_LIBS}) + +install(TARGETS dbrmctl DESTINATION ${ENGINE_BINDIR}) + + +########### next target ############### + +set(reset_locks_SRCS reset_locks.cpp) + +add_executable(reset_locks ${reset_locks_SRCS}) + +target_link_libraries(reset_locks ${ENGINE_LDFLAGS} ${ENGINE_OAM_LIBS} ${ENGINE_EXEC_LIBS} ${ENGINE_NETSNMP_LIBS}) + +install(TARGETS reset_locks DESTINATION ${ENGINE_BINDIR}) + + +########### next target ############### + +set(rollback_SRCS rollback.cpp) + +add_executable(rollback ${rollback_SRCS}) + +target_link_libraries(rollback ${ENGINE_LDFLAGS} ${ENGINE_OAM_LIBS} ${ENGINE_EXEC_LIBS} ${ENGINE_NETSNMP_LIBS}) + +install(TARGETS rollback DESTINATION ${ENGINE_BINDIR}) + + +########### next target ############### + +set(save_brm_SRCS save_brm.cpp) + +add_executable(save_brm ${save_brm_SRCS}) + +target_link_libraries(save_brm ${ENGINE_LDFLAGS} ${ENGINE_OAM_LIBS} ${ENGINE_EXEC_LIBS} ${ENGINE_NETSNMP_LIBS}) + +install(TARGETS save_brm DESTINATION ${ENGINE_BINDIR}) + + +########### next target ############### + +set(load_brm_SRCS load_brm.cpp) + +add_executable(load_brm ${load_brm_SRCS}) + +target_link_libraries(load_brm ${ENGINE_LDFLAGS} ${ENGINE_OAM_LIBS} ${ENGINE_EXEC_LIBS} ${ENGINE_NETSNMP_LIBS}) + +install(TARGETS load_brm DESTINATION ${ENGINE_BINDIR}) + diff --git a/versioning/CMakeLists.txt b/versioning/CMakeLists.txt new file mode 100644 index 000000000..7856a9972 --- /dev/null +++ b/versioning/CMakeLists.txt @@ -0,0 +1,2 @@ + +add_subdirectory(BRM) diff --git a/writeengine/CMakeLists.txt b/writeengine/CMakeLists.txt new file mode 100644 index 000000000..02705c71d --- /dev/null +++ b/writeengine/CMakeLists.txt @@ -0,0 +1,56 @@ + +include_directories( ${ENGINE_COMMON_INCLUDES} ) + +add_subdirectory(shared) +add_subdirectory(dictionary) +add_subdirectory(xml) +add_subdirectory(wrapper) +add_subdirectory(bulk) +add_subdirectory(client) +add_subdirectory(redistribute) +add_subdirectory(splitter) +add_subdirectory(server) + + +########### 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 $ +# +#SUBDIRS = shared dictionary xml wrapper bulk client redistribute splitter \ +# server +# +#test: +# +#coverage: +# +#leakcheck: +# +#docs: +# +#bootstrap: +# for subdir in $(SUBDIRS); \ +# do $(MAKE) -C $$subdir bootstrap || exit $$?; \ +# done +# diff --git a/writeengine/bulk/CMakeLists.txt b/writeengine/bulk/CMakeLists.txt new file mode 100644 index 000000000..77a1cfc81 --- /dev/null +++ b/writeengine/bulk/CMakeLists.txt @@ -0,0 +1,40 @@ + +include_directories( ${ENGINE_COMMON_INCLUDES} ) + + +########### next target ############### + +set(we_bulk_STAT_SRCS + we_brmreporter.cpp + we_bulkload.cpp + we_bulkloadbuffer.cpp + we_bulkstatus.cpp + we_colopbulk.cpp + we_colbuf.cpp + we_colbufcompressed.cpp + we_colbufmgr.cpp + we_colbufmgrdctnry.cpp + we_colbufsec.cpp + we_colextinf.cpp + we_columninfo.cpp + we_columninfocompressed.cpp + we_columnautoinc.cpp + we_extentstripealloc.cpp + we_tableinfo.cpp + we_tempxmlgendata.cpp + we_workers.cpp) + +ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64) +add_library(we_bulk STATIC ${we_bulk_STAT_SRCS}) +REMOVE_DEFINITIONS(-D_FILE_OFFSET_BITS=64) + +########### next target ############### + +set(cpimport.bin_SRCS cpimport.cpp) + +add_executable(cpimport.bin ${cpimport.bin_SRCS}) + +target_link_libraries(cpimport.bin ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS} we_bulk we_xml) + +install(TARGETS cpimport.bin DESTINATION ${ENGINE_BINDIR}) + diff --git a/writeengine/client/CMakeLists.txt b/writeengine/client/CMakeLists.txt new file mode 100644 index 000000000..b1da2acd9 --- /dev/null +++ b/writeengine/client/CMakeLists.txt @@ -0,0 +1,15 @@ + +include_directories( ${ENGINE_COMMON_INCLUDES} ) + + +########### next target ############### + +set(writeengineclient_LIB_SRCS we_clients.cpp we_ddlcommandclient.cpp we_dmlcommandclient.cpp) + +add_library(writeengineclient SHARED ${writeengineclient_LIB_SRCS}) + +set_target_properties(writeengineclient PROPERTIES VERSION 1.0.0 SOVERSION 1) + +install(TARGETS writeengineclient DESTINATION ${ENGINE_LIBDIR}) + + diff --git a/writeengine/dictionary/CMakeLists.txt b/writeengine/dictionary/CMakeLists.txt new file mode 100644 index 000000000..fe934813b --- /dev/null +++ b/writeengine/dictionary/CMakeLists.txt @@ -0,0 +1,44 @@ + +include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ) + + +########### install files ############### + +install(FILES we_dctnry.h DESTINATION include) + + + +#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 +# +#include_HEADERS = we_dctnry.h +# +#test: +# +#coverage: +# +#leakcheck: +# +#docs: +# +#bootstrap: install-data-am +# diff --git a/writeengine/index/CMakeLists.txt b/writeengine/index/CMakeLists.txt new file mode 100644 index 000000000..af4d673a8 --- /dev/null +++ b/writeengine/index/CMakeLists.txt @@ -0,0 +1,44 @@ + +include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ) + + +########### install files ############### + +install(FILES we_indexlist.h we_freemgr.h we_indextree.h DESTINATION include) + + + +#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 +# +#include_HEADERS = we_indexlist.h we_freemgr.h we_indextree.h +# +#test: +# +#coverage: +# +#leakcheck: +# +#docs: +# +#bootstrap: install-data-am +# diff --git a/writeengine/redistribute/CMakeLists.txt b/writeengine/redistribute/CMakeLists.txt new file mode 100644 index 000000000..9167d7d05 --- /dev/null +++ b/writeengine/redistribute/CMakeLists.txt @@ -0,0 +1,17 @@ + +include_directories( ${ENGINE_COMMON_INCLUDES} ) + +########### next target ############### + +set(writeengineredistribute_LIB_SRCS + we_redistribute.cpp + we_redistributecontrol.cpp + we_redistributecontrolthread.cpp + we_redistributeworkerthread.cpp) + +add_library(writeengineredistribute SHARED ${writeengineredistribute_LIB_SRCS}) + +set_target_properties(writeengineredistribute PROPERTIES VERSION 1.0.0 SOVERSION 1) + +install(TARGETS writeengineredistribute DESTINATION ${ENGINE_LIBDIR}) + diff --git a/writeengine/server/CMakeLists.txt b/writeengine/server/CMakeLists.txt new file mode 100644 index 000000000..e79387992 --- /dev/null +++ b/writeengine/server/CMakeLists.txt @@ -0,0 +1,24 @@ + +include_directories( ${ENGINE_COMMON_INCLUDES} ) + + +########### next target ############### + +set(WriteEngineServer_SRCS + we_server.cpp + we_readthread.cpp + we_ddlcommandproc.cpp + we_observer.cpp + we_dataloader.cpp + we_brmrprtparser.cpp + we_dmlcommandproc.cpp + we_cleartablelockcmd.cpp + we_cpifeederthread.cpp + we_getfilesizes.cpp) + +add_executable(WriteEngineServer ${WriteEngineServer_SRCS}) + +target_link_libraries(WriteEngineServer ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS} threadpool writeengineredistribute) + +install(TARGETS WriteEngineServer DESTINATION ${ENGINE_BINDIR}) + diff --git a/writeengine/shared/CMakeLists.txt b/writeengine/shared/CMakeLists.txt new file mode 100644 index 000000000..f49b76e9e --- /dev/null +++ b/writeengine/shared/CMakeLists.txt @@ -0,0 +1,44 @@ + +include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ) + + +########### install files ############### + +install(FILES we_index.h we_define.h we_type.h we_fileop.h we_blockop.h we_dbfileop.h we_obj.h we_log.h we_simplesyslog.h we_convertor.h we_brm.h we_macro.h we_config.h we_cache.h we_stats.h we_bulkrollbackmgr.h we_typeext.h we_chunkmanager.h we_bulkrollbackfilecompressed.h we_bulkrollbackfilecompressedhdfs.h we_bulkrollbackfile.h we_rbmetawriter.h we_dbrootextenttracker.h we_confirmhdfsdbfile.h DESTINATION include) + + + +#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 3720 2012-04-04 18:18:49Z rdempsey $ +### Process this file with automake to produce Makefile.in +# +#include_HEADERS = we_index.h we_define.h we_type.h we_fileop.h we_blockop.h we_dbfileop.h we_obj.h we_log.h we_simplesyslog.h we_convertor.h we_brm.h we_macro.h we_config.h we_cache.h we_stats.h we_bulkrollbackmgr.h we_typeext.h we_chunkmanager.h we_bulkrollbackfilecompressed.h we_bulkrollbackfilecompressedhdfs.h we_bulkrollbackfile.h we_rbmetawriter.h we_dbrootextenttracker.h we_confirmhdfsdbfile.h +# +#test: +# +#coverage: +# +#leakcheck: +# +#docs: +# +#bootstrap: install-data-am +# diff --git a/writeengine/splitter/CMakeLists.txt b/writeengine/splitter/CMakeLists.txt new file mode 100644 index 000000000..19144f7ff --- /dev/null +++ b/writeengine/splitter/CMakeLists.txt @@ -0,0 +1,23 @@ + +include_directories( ${ENGINE_COMMON_INCLUDES} ) + + +########### next target ############### + +set(cpimport_SRCS + we_splitterapp.cpp + we_cmdargs.cpp + we_sdhandler.cpp + we_respreadthread.cpp + we_filereadthread.cpp + we_splclient.cpp + we_brmupdater.cpp + we_tablelockgrabber.cpp + we_xmlgetter.cpp) + +add_executable(cpimport ${cpimport_SRCS}) + +target_link_libraries(cpimport ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS} batchloader threadpool) + +install(TARGETS cpimport DESTINATION ${ENGINE_BINDIR}) + diff --git a/writeengine/wrapper/CMakeLists.txt b/writeengine/wrapper/CMakeLists.txt new file mode 100644 index 000000000..36f0047c7 --- /dev/null +++ b/writeengine/wrapper/CMakeLists.txt @@ -0,0 +1,45 @@ + +include_directories( ${ENGINE_COMMON_INCLUDES} ) + + +########### next target ############### + +set(writeengine_LIB_SRCS + writeengine.cpp + we_colop.cpp + we_colopcompress.cpp + we_dctnrycompress.cpp + we_tablemetadata.cpp + ../shared/we_blockop.cpp + ../shared/we_brm.cpp + ../shared/we_cache.cpp + ../shared/we_chunkmanager.cpp + ../shared/we_config.cpp + ../shared/we_convertor.cpp + ../shared/we_dbfileop.cpp + ../shared/we_define.cpp + ../shared/we_fileop.cpp + ../shared/we_log.cpp + ../shared/we_stats.cpp + ../shared/we_bulkrollbackmgr.cpp + ../shared/we_simplesyslog.cpp + ../shared/we_bulkrollbackfilecompressed.cpp + ../shared/we_bulkrollbackfilecompressedhdfs.cpp + ../shared/we_bulkrollbackfile.cpp + ../shared/we_rbmetawriter.cpp + ../shared/we_dbrootextenttracker.cpp + ../shared/we_confirmhdfsdbfile.cpp + ../dictionary/we_dctnry.cpp + ../xml/we_xmlop.cpp + ../xml/we_xmljob.cpp + ../xml/we_xmlgendata.cpp + ../xml/we_xmlgenproc.cpp) + +add_definitions(-D_FILE_OFFSET_BITS=64) + +add_library(writeengine SHARED ${writeengine_LIB_SRCS}) + +set_target_properties(writeengine PROPERTIES VERSION 1.0.0 SOVERSION 1) + +install(TARGETS writeengine DESTINATION ${ENGINE_LIBDIR}) + diff --git a/writeengine/xml/CMakeLists.txt b/writeengine/xml/CMakeLists.txt new file mode 100644 index 000000000..ea9a1f059 --- /dev/null +++ b/writeengine/xml/CMakeLists.txt @@ -0,0 +1,18 @@ + +include_directories( ${ENGINE_COMMON_INCLUDES} ) + + +########### next target ############### + +set(we_xml_STAT_SRCS + we_xmlop.cpp + we_xmljob.cpp + we_xmlgendata.cpp + we_xmlgenproc.cpp) + +add_definitions(-D_FILE_OFFSET_BITS=64) + +add_library(we_xml STATIC ${we_xml_STAT_SRCS}) + +INSTALL(TARGETS we_xml DESTINATION ${ENGINE_LIBDIR}) +