2018-05-06 01:44:32 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO pantor/inja
|
2023-01-31 09:10:38 +08:00
|
|
|
REF b2276440be8334aeba9cd5d628c2731d0f6a5809 # v3.4.0
|
|
|
|
SHA512 80f760668f72b9e0a54e1c74d169f98a99fdfffe6bacc56043681e48a4af21a2331a94ab5cb27b6e5a838d7d7fe5d8a806597bfb913f0f3aecb30755a23a4cf8
|
2018-05-06 01:44:32 +02:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2019-07-24 12:28:05 -05:00
|
|
|
|
2023-01-31 09:10:38 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
2019-07-24 12:28:05 -05:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DINJA_USE_EMBEDDED_JSON=OFF
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DBUILD_BENCHMARK=OFF
|
|
|
|
)
|
|
|
|
|
2023-01-31 09:10:38 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/inja")
|
2018-05-06 01:44:32 +02:00
|
|
|
vcpkg_copy_pdbs()
|
2019-07-24 12:28:05 -05:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2023-01-31 09:10:38 +08:00
|
|
|
|
2019-07-24 12:28:05 -05:00
|
|
|
# Don't need built-in nlohmann-json as this package depends on nlohmann-json
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/inja/json")
|
|
|
|
|
2023-01-31 09:10:38 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|