2021-03-31 01:17:02 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ned14/status-code
|
2022-09-10 02:55:55 +08:00
|
|
|
REF 8d5e162c9b02169fc6c95a79c54d1213027187b7
|
|
|
|
SHA512 0af5a93a5015e070c2db8689f9a560c4a739ea40df3d7fee79f461d0274d7e79d27732cd339cb36e3af969adee0215c827b1fe63c177e8d7853c3fbe237f839f
|
2021-03-31 01:17:02 +08:00
|
|
|
HEAD_REF master
|
2022-09-03 01:40:12 +08:00
|
|
|
PATCHES
|
2021-03-31 01:17:02 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# Because status-code's deployed files are header-only, the debug build is not necessary
|
|
|
|
set(VCPKG_BUILD_TYPE release)
|
|
|
|
|
2022-09-03 01:40:12 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-03-31 01:17:02 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DPROJECT_IS_DEPENDENCY=On
|
|
|
|
)
|
|
|
|
|
2022-09-03 01:40:12 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-03-31 01:17:02 +08:00
|
|
|
|
2022-09-03 01:40:12 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/status-code)
|
2021-03-31 01:17:02 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
|
|
|
|
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2022-09-10 02:55:55 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/Licence.txt")
|