2021-02-11 16:02:31 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO sogou/workflow
|
2023-01-24 07:38:50 +08:00
|
|
|
REF v0.10.5-win
|
|
|
|
SHA512 4299b2c8bc545676b5437086c666a7b0955524aae758a8753719439697b3dd4d5b46c0a8eba9dba80c0daa9ee9c4188e46fd085f0d2f68f61b33fad1f903c4c2
|
2021-02-11 16:02:31 +08:00
|
|
|
HEAD_REF windows
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO sogou/workflow
|
2023-01-24 07:38:50 +08:00
|
|
|
REF v0.10.5
|
|
|
|
SHA512 696e82a1f6a7e6c339fbabb7b1f98ffe40f5f5ee7e77f4c947c0c1532817409e7a61f020c6238a32acd9eb3e06cf3e522e6d67beda32d5bbb08ea1080c20277d
|
2021-02-11 16:02:31 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2023-01-24 07:38:50 +08:00
|
|
|
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
|
|
|
set(CONFIGURE_OPTIONS "-DWORKFLOW_BUILD_STATIC_RUNTIME=ON")
|
|
|
|
else()
|
|
|
|
set(CONFIGURE_OPTIONS "-DWORKFLOW_BUILD_STATIC_RUNTIME=OFF")
|
|
|
|
endif()
|
|
|
|
|
2021-11-09 12:43:05 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-05-18 02:15:06 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-02-13 11:10:11 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2023-01-24 07:38:50 +08:00
|
|
|
OPTIONS ${CONFIGURE_OPTIONS}
|
2021-02-11 16:02:31 +08:00
|
|
|
)
|
2021-11-09 12:43:05 +08:00
|
|
|
vcpkg_cmake_install()
|
2022-05-18 02:15:06 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2021-02-11 16:02:31 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2022-05-18 02:15:06 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|