mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 00:39:00 +08:00
ec46f02181
* [pthread] update to v3 * [flint, mosquitto, usbmuxd] bump CONTROL files and add final touches for PThreads4W v3 * [arb] add compatibility with PThreads4W
46 lines
1.1 KiB
CMake
46 lines
1.1 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO eclipse/mosquitto
|
|
REF v1.5
|
|
SHA512 f6a5c8e71d642ef931176fe428fb79353933facc2db226d9e55b87d4ff9bd6610a1bd05d71159e30c8afb1fda542d233630ae164770e652baa7ea51117211489
|
|
HEAD_REF master
|
|
PATCHES
|
|
win64-cmake.patch
|
|
output_folders-cmake.patch
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DWITH_SRV=OFF
|
|
-DWITH_WEBSOCKETS=ON
|
|
-DWITH_TLS=ON
|
|
-DWITH_TLS_PSK=ON
|
|
-DWITH_THREADING=ON
|
|
-DDOCUMENTATION=OFF
|
|
OPTIONS_RELEASE
|
|
-DENABLE_DEBUG=OFF
|
|
OPTIONS_DEBUG
|
|
-DENABLE_DEBUG=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
# Remove debug/include
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(GLOB EXE ${CURRENT_PACKAGES_DIR}/bin/*.exe)
|
|
file(GLOB DEBUG_EXE ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
|
|
file(REMOVE ${EXE})
|
|
file(REMOVE ${DEBUG_EXE})
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/mosquitto RENAME copyright)
|
|
|
|
# Copy pdb
|
|
vcpkg_copy_pdbs()
|