summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorkent@mysql.com/kent-amd64.(none) <>2007-08-02 15:37:33 +0200
committerkent@mysql.com/kent-amd64.(none) <>2007-08-02 15:37:33 +0200
commit10778d6fe2d9891b3d806a71737b5db4a94c05f1 (patch)
treebdf6feecf8d5d7a4329b50c709e550c9b8785c58 /libmysqld
parent423fd0b07edb113eac41c40e8f058e31ddb6ae5e (diff)
downloadmariadb-git-10778d6fe2d9891b3d806a71737b5db4a94c05f1.tar.gz
Makefile.am:
Add CMakeLists.txt to source distribution CMakeLists.txt: Added missing '${MYSQLD_EXE_SUFFIX}' to "mysqld" targets new in 5.1 Manual merge from 5.0 (bug#30118) CMakeLists.txt, mysqlbinlog.cc, lib_sql.cc: No need to test on USING_CMAKE, it is the only Windows build
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/CMakeLists.txt4
-rw-r--r--libmysqld/Makefile.am2
-rw-r--r--libmysqld/examples/Makefile.am1
-rw-r--r--libmysqld/lib_sql.cc4
4 files changed, 2 insertions, 9 deletions
diff --git a/libmysqld/CMakeLists.txt b/libmysqld/CMakeLists.txt
index dd42bafcfe0..45a298b2efe 100644
--- a/libmysqld/CMakeLists.txt
+++ b/libmysqld/CMakeLists.txt
@@ -20,10 +20,6 @@ SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX")
# storage does not work properly in DLLs.
ADD_DEFINITIONS(-DUSE_TLS -DMYSQL_SERVER)
-# The old Windows build method used renamed (.cc -> .cpp) source files, fails
-# in #include in lib_sql.cc. So disable that using the USING_CMAKE define.
-ADD_DEFINITIONS(-DUSING_CMAKE)
-
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/libmysqld
${CMAKE_SOURCE_DIR}/libmysql
diff --git a/libmysqld/Makefile.am b/libmysqld/Makefile.am
index 024b85eed8e..6ecce474b50 100644
--- a/libmysqld/Makefile.am
+++ b/libmysqld/Makefile.am
@@ -22,7 +22,7 @@ MYSQLSHAREdir = $(pkgdatadir)
MYSQLBASEdir= $(prefix)
MYSQLLIBdir= $(libdir)
-EXTRA_DIST = libmysqld.def
+EXTRA_DIST = libmysqld.def CMakeLists.txt
DEFS = -DEMBEDDED_LIBRARY -DMYSQL_SERVER \
-DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
-DDATADIR="\"$(MYSQLDATAdir)\"" \
diff --git a/libmysqld/examples/Makefile.am b/libmysqld/examples/Makefile.am
index ec5bbbb86e5..4a91724afee 100644
--- a/libmysqld/examples/Makefile.am
+++ b/libmysqld/examples/Makefile.am
@@ -19,6 +19,7 @@ client_sources = $(mysqltest_embedded_SOURCES) $(mysql_SOURCES)
tests_sources = $(mysql_client_test_embedded_SOURCES)
BUILT_SOURCES = link_sources
CLEANFILES = $(client_sources) $(tests_sources) $(BUILT_SOURCES)
+EXTRA_DIST = CMakeLists.txt
link_sources:
for f in $(client_sources); do \
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 0ce9efca0cc..4a8387e9944 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -28,11 +28,7 @@ extern "C"
extern unsigned long max_allowed_packet, net_buffer_length;
}
-#if defined(__WIN__) && !defined(USING_CMAKE)
-#include "../sql/mysqld.cpp"
-#else
#include "../sql/mysqld.cc"
-#endif
C_MODE_START