mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:17:51 +08:00
75bd2efe0d
* [many ports] 2019.09.14 Updates * Revert failure ports * Revert failure ports * Revert failure ports * [urdfdom] Fix find dependency console_bridge * Revert failure ports * [devil] Compatible with jasper 2.0.20 * [devil] Refix compatible with jasper functions declaration on different os * Update ports/alembic/CONTROL Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * Revert failure ports wangle * [azure-kinect-sensor-sdk] Fix build with matroska 1.6.2 * Revert failure ports * Revert failure ports * [urdfdom-headers] Fix include path in config.cmake file * upload patch * [urdfdom-headers] Refix include path in config.cmake file * [qt5-imageformats] Fix missing include math.h * [urdfdom-headers] Refix include path in config.cmake file * [qt5] Fix adding option PATCHES and other options when using qt_submodule_installation * Remove updated ports version * Commit suggestions * [libideviceactivation] revert Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
70 lines
2.1 KiB
CMake
70 lines
2.1 KiB
CMake
|
|
if (EXISTS "${CURRENT_INSTALLED_DIR}/share/libmysql")
|
|
message(FATAL_ERROR "FATAL ERROR: libmysql and libmariadb are incompatible.")
|
|
endif()
|
|
|
|
include(vcpkg_common_functions)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO MariaDB/mariadb-connector-c
|
|
REF a746c3af449a8754e78ad7971e59e79af7957cdb # v3.1.9
|
|
SHA512 6f200b984b0642bd75dd8b1ca8f6b996c4b9236c4180255d15dee369a10b3b802c0e8e1942135aeb3c279f3087ff4b19096e5fef15935f4b76cf4fcb344d9133
|
|
HEAD_REF master
|
|
PATCHES
|
|
md.patch
|
|
disable-test-build.patch
|
|
fix-InstallPath.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
zlib WITH_EXTERNAL_ZLIB
|
|
openssl WITH_SSL
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DWITH_UNITTEST=OFF
|
|
-DWITH_CURL=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
# remove debug header
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
endif()
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
endif()
|
|
|
|
if(VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
# move headers
|
|
file(RENAME
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
|
${CURRENT_PACKAGES_DIR}/include)
|
|
endif()
|
|
|
|
# remove plugin folder
|
|
file(REMOVE_RECURSE
|
|
${CURRENT_PACKAGES_DIR}/lib/mariadb
|
|
${CURRENT_PACKAGES_DIR}/debug/lib/mariadb)
|
|
|
|
# copy & remove header files
|
|
file(REMOVE
|
|
${CURRENT_PACKAGES_DIR}/include/mariadb/my_config.h.in
|
|
${CURRENT_PACKAGES_DIR}/include/mariadb/mysql_version.h.in
|
|
${CURRENT_PACKAGES_DIR}/include/mariadb/CMakeLists.txt
|
|
${CURRENT_PACKAGES_DIR}/include/mariadb/Makefile.am)
|
|
file(RENAME
|
|
${CURRENT_PACKAGES_DIR}/include/mariadb
|
|
${CURRENT_PACKAGES_DIR}/include/mysql)
|
|
|
|
# copy license file
|
|
file(COPY ${SOURCE_PATH}/COPYING.LIB DESTINATION ${CURRENT_PACKAGES_DIR}/share/libmariadb)
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libmariadb/COPYING.LIB ${CURRENT_PACKAGES_DIR}/share/libmariadb/copyright)
|