2020-11-04 12:51:18 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO commschamp/commsdsl
|
2022-06-18 06:03:58 +08:00
|
|
|
REF v4.0
|
|
|
|
SHA512 420fd0dd30aa5530692f40e15e3a640d1ef766c642e91edc07ed182e2125043c6ade1d245ef4d549a606c372c8c5f53fea7faa14b230ff485cf24d4f13ecfbee
|
2020-11-04 12:51:18 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-06-18 06:03:58 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-08-31 09:25:10 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-11-04 12:51:18 +08:00
|
|
|
OPTIONS
|
2021-08-31 09:25:10 +08:00
|
|
|
-DCOMMSDSL_BUILD_APPS=ON
|
|
|
|
-DCOMMSDSL_INSTALL_APPS=ON
|
2022-06-18 06:03:58 +08:00
|
|
|
-DCOMMSDSL_INSTALL_LIBRARY=ON
|
|
|
|
-DCOMMSDSL_INSTALL_LIBRARY_HEADERS=ON
|
2021-08-31 09:25:10 +08:00
|
|
|
-DCOMMSDSL_BUILD_UNIT_TESTS=OFF
|
|
|
|
-DCOMMSDSL_WARN_AS_ERR=OFF
|
2022-06-18 06:03:58 +08:00
|
|
|
-DCOMMSDSL_WIN_ALLOW_LIBXML_BUILD=OFF
|
|
|
|
-DBUILD_TESTING=OFF
|
2020-11-04 12:51:18 +08:00
|
|
|
)
|
2022-06-18 06:03:58 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-11-04 12:51:18 +08:00
|
|
|
|
|
|
|
vcpkg_copy_tools(
|
2022-06-18 06:03:58 +08:00
|
|
|
TOOL_NAMES commsdsl2comms commsdsl2test commsdsl2tools_qt
|
2020-11-04 12:51:18 +08:00
|
|
|
AUTO_CLEAN
|
|
|
|
)
|
|
|
|
|
2022-06-18 06:03:58 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME LibCommsdsl CONFIG_PATH lib/LibCommsdsl/cmake)
|
2020-12-18 19:04:07 +08:00
|
|
|
# after fixing the following dirs are empty
|
2020-11-04 12:51:18 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-12-18 19:04:07 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/LibCommsdsl")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/LibCommsdsl")
|
2020-11-04 12:51:18 +08:00
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
endif()
|
|
|
|
# Handle copyright
|
2021-08-31 09:25:10 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|