2017-06-01 14:25:40 -07:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
2017-09-03 14:16:09 -07:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO eclipse/paho.mqtt.c
|
2019-06-09 10:09:18 +08:00
|
|
|
REF 9f715d0862a8e16099b5837c4e53a1bf6a6a0675
|
|
|
|
SHA512 3ab5e25bfe303f51485696248e78a8a10f20c0e69b7ea6016165a97d61172336e8fbe5b9d059ae546357bace9f3adb8e2026643b61a6af82fae448a024e51d21
|
2017-09-03 14:16:09 -07:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2019-05-21 06:29:15 +00:00
|
|
|
remove_compiler_options.patch
|
|
|
|
fix-install-path.patch
|
2019-05-21 08:14:35 +00:00
|
|
|
fix-static-build.patch
|
2019-06-09 10:09:18 +08:00
|
|
|
fix-unresolvedsymbol-arm.patch
|
2017-06-01 14:25:40 -07:00
|
|
|
)
|
|
|
|
|
2019-05-21 06:29:15 +00:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" PAHO_BUILD_STATIC)
|
2017-06-01 14:25:40 -07:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2017-09-03 14:16:09 -07:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-09-20 20:00:57 -07:00
|
|
|
PREFER_NINJA
|
2018-07-04 05:23:42 +01:00
|
|
|
OPTIONS -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_STATIC=${PAHO_BUILD_STATIC} -DPAHO_ENABLE_TESTING=FALSE
|
2017-06-01 14:25:40 -07:00
|
|
|
)
|
|
|
|
|
2019-05-21 06:29:15 +00:00
|
|
|
vcpkg_install_cmake()
|
2017-09-20 20:00:57 -07:00
|
|
|
vcpkg_copy_pdbs()
|
2017-06-01 14:25:40 -07:00
|
|
|
|
2019-05-21 06:29:15 +00:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/paho-mqtt/README.md ${CURRENT_PACKAGES_DIR}/share/paho-mqtt/readme)
|
2017-09-03 14:16:09 -07:00
|
|
|
file(INSTALL ${SOURCE_PATH}/about.html DESTINATION ${CURRENT_PACKAGES_DIR}/share/paho-mqtt RENAME copyright)
|