Skip to content

Commit bf66185

Browse files
committed
Fix mis-merge.
1 parent 8df4900 commit bf66185

File tree

1 file changed

+0
-125
lines changed

1 file changed

+0
-125
lines changed

CMakeLists.txt

Lines changed: 0 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -403,129 +403,4 @@ IF("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" STREQU
403403
SET(CPACK_MONOLITHIC_INSTALL 1 CACHE INTERNAL "")
404404
ENDIF()
405405

406-
IF(EXISTS ${CMAKE_SOURCE_DIR}/internal/CMakeLists.txt)
407-
ADD_SUBDIRECTORY(internal)
408-
ENDIF()
409-
410-
# Set up the installer
411-
SET(CPACK_PACKAGE_NAME "MariaDB")
412-
STRING(REPLACE "-MariaDB" "" CPACK_PACKAGE_VERSION ${VERSION})
413-
SET(CPACK_PACKAGE_VENDOR "Monty Program AB http://www.montyprogram.com")
414-
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "MariaDB")
415-
SET(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/COPYING)
416-
SET(CPACK_GENERATOR NSIS)
417-
418-
# Use our own NSIS template
419-
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/win/cmake" ${CMAKE_MODULE_PATH})
420-
421-
# Installer components and grouping
422-
SET(CPACK_COMPONENT_GROUP_SERVER_DESCRIPTION "The files necessary for running the MariaDB server.")
423-
SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION "Files used in development on the MariaDB server.")
424-
SET(CPACK_ALL_INSTALL_TYPES Normal Development)
425-
SET(CPACK_COMPONENT_RUNTIME_DISPLAY_NAME "MariaDB server")
426-
SET(CPACK_COMPONENT_RUNTIME_DESCRIPTION "The server itself. You want to install this one.")
427-
SET(CPACK_COMPONENT_RUNTIME_GROUP "Server")
428-
SET(CPACK_COMPONENT_RUNTIME_INSTALL_TYPES Normal Development)
429-
SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "Development headers")
430-
SET(CPACK_COMPONENT_HEADERS_DESCRIPTION "Header files for development on MariaDB.")
431-
SET(CPACK_COMPONENT_HEADERS_DEPENDS runtime)
432-
SET(CPACK_COMPONENT_HEADERS_GROUP "Development")
433-
SET(CPACK_COMPONENT_HEADERS_INSTALL_TYPES Development)
434-
SET(CPACK_COMPONENT_EMBEDDED_DISPLAY_NAME "Embedded")
435-
SET(CPACK_COMPONENT_EMBEDDED_DESCRIPTION "Files for embedding MariaDB in other projects.")
436-
SET(CPACK_COMPONENT_EMBEDDED_DEPENDS headers)
437-
SET(CPACK_COMPONENT_EMBEDDED_GROUP "Development")
438-
SET(CPACK_COMPONENT_EMBEDDED_INSTALL_TYPES Development)
439-
SET(CPACK_COMPONENT_SCRIPTS_DISPLAY_NAME "Server scripts")
440-
SET(CPACK_COMPONENT_SCRIPTS_DESCRIPTION "SQL and Perl scripts to control and modify the server. You need a perl installation for some of these to work.")
441-
SET(CPACK_COMPONENT_SCRIPTS_DEPENDS runtime)
442-
SET(CPACK_COMPONENT_SCRIPTS_GROUP "Server")
443-
SET(CPACK_COMPONENT_SCRIPTS_INSTALL_TYPES Normal Development)
444-
SET(CPACK_COMPONENT_MYSQLTEST_DISPLAY_NAME "MariaDB test suite")
445-
SET(CPACK_COMPONENT_MYSQLTEST_DESCRIPTION "The MariaDB regression test suite.")
446-
SET(CPACK_COMPONENT_MYSQLTEST_DEPENDS runtime)
447-
SET(CPACK_COMPONENT_MYSQLTEST_GROUP "Testing")
448-
SET(CPACK_COMPONENT_MYSQLTEST_INSTALL_TYPES Normal Development)
449-
SET(CPACK_COMPONENT_SQLBENCH_DISPLAY_NAME "SQL Bench")
450-
SET(CPACK_COMPONENT_SQLBENCH_DESCRIPTION "The MariaDB benchmark suite.")
451-
SET(CPACK_COMPONENT_SQLBENCH_DEPENDS runtime)
452-
SET(CPACK_COMPONENT_SQLBENCH_GROUP "Testing")
453-
SET(CPACK_COMPONENT_SQLBENCH_INSTALL_TYPES Normal Development)
454-
455-
# Add files to the installer
456-
INSTALL(FILES COPYING EXCEPTIONS-CLIENT DESTINATION .)
457-
INSTALL(FILES support-files/my-huge.ini support-files/my-innodb-heavy-4G.ini DESTINATION .)
458-
INSTALL(FILES support-files/my-large.ini support-files/my-medium.ini DESTINATION .)
459-
INSTALL(FILES support-files/my-small.ini DESTINATION .)
460-
INSTALL(FILES Docs/INSTALL-BINARY DESTINATION Docs)
461-
INSTALL(FILES COPYING DESTINATION Docs)
462-
FILE(GLOB headerfiles "${CMAKE_CURRENT_SOURCE_DIR}/include/*.h")
463-
INSTALL(FILES ${headerfiles} DESTINATION include COMPONENT headers)
464-
INSTALL(FILES include/mysql/plugin.h DESTINATION include/mysql COMPONENT headers)
465-
INSTALL(FILES libmysql/libmysql.def DESTINATION include COMPONENT headers)
466-
467-
# Handle the database files
468-
FILE(GLOB datafiles "${CMAKE_CURRENT_SOURCE_DIR}/win/data/mysql/*")
469-
INSTALL(FILES ${datafiles} DESTINATION data/clean/mysql)
470-
INSTALL(FILES win/data/maria_log.00000001 win/data/maria_log_control DESTINATION data/clean)
471-
INSTALL(DIRECTORY win/data/test DESTINATION data/clean)
472-
SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "${CPACK_NSIS_EXTRA_INSTALL_COMMANDS}
473-
IfFileExists '$INSTDIR\\\\data\\\\mysql\\\\db.frm' 0 CopyDatabaseFiles
474-
MessageBox MB_OK 'There are already database files present in the data directory. Clean database files are not written to the directory'
475-
GoTo EndCopyDatabaseFiles
476-
CopyDatabaseFiles:
477-
CopyFiles '$INSTDIR\\\\data\\\\clean\\\\*' '$INSTDIR\\\\data'
478-
EndCopyDatabaseFiles:")
479-
SET(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "${CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS}
480-
MessageBox MB_OK 'This will not delete the database files in $INSTDIR\\\\data'")
481-
482-
# Files in the share dir
483-
INSTALL(FILES sql/share/errmsg.txt DESTINATION share COMPONENT runtime)
484-
FILE(GLOB charsets sql/share/charsets/*)
485-
INSTALL(FILES ${charsets} DESTINATION share/charsets COMPONENT runtime)
486-
FILE(GLOB share_dirs sql/share/*/errmsg.sys)
487-
FOREACH(ERRMSGFILE ${share_dirs})
488-
STRING(REPLACE "//" "/" ERRMSGFILE ${ERRMSGFILE}) # Work around a cmake bug
489-
FILE(RELATIVE_PATH DIRNAME ${PROJECT_SOURCE_DIR}/sql/share ${ERRMSGFILE})
490-
STRING(REPLACE "/errmsg.sys" "" DIRNAME ${DIRNAME})
491-
INSTALL(FILES ${ERRMSGFILE} DESTINATION share/${DIRNAME} COMPONENT runtime)
492-
ENDFOREACH(ERRMSGFILE ${share_dirs})
493-
494-
# MTR files
495-
FILE(GLOB_RECURSE testfiles mysql-test/*)
496-
FOREACH(testfile ${testfiles})
497-
FILE(RELATIVE_PATH dirname ${PROJECT_SOURCE_DIR} ${testfile})
498-
GET_FILENAME_COMPONENT(dirname ${dirname} PATH)
499-
GET_FILENAME_COMPONENT(filename ${testfile} NAME)
500-
GET_FILENAME_COMPONENT(ext ${testfile} EXT)
501-
SET(ok "yes")
502-
IF (NOT "x_${ext}" STREQUAL "x_")
503-
# Test if this is one of the extensions we don't want to install
504-
STRING(TOLOWER ${ext} ext)
505-
IF(${ext} STREQUAL ".dir" OR ${ext} STREQUAL ".vcproj" OR ${ext} STREQUAL ".user" OR ${ext} STREQUAL ".ilk"
506-
OR ${ext} STREQUAL ".idb" OR ${ext} STREQUAL ".map" OR ${ext} STREQUAL ".gcov"
507-
OR ${ext} STREQUAL ".supp" OR ${ext} STREQUAL ".am" OR ${ext} STREQUAL ".stress")
508-
SET(ok "no")
509-
ENDIF()
510-
ENDIF(NOT "x_${ext}" STREQUAL "x_")
511-
IF (${ok} STREQUAL "yes")
512-
# Message("Dir: ${dirname}. File: ${filename}. Ext: ${ext}")
513-
INSTALL(FILES ${testfile} DESTINATION ${dirname} COMPONENT mysqltest)
514-
ENDIF(${ok} STREQUAL "yes")
515-
ENDFOREACH(testfile ${testfiles})
516-
517-
# SQL Bench
518-
FILE(GLOB_RECURSE benchfiles sql-bench/*)
519-
FOREACH(testfile ${testfiles})
520-
FILE(RELATIVE_PATH dirname ${PROJECT_SOURCE_DIR} ${testfile})
521-
GET_FILENAME_COMPONENT(dirname ${dirname} PATH)
522-
GET_FILENAME_COMPONENT(filename ${testfile} NAME)
523-
IF(NOT ${dirname} STREQUAL "sql-bench" OR ${filename} STREQUAL "README")
524-
INSTALL(FILES ${testfile} DESTINATION ${dirname} COMPONENT sqlbench)
525-
ENDIF()
526-
ENDFOREACH(testfile ${testfiles})
527-
528-
INCLUDE(InstallRequiredSystemLibraries)
529-
530-
# This must always be the last line
531406
INCLUDE(CPack)

0 commit comments

Comments
 (0)