You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
Add CMake build tree files
This commit is contained in:
9
dbcon/CMakeLists.txt
Normal file
9
dbcon/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
add_subdirectory(ddlpackage)
|
||||
add_subdirectory(ddlpackageproc)
|
||||
add_subdirectory(dmlpackage)
|
||||
add_subdirectory(dmlpackageproc)
|
||||
add_subdirectory(execplan)
|
||||
add_subdirectory(joblist)
|
||||
add_subdirectory(mysql)
|
||||
|
52
dbcon/ddlpackage/CMakeLists.txt
Normal file
52
dbcon/ddlpackage/CMakeLists.txt
Normal file
@ -0,0 +1,52 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ddl-gram.cpp ddl-gram-temp.cpp
|
||||
COMMAND ./ddl-gram.sh ${BISON_EXECUTABLE}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDS ddl.y
|
||||
)
|
||||
ADD_CUSTOM_TARGET(
|
||||
ddlgramSRC ALL DEPENDS ddl-gram-temp.cpp
|
||||
)
|
||||
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ddl-scan.cpp ddl-scan-temp.cpp
|
||||
COMMAND ./ddl-scan.sh ${LEX_EXECUTABLE}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDS ddl.l
|
||||
)
|
||||
ADD_CUSTOM_TARGET(
|
||||
ddlscanSRC ALL DEPENDS ddl-scan-temp.cpp
|
||||
)
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(ddlpackage_LIB_SRCS
|
||||
serialize.cpp
|
||||
ddl-scan.cpp
|
||||
ddl-gram.cpp
|
||||
ddlpkg.cpp
|
||||
columndef.cpp
|
||||
createtable.cpp
|
||||
tabledef.cpp
|
||||
sqlstatement.cpp
|
||||
sqlstatementlist.cpp
|
||||
altertable.cpp
|
||||
createindex.cpp
|
||||
dropindex.cpp
|
||||
droptable.cpp
|
||||
sqlparser.cpp
|
||||
markpartition.cpp
|
||||
restorepartition.cpp
|
||||
droppartition.cpp)
|
||||
|
||||
add_library(ddlpackage SHARED ${ddlpackage_LIB_SRCS})
|
||||
|
||||
add_dependencies(ddlpackage ddlgramSRC ddlscanSRC)
|
||||
|
||||
set_target_properties(ddlpackage PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS ddlpackage DESTINATION ${ENGINE_LIBDIR})
|
||||
|
26
dbcon/ddlpackage/ddl-gram.sh
Executable file
26
dbcon/ddlpackage/ddl-gram.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
#ddl-gram.cpp: ddl.y
|
||||
$1 -y -l -v -d -p ddl -o ddl-gram-temp.cpp ddl.y
|
||||
set +e; \
|
||||
if [ -f ddl-gram.cpp ]; \
|
||||
then diff -abBq ddl-gram-temp.cpp ddl-gram.cpp >/dev/null 2>&1; \
|
||||
if [ $? -ne 0 ]; \
|
||||
then mv -f ddl-gram-temp.cpp ddl-gram.cpp; \
|
||||
else touch ddl-gram.cpp; \
|
||||
fi; \
|
||||
else mv -f ddl-gram-temp.cpp ddl-gram.cpp; \
|
||||
fi
|
||||
set +e; \
|
||||
if [ -f ddl-gram.h ]; \
|
||||
then diff -abBq ddl-gram-temp.hpp ddl-gram.h >/dev/null 2>&1; \
|
||||
if [ $? -ne 0 ]; \
|
||||
then mv -f ddl-gram-temp.hpp ddl-gram.h; \
|
||||
else touch ddl-gram.h; \
|
||||
fi; \
|
||||
else mv -f ddl-gram-temp.hpp ddl-gram.h; \
|
||||
fi
|
||||
rm -f ddl-gram-temp.cpp ddl-gram-temp.hpp ddl-gram-temp.output
|
||||
|
||||
|
||||
|
16
dbcon/ddlpackage/ddl-scan.sh
Executable file
16
dbcon/ddlpackage/ddl-scan.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
#ddl-scan.cpp: ddl.l
|
||||
$1 -i -L -P ddl -o ddl-scan-temp.cpp ddl.l
|
||||
set +e;
|
||||
if [ -f ddl-scan.cpp ];
|
||||
then diff -abBq ddl-scan-temp.cpp ddl-scan.cpp >/dev/null 2>&1;
|
||||
if [ "$?" -ne 0 ];
|
||||
then mv -f ddl-scan-temp.cpp ddl-scan.cpp;
|
||||
else touch ddl-scan.cpp;
|
||||
fi;
|
||||
else mv -f ddl-scan-temp.cpp ddl-scan.cpp;
|
||||
fi
|
||||
rm -f ddl-scan-temp.cpp
|
||||
|
||||
|
20
dbcon/ddlpackageproc/CMakeLists.txt
Normal file
20
dbcon/ddlpackageproc/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(ddlpackageproc_LIB_SRCS
|
||||
ddlpackageprocessor.cpp
|
||||
createtableprocessor.cpp
|
||||
altertableprocessor.cpp
|
||||
droptableprocessor.cpp
|
||||
markpartitionprocessor.cpp
|
||||
restorepartitionprocessor.cpp
|
||||
droppartitionprocessor.cpp)
|
||||
|
||||
add_library(ddlpackageproc SHARED ${ddlpackageproc_LIB_SRCS})
|
||||
|
||||
set_target_properties(ddlpackageproc PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS ddlpackageproc DESTINATION ${ENGINE_LIBDIR})
|
||||
|
52
dbcon/dmlpackage/CMakeLists.txt
Normal file
52
dbcon/dmlpackage/CMakeLists.txt
Normal file
@ -0,0 +1,52 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT dml-gram.cpp dml-gram-temp.cpp
|
||||
COMMAND ./dml-gram.sh ${BISON_EXECUTABLE}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDS dml.y
|
||||
)
|
||||
ADD_CUSTOM_TARGET(
|
||||
dmlgramSRC ALL DEPENDS dml-gram-temp.cpp
|
||||
)
|
||||
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT dml-scan.cpp dml-scan-temp.cpp
|
||||
COMMAND ./dml-scan.sh ${LEX_EXECUTABLE}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDS dml.l
|
||||
)
|
||||
ADD_CUSTOM_TARGET(
|
||||
dmlscanSRC ALL DEPENDS dml-scan-temp.cpp
|
||||
)
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(dmlpackage_LIB_SRCS
|
||||
dml-scan.cpp
|
||||
dml-gram.cpp
|
||||
calpontdmlfactory.cpp
|
||||
calpontdmlpackage.cpp
|
||||
dmlcolumn.cpp
|
||||
deletedmlpackage.cpp
|
||||
dmlobject.cpp
|
||||
insertdmlpackage.cpp
|
||||
mysqldmlstatement.cpp
|
||||
oracledmlstatement.cpp
|
||||
row.cpp
|
||||
dmltable.cpp
|
||||
updatedmlpackage.cpp
|
||||
vendordmlstatement.cpp
|
||||
commanddmlpackage.cpp
|
||||
dmlpkg.cpp
|
||||
dmlparser.cpp)
|
||||
|
||||
add_library(dmlpackage SHARED ${dmlpackage_LIB_SRCS})
|
||||
|
||||
add_dependencies(dmlpackage dmlgramSRC dmlscanSRC)
|
||||
|
||||
set_target_properties(dmlpackage PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS dmlpackage DESTINATION ${ENGINE_LIBDIR})
|
||||
|
23
dbcon/dmlpackage/dml-gram.sh
Executable file
23
dbcon/dmlpackage/dml-gram.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
#dml-gram.cpp: dml.y
|
||||
$1 -l -v -d -p dml -o dml-gram-temp.cpp dml.y
|
||||
set +e; \
|
||||
if [ -f dml-gram.cpp ]; \
|
||||
then diff -abBq dml-gram-temp.cpp dml-gram.cpp >/dev/null 2>&1; \
|
||||
if [ $? -ne 0 ]; \
|
||||
then mv -f dml-gram-temp.cpp dml-gram.cpp; \
|
||||
else touch dml-gram.cpp; \
|
||||
fi; \
|
||||
else mv -f dml-gram-temp.cpp dml-gram.cpp; \
|
||||
fi
|
||||
set +e; \
|
||||
if [ -f dml-gram.h ]; \
|
||||
then diff -abBq dml-gram-temp.hpp dml-gram.h >/dev/null 2>&1; \
|
||||
if [ $? -ne 0 ]; \
|
||||
then mv -f dml-gram-temp.hpp dml-gram.h; \
|
||||
else touch dml-gram.h; \
|
||||
fi; \
|
||||
else mv -f dml-gram-temp.hpp dml-gram.h; \
|
||||
fi
|
||||
rm -f dml-gram-temp.cpp dml-gram-temp.hpp dml-gram-temp.output
|
14
dbcon/dmlpackage/dml-scan.sh
Executable file
14
dbcon/dmlpackage/dml-scan.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
#dml-scan.cpp: dml.l
|
||||
$1 -i -L -Pdml -odml-scan-temp.cpp dml.l
|
||||
set +e; \
|
||||
if [ -f dml-scan.cpp ]; \
|
||||
then diff -abBq dml-scan-temp.cpp dml-scan.cpp >/dev/null 2>&1; \
|
||||
if [ $$? -ne 0 ]; \
|
||||
then mv -f dml-scan-temp.cpp dml-scan.cpp; \
|
||||
else touch dml-scan.cpp; \
|
||||
fi; \
|
||||
else mv -f dml-scan-temp.cpp dml-scan.cpp; \
|
||||
fi
|
||||
rm -f dml-scan-temp.cpp
|
21
dbcon/dmlpackageproc/CMakeLists.txt
Normal file
21
dbcon/dmlpackageproc/CMakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(dmlpackageproc_LIB_SRCS
|
||||
deletepackageprocessor.cpp
|
||||
dmlpackageprocessor.cpp
|
||||
insertpackageprocessor.cpp
|
||||
updatepackageprocessor.cpp
|
||||
commandpackageprocessor.cpp
|
||||
autoincrementdata.cpp
|
||||
tablelockdata.cpp)
|
||||
|
||||
add_library(dmlpackageproc SHARED ${dmlpackageproc_LIB_SRCS})
|
||||
|
||||
set_target_properties(dmlpackageproc PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
#install(TARGETS dmlpackageproc DESTINATION ${ENGINE_LIBDIR})
|
||||
|
51
dbcon/execplan/CMakeLists.txt
Normal file
51
dbcon/execplan/CMakeLists.txt
Normal file
@ -0,0 +1,51 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(execplan_LIB_SRCS
|
||||
calpontsystemcatalog.cpp
|
||||
aggregatecolumn.cpp
|
||||
arithmeticcolumn.cpp
|
||||
arithmeticoperator.cpp
|
||||
calpontexecutionplan.cpp
|
||||
calpontexecutionplanfactory.cpp
|
||||
calpontselectexecutionplan.cpp
|
||||
clientrotator.cpp
|
||||
constantcolumn.cpp
|
||||
constantfilter.cpp
|
||||
existsfilter.cpp
|
||||
expressionparser.cpp
|
||||
filter.cpp
|
||||
functioncolumn.cpp
|
||||
groupconcatcolumn.cpp
|
||||
intervalcolumn.cpp
|
||||
logicoperator.cpp
|
||||
mysqlexecutionplan.cpp
|
||||
objectidmanager.cpp
|
||||
objectreader.cpp
|
||||
operator.cpp
|
||||
oracleexecutionplan.cpp
|
||||
outerjoinonfilter.cpp
|
||||
predicateoperator.cpp
|
||||
pseudocolumn.cpp
|
||||
range.cpp
|
||||
returnedcolumn.cpp
|
||||
rowcolumn.cpp
|
||||
selectfilter.cpp
|
||||
sessionmanager.cpp
|
||||
simplecolumn.cpp
|
||||
simplefilter.cpp
|
||||
simplescalarfilter.cpp
|
||||
treenode.cpp
|
||||
treenodeimpl.cpp
|
||||
vendorexecutionplan.cpp
|
||||
windowfunctioncolumn.cpp)
|
||||
|
||||
add_library(execplan SHARED ${execplan_LIB_SRCS})
|
||||
|
||||
set_target_properties(execplan PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS execplan DESTINATION ${ENGINE_LIBDIR})
|
||||
|
68
dbcon/joblist/CMakeLists.txt
Normal file
68
dbcon/joblist/CMakeLists.txt
Normal file
@ -0,0 +1,68 @@
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(joblist_LIB_SRCS
|
||||
anydatalist.cpp
|
||||
batchprimitiveprocessor-jl.cpp
|
||||
columncommand-jl.cpp
|
||||
command-jl.cpp
|
||||
crossenginestep.cpp
|
||||
dictstep-jl.cpp
|
||||
diskjoinstep.cpp
|
||||
distributedenginecomm.cpp
|
||||
elementtype.cpp
|
||||
expressionstep.cpp
|
||||
filtercommand-jl.cpp
|
||||
filterstep.cpp
|
||||
groupconcat.cpp
|
||||
jl_logger.cpp
|
||||
jlf_common.cpp
|
||||
jlf_execplantojoblist.cpp
|
||||
jlf_graphics.cpp
|
||||
jlf_tuplejoblist.cpp
|
||||
jlf_subquery.cpp
|
||||
joblist.cpp
|
||||
joblistfactory.cpp
|
||||
jobstep.cpp
|
||||
jobstepassociation.cpp
|
||||
lbidlist.cpp
|
||||
limitedorderby.cpp
|
||||
passthrucommand-jl.cpp
|
||||
passthrustep.cpp
|
||||
pcolscan.cpp
|
||||
pcolstep.cpp
|
||||
pdictionary.cpp
|
||||
pdictionaryscan.cpp
|
||||
primitivemsg.cpp
|
||||
pseudocc-jl.cpp
|
||||
resourcedistributor.cpp
|
||||
resourcemanager.cpp
|
||||
rowestimator.cpp
|
||||
rtscommand-jl.cpp
|
||||
subquerystep.cpp
|
||||
subquerytransformer.cpp
|
||||
tablecolumn.cpp
|
||||
timestamp.cpp
|
||||
tuple-bps.cpp
|
||||
tupleaggregatestep.cpp
|
||||
tupleannexstep.cpp
|
||||
tupleconstantstep.cpp
|
||||
tuplehashjoin.cpp
|
||||
tuplehavingstep.cpp
|
||||
tupleunion.cpp
|
||||
unique32generator.cpp
|
||||
virtualtable.cpp
|
||||
windowfunctionstep.cpp)
|
||||
|
||||
#libjoblist_la_CXXFLAGS = $(march_flags) $(AM_CXXFLAGS)
|
||||
|
||||
add_library(joblist SHARED ${joblist_LIB_SRCS})
|
||||
|
||||
set_target_properties(joblist PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS joblist DESTINATION ${ENGINE_LIBDIR})
|
||||
|
||||
|
@ -1,155 +1,55 @@
|
||||
# Copyright (C) 2006 MySQL AB
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
INCLUDE("${PROJECT_SOURCE_DIR}/win/mysql_manifest.cmake")
|
||||
|
||||
SET(CMAKE_CXX_FLAGS_DEBUG
|
||||
"${CMAKE_CXX_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX -DUSE_SYMDIR /Zi")
|
||||
SET(CMAKE_C_FLAGS_DEBUG
|
||||
"${CMAKE_C_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX -DUSE_SYMDIR /Zi")
|
||||
SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /MAP /MAPINFO:EXPORTS")
|
||||
|
||||
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
|
||||
${CMAKE_SOURCE_DIR}/extra/yassl/include
|
||||
${CMAKE_SOURCE_DIR}/sql
|
||||
${CMAKE_SOURCE_DIR}/regex
|
||||
${CMAKE_SOURCE_DIR}/zlib
|
||||
)
|
||||
|
||||
SET_SOURCE_FILES_PROPERTIES(${CMAKE_SOURCE_DIR}/sql/sql_yacc.h
|
||||
${CMAKE_SOURCE_DIR}/sql/sql_yacc.cc
|
||||
${CMAKE_SOURCE_DIR}/include/mysql_version.h
|
||||
${CMAKE_SOURCE_DIR}/sql/sql_builtin.cc
|
||||
${CMAKE_SOURCE_DIR}/sql/lex_hash.h
|
||||
${PROJECT_SOURCE_DIR}/include/mysqld_error.h
|
||||
${PROJECT_SOURCE_DIR}/include/mysqld_ername.h
|
||||
${PROJECT_SOURCE_DIR}/include/sql_state.h
|
||||
PROPERTIES GENERATED 1)
|
||||
|
||||
ADD_DEFINITIONS(-DMYSQL_SERVER -D_CONSOLE -DHAVE_DLOPEN -DHAVE_EVENT_SCHEDULER)
|
||||
|
||||
|
||||
SET (SQL_SOURCE
|
||||
../sql-common/client.c derror.cc des_key_file.cc
|
||||
discover.cc ../libmysql/errmsg.c field.cc field_conv.cc
|
||||
filesort.cc gstream.cc
|
||||
ha_partition.cc
|
||||
handler.cc hash_filo.cc hash_filo.h
|
||||
hostname.cc init.cc item.cc item_buff.cc item_cmpfunc.cc
|
||||
item_create.cc item_func.cc item_geofunc.cc item_row.cc
|
||||
item_strfunc.cc item_subselect.cc item_sum.cc item_timefunc.cc
|
||||
item_window_function.cc item_create_window_function.cc
|
||||
key.cc log.cc lock.cc message.rc
|
||||
log_event.cc rpl_record.cc rpl_reporting.cc
|
||||
log_event_old.cc rpl_record_old.cc
|
||||
message.h mf_iocache.cc my_decimal.cc ../sql-common/my_time.c
|
||||
mysqld.cc net_serv.cc
|
||||
nt_servc.cc nt_servc.h opt_range.cc opt_range.h opt_sum.cc
|
||||
../sql-common/pack.c parse_file.cc password.c procedure.cc
|
||||
protocol.cc records.cc repl_failsafe.cc rpl_filter.cc set_var.cc
|
||||
slave.cc sp.cc sp_cache.cc sp_head.cc sp_pcontext.cc
|
||||
sp_rcontext.cc spatial.cc sql_acl.cc sql_analyse.cc sql_base.cc
|
||||
sql_cache.cc sql_class.cc sql_client.cc sql_crypt.cc sql_crypt.h
|
||||
sql_cursor.cc sql_db.cc sql_delete.cc sql_derived.cc sql_do.cc
|
||||
sql_error.cc sql_handler.cc sql_help.cc sql_insert.cc sql_lex.cc
|
||||
sql_list.cc sql_load.cc sql_manager.cc sql_map.cc sql_parse.cc
|
||||
sql_partition.cc sql_plugin.cc sql_prepare.cc sql_rename.cc
|
||||
sql_repl.cc sql_select.cc sql_show.cc sql_state.c sql_string.cc
|
||||
sql_table.cc sql_test.cc sql_trigger.cc sql_udf.cc sql_union.cc
|
||||
sql_update.cc sql_view.cc strfunc.cc table.cc thr_malloc.cc
|
||||
time.cc tztime.cc uniques.cc unireg.cc item_xmlfunc.cc
|
||||
rpl_tblmap.cc sql_binlog.cc event_scheduler.cc event_data_objects.cc
|
||||
event_queue.cc event_db_repository.cc
|
||||
sql_tablespace.cc events.cc ../sql-common/my_user.c
|
||||
partition_info.cc rpl_utility.cc rpl_injector.cc sql_locale.cc
|
||||
rpl_rli.cc rpl_mi.cc sql_servers.cc
|
||||
sql_connect.cc scheduler.cc
|
||||
sql_profile.cc event_parse_data.cc
|
||||
${PROJECT_SOURCE_DIR}/sql/sql_yacc.cc
|
||||
${PROJECT_SOURCE_DIR}/sql/sql_yacc.h
|
||||
${PROJECT_SOURCE_DIR}/include/mysqld_error.h
|
||||
${PROJECT_SOURCE_DIR}/include/mysqld_ername.h
|
||||
${PROJECT_SOURCE_DIR}/include/sql_state.h
|
||||
${PROJECT_SOURCE_DIR}/include/mysql_version.h
|
||||
${PROJECT_SOURCE_DIR}/sql/sql_builtin.cc
|
||||
${PROJECT_SOURCE_DIR}/sql/lex_hash.h)
|
||||
ADD_LIBRARY(sql ${SQL_SOURCE})
|
||||
|
||||
IF (NOT EXISTS cmake_dummy.cc)
|
||||
FILE (WRITE cmake_dummy.cc "")
|
||||
ENDIF (NOT EXISTS cmake_dummy.cc)
|
||||
ADD_EXECUTABLE(mysqld cmake_dummy.cc)
|
||||
|
||||
SET_TARGET_PROPERTIES(mysqld PROPERTIES OUTPUT_NAME mysqld${MYSQLD_EXE_SUFFIX})
|
||||
SET_TARGET_PROPERTIES(mysqld PROPERTIES ENABLE_EXPORTS TRUE)
|
||||
|
||||
SET (MYSQLD_CORE_LIBS mysys zlib dbug strings yassl taocrypt vio regex sql)
|
||||
TARGET_LINK_LIBRARIES(mysqld ${MYSQLD_CORE_LIBS} ${MYSQLD_STATIC_ENGINE_LIBS})
|
||||
TARGET_LINK_LIBRARIES(mysqld ws2_32.lib)
|
||||
|
||||
|
||||
IF(MSVC AND NOT WITHOUT_DYNAMIC_PLUGINS)
|
||||
# Set module definition file. Also use non-incremental linker,
|
||||
# incremental appears to crash from time to time,if used with /DEF option
|
||||
SET_TARGET_PROPERTIES(mysqld PROPERTIES LINK_FLAGS "/DEF:mysqld.def /INCREMENTAL:NO")
|
||||
|
||||
FOREACH (CORELIB ${MYSQLD_CORE_LIBS})
|
||||
GET_TARGET_PROPERTY(LOC ${CORELIB} LOCATION)
|
||||
FILE(TO_NATIVE_PATH ${LOC} LOC)
|
||||
SET (LIB_LOCATIONS ${LIB_LOCATIONS} ${LOC})
|
||||
ENDFOREACH (CORELIB ${MYSQLD_CORE_LIBS})
|
||||
|
||||
ADD_CUSTOM_COMMAND(TARGET mysqld PRE_LINK
|
||||
COMMAND cscript ARGS //nologo ${PROJECT_SOURCE_DIR}/win/create_def_file.js
|
||||
${PLATFORM} ${LIB_LOCATIONS} > mysqld.def
|
||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/sql)
|
||||
ENDIF(MSVC AND NOT WITHOUT_DYNAMIC_PLUGINS)
|
||||
|
||||
ADD_DEPENDENCIES(sql GenError)
|
||||
|
||||
# Sql Parser custom command
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${PROJECT_SOURCE_DIR}/sql/sql_yacc.h
|
||||
${PROJECT_SOURCE_DIR}/sql/sql_yacc.cc
|
||||
COMMAND bison ARGS -y -p MYSQL --defines=sql_yacc.h
|
||||
--output=sql_yacc.cc sql_yacc.yy
|
||||
DEPENDS ${PROJECT_SOURCE_DIR}/sql/sql_yacc.yy)
|
||||
|
||||
|
||||
# Gen_lex_hash
|
||||
ADD_EXECUTABLE(gen_lex_hash gen_lex_hash.cc)
|
||||
TARGET_LINK_LIBRARIES(gen_lex_hash debug dbug mysqlclient wsock32)
|
||||
GET_TARGET_PROPERTY(GEN_LEX_HASH_EXE gen_lex_hash LOCATION)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${PROJECT_SOURCE_DIR}/sql/lex_hash.h
|
||||
COMMAND ${GEN_LEX_HASH_EXE} ARGS > lex_hash.h
|
||||
DEPENDS ${GEN_LEX_HASH_EXE})
|
||||
|
||||
ADD_CUSTOM_TARGET(
|
||||
GenServerSource ALL
|
||||
DEPENDS ${PROJECT_SOURCE_DIR}/sql/sql_yacc.h
|
||||
${PROJECT_SOURCE_DIR}/sql/sql_yacc.cc
|
||||
${PROJECT_SOURCE_DIR}/sql/message.h
|
||||
${PROJECT_SOURCE_DIR}/sql/message.rc
|
||||
${PROJECT_SOURCE_DIR}/sql/lex_hash.h)
|
||||
|
||||
ADD_DEPENDENCIES(mysqld GenServerSource)
|
||||
|
||||
# Remove the auto-generated files as part of 'Clean Solution'
|
||||
SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
|
||||
"lex_hash.h;sql_yacc.h;sql_yacc.cc;mysqld.def")
|
||||
|
||||
ADD_LIBRARY(udf_example MODULE udf_example.c udf_example.def)
|
||||
ADD_DEPENDENCIES(udf_example strings GenError)
|
||||
TARGET_LINK_LIBRARIES(udf_example strings wsock32)
|
||||
|
||||
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
||||
|
||||
|
||||
SET ( libcalmysql_SRCS
|
||||
ha_calpont.cpp
|
||||
ha_calpont_impl.cpp
|
||||
ha_calpont_dml.cpp
|
||||
ha_calpont_ddl.cpp
|
||||
ha_calpont_execplan.cpp
|
||||
ha_scalar_sub.cpp
|
||||
ha_in_sub.cpp
|
||||
ha_exists_sub.cpp
|
||||
ha_from_sub.cpp
|
||||
ha_select_sub.cpp
|
||||
ha_view.cpp sm.cpp
|
||||
ha_window_function.cpp
|
||||
ha_calpont_partition.cpp
|
||||
ha_pseudocolumn.cpp )
|
||||
|
||||
add_definitions(-DMYSQL_DYNAMIC_PLUGIN)
|
||||
|
||||
add_library(calmysql SHARED ${libcalmysql_SRCS})
|
||||
|
||||
set_target_properties(calmysql PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
install(TARGETS calmysql DESTINATION ${ENGINE_LIBDIR})
|
||||
install(FILES syscatalog_mysql.sql
|
||||
dumpcat_mysql.sql
|
||||
calsetuserpriority.sql
|
||||
calremoveuserpriority.sql
|
||||
calshowprocesslist.sql
|
||||
my.cnf
|
||||
DESTINATION ${ENGINE_MYSQLDIR})
|
||||
install(FILES install_calpont_mysql.sh mysql-Columnstore dumpcat.pl
|
||||
DESTINATION ${ENGINE_MYSQLDIR})
|
||||
|
||||
|
||||
#AM_CPPFLAGS = $(idb_common_includes) $(idb_cppflags)
|
||||
#AM_CFLAGS = $(idb_cflags)
|
||||
#AM_CXXFLAGS = $(idb_cxxflags)
|
||||
#AM_LDFLAGS = $(idb_ldflags)
|
||||
#lib_LTLIBRARIES = libcalmysql.la
|
||||
#libcalmysql_la_SOURCES = ha_calpont.cpp ha_calpont_impl.cpp ha_calpont_dml.cpp ha_calpont_ddl.cpp ha_calpont_execplan.cpp ha_scalar_sub.cpp ha_in_sub.cpp ha_exists_sub.cpp ha_from_sub.cpp ha_select_sub.cpp ha_view.cpp sm.cpp ha_window_function.cpp ha_calpont_partition.cpp ha_pseudocolumn.cpp
|
||||
#libcalmysql_la_LDFLAGS = -version-info 1:0:0 $(idb_common_ldflags) $(idb_common_libs) $(idb_write_libs) $(AM_LDFLAGS)
|
||||
#libcalmysql_la_CPPFLAGS = -I/usr/include/libxml2 -I../../../mysql/include -I../../../mysql/sql -I../../../mysql/regex -DMYSQL_DYNAMIC_PLUGIN $(AM_CPPFLAGS)
|
||||
#include_HEADERS = idb_mysql.h
|
||||
#
|
||||
#dist_mysql_DATA = syscatalog_mysql.sql dumpcat_mysql.sql calsetuserpriority.sql calremoveuserpriority.sql calshowprocesslist.sql my.cnf
|
||||
#dist_mysql_SCRIPTS = install_calpont_mysql.sh mysql-Columnstore dumpcat.pl
|
||||
#
|
||||
#libcalmysql_la-ha_calpont.lo: ha_calpont.cpp
|
||||
# if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcalmysql_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -fno-rtti -fno-implicit-templates -MT libcalmysql_la-ha_calpont.lo -MD -MP -MF "$(DEPDIR)/libcalmysql_la-ha_calpont.Tpo" -c -o libcalmysql_la-ha_calpont.lo `test -f 'ha_calpont.cpp' || echo '$(srcdir)/'`ha_calpont.cpp; \
|
||||
# then mv -f "$(DEPDIR)/libcalmysql_la-ha_calpont.Tpo" "$(DEPDIR)/libcalmysql_la-ha_calpont.Plo"; else rm -f "$(DEPDIR)/libcalmysql_la-ha_calpont.Tpo"; exit 1; fi
|
||||
|
||||
|
0
dbcon/mysql/cmake_dummy.cc
Normal file
0
dbcon/mysql/cmake_dummy.cc
Normal file
Reference in New Issue
Block a user