Commit 230eab3c authored by unknown's avatar unknown
Browse files

Some changes to make it possible to build for Windows with CMake from

a normal 'make dist' source .tar.gz.


libmysql/mytest.c:
  bk cp VC++Files/libmysqltest/mytest.c libmysql/mytest.c
sql/message.mc:
  bk cp VC++Files/sql/message.mc sql/message.mc
Makefile.am:
  Add Windows CMake stuff.
client/Makefile.am:
  Add extra files needed for CMake Windows build.
cmakelists.txt:
  Fix subdir order to make CMake dependency calculations happy.
configure.in:
  Add extra files needed for CMake Windows build.
extra/Makefile.am:
  Add extra files needed for CMake Windows build.
extra/yassl/Makefile.am:
  Add extra files needed for CMake Windows build.
libmysql/Makefile.am:
  Add extra files needed for CMake Windows build.
libmysql/cmakelists.txt:
  Move mytest.c to a more sensible location.
libmysqld/Makefile.am:
  Add extra files needed for CMake Windows build.
mysys/Makefile.am:
  Add extra files needed for CMake Windows build.
regex/Makefile.am:
  Add extra files needed for CMake Windows build.
server-tools/instance-manager/Makefile.am:
  Add extra files needed for CMake Windows build.
sql/Makefile.am:
  Add extra files needed for CMake Windows build.
sql/cmakelists.txt:
  Move message.mc to a more sensible location.
  Add some dependencies to avoid a stale handlerton.cc.
storage/archive/Makefile.am:
  Add extra files needed for CMake Windows build.
storage/bdb/Makefile.in:
  Add extra files needed for CMake Windows build.
storage/example/Makefile.am:
  Add extra files needed for CMake Windows build.
storage/heap/Makefile.am:
  Add extra files needed for CMake Windows build.
storage/innobase/Makefile.am:
  Add extra files needed for CMake Windows build.
storage/innobase/include/univ.i:
  Avoid including Unix config in Windows build.
storage/myisam/Makefile.am:
  Add extra files needed for CMake Windows build.
storage/myisammrg/Makefile.am:
  Add extra files needed for CMake Windows build.
strings/Makefile.am:
  Add extra files needed for CMake Windows build.
tests/Makefile.am:
  Add extra files needed for CMake Windows build.
vio/Makefile.am:
  Add extra files needed for CMake Windows build.
zlib/Makefile.am:
  Add extra files needed for CMake Windows build.
parent a69a3783
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ AUTOMAKE_OPTIONS = foreign

# These are built from source in the Docs directory
EXTRA_DIST =		INSTALL-SOURCE INSTALL-WIN-SOURCE \
			README COPYING EXCEPTIONS-CLIENT
			README COPYING EXCEPTIONS-CLIENT cmakelists.txt
SUBDIRS =		. include @docs_dirs@ @zlib_dir@ @yassl_dir@ \
			@readline_topdir@ sql-common \
			@thread_dirs@ pstack \
@@ -29,7 +29,7 @@ SUBDIRS = . include @docs_dirs@ @zlib_dir@ @yassl_dir@ \
			@mysql_se_plugins@ \
			netware @libmysqld_dirs@ \
			@bench_dirs@ support-files @tools_dirs@ \
			plugin
			plugin win

DIST_SUBDIRS =		. include @docs_dirs@ zlib \
			@readline_topdir@ sql-common \
@@ -39,7 +39,7 @@ DIST_SUBDIRS = . include @docs_dirs@ zlib \
			@man_dirs@ tests SSL\
			BUILD netware os2 @libmysqld_dirs@\
			@bench_dirs@ support-files server-tools tools \
			plugin
			plugin win

# Run these targets before any others, also make part of clean target,
# to make sure we create new links after a clean.
+1 −0
Original line number Diff line number Diff line
@@ -77,6 +77,7 @@ strings_src=decimal.c

# Fix for mit-threads
DEFS =			-DUNDEF_THREADS_HACK
EXTRA_DIST =		get_password.c cmakelists.txt

link_sources:
	for f in $(sql_src) ; do \
+2 −3
Original line number Diff line number Diff line
@@ -42,6 +42,5 @@ ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7" OR CMAKE_GENERATOR MATCHES "Visu
ADD_DEFINITIONS("-D_WINDOWS -D__WIN__")

SUBDIRS(vio dbug strings regex mysys extra/yassl extra/yassl/taocrypt extra 
        zlib storage/heap storage/myisam storage/myisammrg client sql
	server-tools/instance-manager libmysql tests
	${se_subdirs})
        zlib storage/heap storage/myisam storage/myisammrg client 
	${se_subdirs} sql server-tools/instance-manager libmysql tests)
+2 −1
Original line number Diff line number Diff line
@@ -2602,7 +2602,8 @@ AC_CONFIG_FILES(Makefile extra/Makefile mysys/Makefile dnl
 zlib/Makefile dnl
 cmd-line-utils/readline/Makefile dnl
 plugin/Makefile dnl
 plugin/fulltext/Makefile)
 plugin/fulltext/Makefile dnl
 win/Makefile)
 AC_CONFIG_COMMANDS([default], , test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h)
 AC_OUTPUT

+1 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ $(top_builddir)/include/sql_state.h: $(top_builddir)/include/mysqld_error.h
bin_PROGRAMS =		replace comp_err perror resolveip my_print_defaults \
			resolve_stack_dump mysql_waitpid innochecksum
noinst_PROGRAMS =	charset2html
EXTRA_DIST =		cmakelists.txt

perror.o: perror.c 
	$(COMPILE) @ndbcluster_includes@ $(LM_CFLAGS) -c $<
Loading