2022-05-18 02:13:39 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO wolfssl/wolfmqtt
|
2023-07-28 00:23:06 +08:00
|
|
|
REF v1.16.0
|
|
|
|
SHA512 30d28a37b26adacae589b9cfee9a2cd8697fa1e84ac867d08123dab5434bb19152adb0d94224656d2c1f01833d76bcd7ff63b63da4dbce0873b352e93b6e6b12
|
2022-05-18 02:13:39 +08:00
|
|
|
HEAD_REF master
|
2023-07-28 00:23:06 +08:00
|
|
|
PATCHES
|
|
|
|
cmake-patch.diff
|
2022-05-18 02:13:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
-DWOLFMQTT_EXAMPLES=no
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DCMAKE_C_FLAGS='-DDEBUG_MQTT'
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
|
|
|
RENAME copyright)
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/wolfmqtt)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|