mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Fix MSI package creation for connect engine.
Also, do not use /MP option when compiling CONNECT (incompatible with COM #import directive) Also, fix ODBC_LIBRARY to be a list on Windows, not string with spaces inside.
This commit is contained in:
parent
2a20ab7889
commit
4a3e22c430
2 changed files with 13 additions and 3 deletions
|
@ -117,6 +117,10 @@ ENDIF(CONNECT_WITH_LIBXML2)
|
||||||
|
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
|
# /MP option of the Microsoft compiler does not work well with COM #import
|
||||||
|
string(REPLACE "/MP" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
||||||
|
string(REPLACE "/MP" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||||
|
|
||||||
OPTION(CONNECT_WITH_MSXML "Compile CONNECT storage engine with MSXML support" ON)
|
OPTION(CONNECT_WITH_MSXML "Compile CONNECT storage engine with MSXML support" ON)
|
||||||
IF(CONNECT_WITH_MSXML)
|
IF(CONNECT_WITH_MSXML)
|
||||||
find_library(MSXML_LIBRARY
|
find_library(MSXML_LIBRARY
|
||||||
|
@ -234,7 +238,7 @@ IF(CONNECT_WITH_ODBC)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ELSE(NOT UNIX)
|
ELSE(NOT UNIX)
|
||||||
add_definitions(-DODBC_SUPPORT)
|
add_definitions(-DODBC_SUPPORT)
|
||||||
SET(ODBC_LIBRARY "odbc32.lib odbccp32.lib")
|
SET(ODBC_LIBRARY odbc32.lib odbccp32.lib)
|
||||||
SET(CONNECT_SOURCES ${CONNECT_SOURCES}
|
SET(CONNECT_SOURCES ${CONNECT_SOURCES}
|
||||||
tabodbc.cpp tabodbc.h odbccat.h odbconn.cpp odbconn.h)
|
tabodbc.cpp tabodbc.h odbccat.h odbconn.cpp odbconn.h)
|
||||||
ENDIF(UNIX)
|
ENDIF(UNIX)
|
||||||
|
@ -248,7 +252,7 @@ ENDIF(CONNECT_WITH_ODBC)
|
||||||
MYSQL_ADD_PLUGIN(connect ${CONNECT_SOURCES}
|
MYSQL_ADD_PLUGIN(connect ${CONNECT_SOURCES}
|
||||||
STORAGE_ENGINE
|
STORAGE_ENGINE
|
||||||
MODULE_OUTPUT_NAME "ha_connect"
|
MODULE_OUTPUT_NAME "ha_connect"
|
||||||
COMPONENT connect-engine
|
COMPONENT connect_engine
|
||||||
LINK_LIBRARIES ${ZLIB_LIBRARY} ${XML_LIBRARY} ${ICONV_LIBRARY}
|
LINK_LIBRARIES ${ZLIB_LIBRARY} ${XML_LIBRARY} ${ICONV_LIBRARY}
|
||||||
${ODBC_LIBRARY} ${IPHLPAPI_LIBRARY})
|
${ODBC_LIBRARY} ${IPHLPAPI_LIBRARY})
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ IF(ESSENTIALS)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(CPACK_COMPONENTS_USED
|
SET(CPACK_COMPONENTS_USED
|
||||||
"Server;Client;Development;SharedLibraries;Embedded;Documentation;IniFiles;Readme;Debuginfo;Common")
|
"Server;Client;Development;SharedLibraries;Embedded;Documentation;IniFiles;Readme;Debuginfo;Common;connect_engine")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
SET( WIX_FEATURE_MySQLServer_EXTRA_FEATURES "DBInstance;SharedClientServerComponents")
|
SET( WIX_FEATURE_MySQLServer_EXTRA_FEATURES "DBInstance;SharedClientServerComponents")
|
||||||
|
@ -62,6 +62,12 @@ SET(CPACK_COMPONENT_GROUP_MYSQLSERVER_DESCRIPTION "Install server")
|
||||||
SET(CPACK_COMPONENT_DATAFILES_DESCRIPTION "Server data files" )
|
SET(CPACK_COMPONENT_DATAFILES_DESCRIPTION "Server data files" )
|
||||||
SET(CPACK_COMPONENT_DATAFILES_HIDDEN 1)
|
SET(CPACK_COMPONENT_DATAFILES_HIDDEN 1)
|
||||||
|
|
||||||
|
#Subfeature "Connect Engine"
|
||||||
|
SET(CPACK_COMPONENT_CONNECT_ENGINE_GROUP "MySQLServer")
|
||||||
|
SET(CPACK_COMPONENT_CONNECT_ENGINE_DISPLAY_NAME "Server data files")
|
||||||
|
SET(CPACK_COMPONENT_CONNECT_ENGINE_DESCRIPTION "Server data files" )
|
||||||
|
SET(CPACK_COMPONENT_CONNECT_ENGINE_HIDDEN 1)
|
||||||
|
|
||||||
|
|
||||||
#Feature "Devel"
|
#Feature "Devel"
|
||||||
SET(CPACK_COMPONENT_GROUP_DEVEL_DISPLAY_NAME "Development Components")
|
SET(CPACK_COMPONENT_GROUP_DEVEL_DISPLAY_NAME "Development Components")
|
||||||
|
|
Loading…
Add table
Reference in a new issue