2018-05-06 07:44:32 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO pantor/inja
|
2021-02-10 06:36:26 +08:00
|
|
|
REF 15b0b7f5e33e9fb1471d35218d2f66511f1ec4b7 # v3.2.0
|
|
|
|
SHA512 3eb6c0583b8fe84269649dadc5f3651b571af773a30e4292e56f36e979a70eea2391eb226a48c5eeae70a6e3933a663c74e94128c80e5e14c153dd6fc37c45b8
|
2018-05-06 07:44:32 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2019-07-25 01:28:05 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DINJA_USE_EMBEDDED_JSON=OFF
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DBUILD_BENCHMARK=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/inja)
|
2018-05-06 07:44:32 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2019-07-25 01:28:05 +08:00
|
|
|
|
|
|
|
# Inja is a header-only library
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
# Don't need built-in nlohmann-json as this package depends on nlohmann-json
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/inja/json")
|
|
|
|
|
2020-09-19 08:17:21 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|