You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
6.0 KiB

initial cmake fileset. It is not production ready but stable enough to start working with win/build-vs71.bat: batch file to build project files for Visual Studio 2003 win/build-vs8.bat: batch file to build project files for Visual Studio 2005 win/cmakefiles/base: cmakefile that will later be moved into the target directory win/cmakefiles/bdb: cmakefile that will later be moved into the target directory win/cmakefiles/client: cmakefile that will later be moved into the target directory win/cmakefiles/dbug: cmakefile that will later be moved into the target directory win/cmakefiles/deploy.bat: cmakefile that will later be moved into the target directory win/cmakefiles/extra: cmakefile that will later be moved into the target directory win/cmakefiles/heap: cmakefile that will later be moved into the target directory win/cmakefiles/innobase: cmakefile that will later be moved into the target directory win/cmakefiles/myisam: cmakefile that will later be moved into the target directory win/cmakefiles/myisammrg: cmakefile that will later be moved into the target directory win/cmakefiles/mysys: cmakefile that will later be moved into the target directory win/cmakefiles/regex: cmakefile that will later be moved into the target directory win/cmakefiles/sql: cmakefile that will later be moved into the target directory win/cmakefiles/strings: cmakefile that will later be moved into the target directory win/cmakefiles/taocrypt: cmakefile that will later be moved into the target directory win/cmakefiles/vio: cmakefile that will later be moved into the target directory win/cmakefiles/yassl: cmakefile that will later be moved into the target directory win/cmakefiles/zlib: cmakefile that will later be moved into the target directory win/config-handlerton.js: javascript file for updating handlerton.cc based on configure options win/config-version.js: javascript file for updating mysql_version.h based on configure.in data win/configure.js: basic configure javascript
20 years ago
initial cmake fileset. It is not production ready but stable enough to start working with win/build-vs71.bat: batch file to build project files for Visual Studio 2003 win/build-vs8.bat: batch file to build project files for Visual Studio 2005 win/cmakefiles/base: cmakefile that will later be moved into the target directory win/cmakefiles/bdb: cmakefile that will later be moved into the target directory win/cmakefiles/client: cmakefile that will later be moved into the target directory win/cmakefiles/dbug: cmakefile that will later be moved into the target directory win/cmakefiles/deploy.bat: cmakefile that will later be moved into the target directory win/cmakefiles/extra: cmakefile that will later be moved into the target directory win/cmakefiles/heap: cmakefile that will later be moved into the target directory win/cmakefiles/innobase: cmakefile that will later be moved into the target directory win/cmakefiles/myisam: cmakefile that will later be moved into the target directory win/cmakefiles/myisammrg: cmakefile that will later be moved into the target directory win/cmakefiles/mysys: cmakefile that will later be moved into the target directory win/cmakefiles/regex: cmakefile that will later be moved into the target directory win/cmakefiles/sql: cmakefile that will later be moved into the target directory win/cmakefiles/strings: cmakefile that will later be moved into the target directory win/cmakefiles/taocrypt: cmakefile that will later be moved into the target directory win/cmakefiles/vio: cmakefile that will later be moved into the target directory win/cmakefiles/yassl: cmakefile that will later be moved into the target directory win/cmakefiles/zlib: cmakefile that will later be moved into the target directory win/config-handlerton.js: javascript file for updating handlerton.cc based on configure options win/config-version.js: javascript file for updating mysql_version.h based on configure.in data win/configure.js: basic configure javascript
20 years ago
initial cmake fileset. It is not production ready but stable enough to start working with win/build-vs71.bat: batch file to build project files for Visual Studio 2003 win/build-vs8.bat: batch file to build project files for Visual Studio 2005 win/cmakefiles/base: cmakefile that will later be moved into the target directory win/cmakefiles/bdb: cmakefile that will later be moved into the target directory win/cmakefiles/client: cmakefile that will later be moved into the target directory win/cmakefiles/dbug: cmakefile that will later be moved into the target directory win/cmakefiles/deploy.bat: cmakefile that will later be moved into the target directory win/cmakefiles/extra: cmakefile that will later be moved into the target directory win/cmakefiles/heap: cmakefile that will later be moved into the target directory win/cmakefiles/innobase: cmakefile that will later be moved into the target directory win/cmakefiles/myisam: cmakefile that will later be moved into the target directory win/cmakefiles/myisammrg: cmakefile that will later be moved into the target directory win/cmakefiles/mysys: cmakefile that will later be moved into the target directory win/cmakefiles/regex: cmakefile that will later be moved into the target directory win/cmakefiles/sql: cmakefile that will later be moved into the target directory win/cmakefiles/strings: cmakefile that will later be moved into the target directory win/cmakefiles/taocrypt: cmakefile that will later be moved into the target directory win/cmakefiles/vio: cmakefile that will later be moved into the target directory win/cmakefiles/yassl: cmakefile that will later be moved into the target directory win/cmakefiles/zlib: cmakefile that will later be moved into the target directory win/config-handlerton.js: javascript file for updating handlerton.cc based on configure options win/config-version.js: javascript file for updating mysql_version.h based on configure.in data win/configure.js: basic configure javascript
20 years ago
initial cmake fileset. It is not production ready but stable enough to start working with win/build-vs71.bat: batch file to build project files for Visual Studio 2003 win/build-vs8.bat: batch file to build project files for Visual Studio 2005 win/cmakefiles/base: cmakefile that will later be moved into the target directory win/cmakefiles/bdb: cmakefile that will later be moved into the target directory win/cmakefiles/client: cmakefile that will later be moved into the target directory win/cmakefiles/dbug: cmakefile that will later be moved into the target directory win/cmakefiles/deploy.bat: cmakefile that will later be moved into the target directory win/cmakefiles/extra: cmakefile that will later be moved into the target directory win/cmakefiles/heap: cmakefile that will later be moved into the target directory win/cmakefiles/innobase: cmakefile that will later be moved into the target directory win/cmakefiles/myisam: cmakefile that will later be moved into the target directory win/cmakefiles/myisammrg: cmakefile that will later be moved into the target directory win/cmakefiles/mysys: cmakefile that will later be moved into the target directory win/cmakefiles/regex: cmakefile that will later be moved into the target directory win/cmakefiles/sql: cmakefile that will later be moved into the target directory win/cmakefiles/strings: cmakefile that will later be moved into the target directory win/cmakefiles/taocrypt: cmakefile that will later be moved into the target directory win/cmakefiles/vio: cmakefile that will later be moved into the target directory win/cmakefiles/yassl: cmakefile that will later be moved into the target directory win/cmakefiles/zlib: cmakefile that will later be moved into the target directory win/config-handlerton.js: javascript file for updating handlerton.cc based on configure options win/config-version.js: javascript file for updating mysql_version.h based on configure.in data win/configure.js: basic configure javascript
20 years ago
  1. PROJECT(MySql)
  2. # This reads user configuration, generated by configure.js.
  3. INCLUDE(win/configure.data)
  4. # Hardcode support for CSV storage engine
  5. SET(WITH_CSV_STORAGE_ENGINE TRUE)
  6. CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/include/mysql_version.h.in
  7. ${CMAKE_SOURCE_DIR}/include/mysql_version.h @ONLY)
  8. SET(WITH_HEAP_STORAGE_ENGINE TRUE)
  9. ADD_DEFINITIONS(-D WITH_HEAP_STORAGE_ENGINE)
  10. SET (mysql_plugin_defs "${mysql_plugin_defs},builtin_heap_plugin")
  11. SET(WITH_MYISAM_STORAGE_ENGINE TRUE)
  12. ADD_DEFINITIONS(-D WITH_MYISAM_STORAGE_ENGINE)
  13. SET (mysql_plugin_defs "${mysql_plugin_defs},builtin_myisam_plugin")
  14. SET(WITH_MYISAMMRG_STORAGE_ENGINE TRUE)
  15. ADD_DEFINITIONS(-D WITH_MYISAMMRG_STORAGE_ENGINE)
  16. SET (mysql_plugin_defs "${mysql_plugin_defs},builtin_myisammrg_plugin")
  17. IF(WITH_ARCHIVE_STORAGE_ENGINE)
  18. ADD_DEFINITIONS(-D WITH_ARCHIVE_STORAGE_ENGINE)
  19. SET (mysql_plugin_defs "${mysql_plugin_defs},builtin_archive_plugin")
  20. ENDIF(WITH_ARCHIVE_STORAGE_ENGINE)
  21. IF(WITH_BLACKHOLE_STORAGE_ENGINE)
  22. ADD_DEFINITIONS(-D WITH_BLACKHOLE_STORAGE_ENGINE)
  23. SET (mysql_plugin_defs "${mysql_plugin_defs},builtin_blackhole_plugin")
  24. ENDIF(WITH_BLACKHOLE_STORAGE_ENGINE)
  25. IF(WITH_CSV_STORAGE_ENGINE)
  26. ADD_DEFINITIONS(-D WITH_CSV_STORAGE_ENGINE)
  27. SET (mysql_plugin_defs "${mysql_plugin_defs},builtin_csv_plugin")
  28. ENDIF(WITH_CSV_STORAGE_ENGINE)
  29. IF(WITH_EXAMPLE_STORAGE_ENGINE)
  30. ADD_DEFINITIONS(-D WITH_EXAMPLE_STORAGE_ENGINE)
  31. SET (mysql_plugin_defs "${mysql_plugin_defs},builtin_example_plugin")
  32. ENDIF(WITH_EXAMPLE_STORAGE_ENGINE)
  33. IF(WITH_INNOBASE_STORAGE_ENGINE)
  34. ADD_DEFINITIONS(-D WITH_INNOBASE_STORAGE_ENGINE)
  35. SET (mysql_plugin_defs "${mysql_plugin_defs},builtin_innobase_plugin")
  36. ENDIF(WITH_INNOBASE_STORAGE_ENGINE)
  37. IF(WITH_PARTITION_STORAGE_ENGINE)
  38. ADD_DEFINITIONS(-D WITH_PARTITION_STORAGE_ENGINE)
  39. SET (mysql_plugin_defs "${mysql_plugin_defs},builtin_partition_plugin")
  40. ENDIF(WITH_PARTITION_STORAGE_ENGINE)
  41. IF(WITH_FEDERATED_STORAGE_ENGINE)
  42. ADD_DEFINITIONS(-D WITH_FEDERATED_STORAGE_ENGINE)
  43. SET (mysql_plugin_defs "${mysql_plugin_defs},builtin_federated_plugin")
  44. ENDIF(WITH_FEDERATED_STORAGE_ENGINE)
  45. IF(WITH_BERKELEY_STORAGE_ENGINE)
  46. ADD_DEFINITIONS(-D WITH_BERKELEY_STORAGE_ENGINE)
  47. SET (mysql_plugin_defs "${mysql_plugin_defs},builtin_berkeley_plugin")
  48. ENDIF(WITH_BERKELEY_STORAGE_ENGINE)
  49. CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/sql/sql_builtin.cc.in
  50. ${CMAKE_SOURCE_DIR}/sql/sql_builtin.cc @ONLY)
  51. SET(localstatedir "C:\\mysql\\data")
  52. CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/support-files/my-huge.cnf.sh
  53. ${CMAKE_SOURCE_DIR}/support-files/my-huge.ini @ONLY)
  54. CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/support-files/my-innodb-heavy-4G.cnf.sh
  55. ${CMAKE_SOURCE_DIR}/support-files/my-innodb-heavy-4G.ini @ONLY)
  56. CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/support-files/my-large.cnf.sh
  57. ${CMAKE_SOURCE_DIR}/support-files/my-large.ini @ONLY)
  58. CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/support-files/my-medium.cnf.sh
  59. ${CMAKE_SOURCE_DIR}/support-files/my-medium.ini @ONLY)
  60. CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/support-files/my-small.cnf.sh
  61. ${CMAKE_SOURCE_DIR}/support-files/my-small.ini @ONLY)
  62. IF(__NT__)
  63. ADD_DEFINITIONS(-D __NT__)
  64. ENDIF(__NT__)
  65. IF(CYBOZU)
  66. ADD_DEFINITIONS(-D CYBOZU)
  67. ENDIF(CYBOZU)
  68. # in some places we use DBUG_OFF
  69. SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -D DBUG_OFF")
  70. SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -D DBUG_OFF")
  71. IF(CMAKE_GENERATOR MATCHES "Visual Studio 8")
  72. SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /wd4996")
  73. SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /wd4996")
  74. SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /wd4996")
  75. SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /wd4996")
  76. ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 8")
  77. IF(CMAKE_GENERATOR MATCHES "Visual Studio 7" OR
  78. CMAKE_GENERATOR MATCHES "Visual Studio 8")
  79. # replace /MDd with /MTd
  80. STRING(REPLACE "/MDd" "/MTd" CMAKE_CXX_FLAGS_DEBUG_INIT
  81. ${CMAKE_CXX_FLAGS_DEBUG_INIT})
  82. STRING(REPLACE "/MDd" "/MTd" CMAKE_C_FLAGS_DEBUG_INIT
  83. ${CMAKE_C_FLAGS_DEBUG_INIT})
  84. STRING(REPLACE "/MD" "/MT" CMAKE_C_FLAGS_RELEASE
  85. ${CMAKE_C_FLAGS_RELEASE})
  86. STRING(REPLACE "/MDd" "/MTd" CMAKE_C_FLAGS_DEBUG
  87. ${CMAKE_C_FLAGS_DEBUG})
  88. STRING(REPLACE "/MD" "/MT" CMAKE_CXX_FLAGS_RELEASE
  89. ${CMAKE_CXX_FLAGS_RELEASE})
  90. STRING(REPLACE "/MDd" "/MTd" CMAKE_CXX_FLAGS_DEBUG
  91. ${CMAKE_CXX_FLAGS_DEBUG})
  92. # remove support for Exception handling
  93. STRING(REPLACE "/GX" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
  94. STRING(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
  95. STRING(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS_INIT
  96. ${CMAKE_CXX_FLAGS_INIT})
  97. STRING(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS_DEBUG_INIT
  98. ${CMAKE_CXX_FLAGS_DEBUG_INIT})
  99. ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7" OR
  100. CMAKE_GENERATOR MATCHES "Visual Studio 8")
  101. ADD_DEFINITIONS("-D_WINDOWS -D__WIN__ -D _CRT_SECURE_NO_DEPRECATE")
  102. ADD_SUBDIRECTORY(vio)
  103. ADD_SUBDIRECTORY(dbug)
  104. ADD_SUBDIRECTORY(strings)
  105. ADD_SUBDIRECTORY(regex)
  106. ADD_SUBDIRECTORY(mysys)
  107. ADD_SUBDIRECTORY(extra/yassl)
  108. ADD_SUBDIRECTORY(extra/yassl/taocrypt)
  109. ADD_SUBDIRECTORY(extra)
  110. ADD_SUBDIRECTORY(zlib)
  111. ADD_SUBDIRECTORY(storage/heap)
  112. ADD_SUBDIRECTORY(storage/myisam)
  113. ADD_SUBDIRECTORY(storage/myisammrg)
  114. ADD_SUBDIRECTORY(client)
  115. IF(WITH_ARCHIVE_STORAGE_ENGINE)
  116. ADD_SUBDIRECTORY(storage/archive)
  117. ENDIF(WITH_ARCHIVE_STORAGE_ENGINE)
  118. IF(WITH_BERKELEY_STORAGE_ENGINE)
  119. ADD_SUBDIRECTORY(storage/bdb)
  120. ENDIF(WITH_BERKELEY_STORAGE_ENGINE)
  121. IF(WITH_BLACKHOLE_STORAGE_ENGINE)
  122. ADD_SUBDIRECTORY(storage/blackhole)
  123. ENDIF(WITH_BLACKHOLE_STORAGE_ENGINE)
  124. IF(WITH_CSV_STORAGE_ENGINE)
  125. ADD_SUBDIRECTORY(storage/csv)
  126. ENDIF(WITH_CSV_STORAGE_ENGINE)
  127. IF(WITH_EXAMPLE_STORAGE_ENGINE)
  128. ADD_SUBDIRECTORY(storage/example)
  129. ENDIF(WITH_EXAMPLE_STORAGE_ENGINE)
  130. IF(WITH_INNOBASE_STORAGE_ENGINE)
  131. ADD_SUBDIRECTORY(storage/innobase)
  132. ENDIF(WITH_INNOBASE_STORAGE_ENGINE)
  133. ADD_SUBDIRECTORY(sql)
  134. ADD_SUBDIRECTORY(server-tools/instance-manager)
  135. ADD_SUBDIRECTORY(libmysql)
  136. ADD_SUBDIRECTORY(tests)
  137. ADD_SUBDIRECTORY(libmysqld)
  138. ADD_SUBDIRECTORY(libmysqld/examples)