Skip to content
This repository has been archived by the owner on May 8, 2019. It is now read-only.

Commit

Permalink
Windows build fix:
Browse files Browse the repository at this point in the history
The msi installer package didn't contain all plugins
  • Loading branch information
9EOR9 committed Apr 23, 2018
1 parent f46244c commit 89e27e9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
3 changes: 1 addition & 2 deletions cmake/plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ FUNCTION(REGISTER_PLUGIN)
${CC_BINARY_DIR}/win/${target}.rc
@ONLY)
set(CC_PLUGIN_SOURCES ${CC_PLUGIN_SOURCES} ${CC_BINARY_DIR}/win/${target}.rc ${CC_SOURCE_DIR}/plugins/plugin.def)
MESSAGE(STATUS "PLugin sources: ${CC_PLUGIN_SOURCES}")
endif()
add_library(${CC_PLUGIN_TARGET} MODULE ${CC_PLUGIN_SOURCES})
add_library(${CC_PLUGIN_TARGET} SHARED ${CC_PLUGIN_SOURCES})
target_link_libraries(${CC_PLUGIN_TARGET} ${CC_PLUGIN_LIBRARIES})
set_target_properties(${CC_PLUGIN_TARGET} PROPERTIES PREFIX "")
set_target_properties(${CC_PLUGIN_TARGET} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CC_BINARY_DIR}/plugins/lib")
Expand Down
2 changes: 1 addition & 1 deletion plugins/auth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ IF(GSSAPI_SOURCES)
LIBRARIES ${GSSAPI_LIBS})
ENDIF()

IF(${WITH_SSL} STREQUAL "OPENSSL" OR "WIN32")
IF(${WITH_SSL} STREQUAL "OPENSSL" OR ${WITH_SSL} STREQUAL "SCHANNEL")
IF(WIN32)
SET(SHA256_LIBS crypt32)
ELSE()
Expand Down
20 changes: 9 additions & 11 deletions win/packaging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,15 @@ ENDIF()
#
# process dynamic plugins
#
FOREACH(plugin ${PLUGINS})
IF(${${plugin}_PLUGIN_TYPE} STREQUAL "DYNAMIC")
SET(TARGET ${${plugin}_PLUGIN_TARGET})
# Get dependencies
SET(DYNAMIC_TARGETS ${DYNAMIC_TARGETS} ${TARGET})
GET_PROPERTY(FILE TARGET ${TARGET} PROPERTY LOCATION)
#MESSAGE(STATUS "Location for ${TARGET}: ${DIRECTORY}")
# build file list
STRING(REPLACE "$(Configuration)" "RelWithDebInfo" FILE ${FILE})
SET(MARIADB_PLUGINS "${MARIADB_PLUGINS} <File Id=\"${TARGET}.dll\" Name=\"${TARGET}.dll\" DiskId=\"1\" Source=\"${FILE}\"/>\n")
ENDIF()
FOREACH(plugin ${PLUGINS_DYNAMIC})
SET(TARGET ${plugin})
# Get dependencies
SET(DYNAMIC_TARGETS ${DYNAMIC_TARGETS} ${TARGET})
GET_PROPERTY(FILE TARGET ${TARGET} PROPERTY LOCATION)
MESSAGE(STATUS "Location for ${TARGET}: ${FILE}")
# build file list
STRING(REPLACE "$(Configuration)" "RelWithDebInfo" FILE ${FILE})
SET(MARIADB_PLUGINS "${MARIADB_PLUGINS} <File Id=\"${TARGET}.dll\" Name=\"${TARGET}.dll\" DiskId=\"1\" Source=\"${FILE}\"/>\n")
ENDFOREACH()

FOREACH(src ${WIX_INCLUDES})
Expand Down
2 changes: 1 addition & 1 deletion win/resource.rc.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ BEGIN
VALUE "CompanyName", "MariaDB Corporation AB"
VALUE "FileDescription", "@FILE_DESCRIPTION@"
VALUE "FileVersion", "@CPACK_PACKAGE_VERSION_MAJOR@.@CPACK_PACKAGE_VERSION_MINOR@.@CPACK_PACKAGE_VERSION_PATCH@.@FILE_VERSION@"
VALUE "LegalCopyright", "2013-2015 MariaDB Corporation Ab"
VALUE "LegalCopyright", "2013-2018 MariaDB Corporation Ab"
VALUE "ProductName", "MariaDB Connector/C"
VALUE "ProductVersion", "@CPACK_PACKAGE_VERSION_MAJOR@.@CPACK_PACKAGE_VERSION_MINOR@.@CPACK_PACKAGE_VERSION_PATCH@"
VALUE "OriginalFilename", "@ORIGINAL_FILE_NAME@"
Expand Down

0 comments on commit 89e27e9

Please sign in to comment.