2019-07-07 05:44:54 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2021-09-28 12:06:58 +08:00
|
|
|
REPO CppMicroServices/CppMicroservices
|
2023-09-23 07:03:14 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 4743846a8ba45e6bd320c93bb3bd443b5dac16ea0bbf55bda6212e9200a40ee29031fd74c6141de4c6b5ef9ad3e70789d13fda25b40638547782d386a12dd7e2
|
2019-07-07 05:44:54 +08:00
|
|
|
HEAD_REF development
|
2020-02-05 06:46:24 +08:00
|
|
|
PATCHES
|
|
|
|
werror.patch
|
2023-09-23 07:03:14 +08:00
|
|
|
fix_strnicmp.patch
|
2023-10-10 06:37:03 +08:00
|
|
|
remove-wx.patch
|
2019-07-07 05:44:54 +08:00
|
|
|
)
|
|
|
|
|
2023-09-23 07:03:14 +08:00
|
|
|
#nowide download
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH NOWIDE_SOURCE_PATH
|
|
|
|
REPO boostorg/nowide
|
|
|
|
REF 02f40f0b5f5686627fcddae93ff88ca399db4766
|
|
|
|
SHA512 e68e0704896726c7a94b8ace0e03c5206b4c7acd23a6b05f6fb2660abe30611ac6913cf5fab7b57eaff1990a7c28aeee8c9f526b60f7094c0c201f90b715d6c6
|
|
|
|
HEAD_REF develop
|
|
|
|
)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/third_party/boost/nowide")
|
|
|
|
file(RENAME "${NOWIDE_SOURCE_PATH}" "${SOURCE_PATH}/third_party/boost/nowide")
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-09-28 12:06:58 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-07-07 05:44:54 +08:00
|
|
|
OPTIONS
|
|
|
|
-DTOOLS_INSTALL_DIR:STRING=tools/cppmicroservices
|
|
|
|
-DAUXILIARY_INSTALL_DIR:STRING=share/cppmicroservices
|
2020-02-05 06:46:24 +08:00
|
|
|
-DUS_USE_SYSTEM_GTEST=TRUE
|
2019-07-07 05:44:54 +08:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-07-07 05:44:54 +08:00
|
|
|
|
2021-09-28 12:06:58 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-07-07 05:44:54 +08:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2019-07-07 05:44:54 +08:00
|
|
|
|
2020-02-05 06:46:24 +08:00
|
|
|
# Handle copyright
|
2023-10-10 06:37:03 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2020-02-05 06:46:24 +08:00
|
|
|
|
2019-07-07 05:44:54 +08:00
|
|
|
# CppMicroServices uses a custom resource compiler to compile resources
|
|
|
|
# the zipped resources are then appended to the target which cause the linker to crash
|
|
|
|
# when compiling a static library
|
|
|
|
if(NOT BUILD_SHARED_LIBS)
|
|
|
|
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
2020-02-05 06:46:24 +08:00
|
|
|
endif()
|