2019-10-08 01:35:13 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO team-charls/charls
|
2021-01-28 06:25:19 +08:00
|
|
|
REF 0bafe4ecdc591f633303ad0d32f3f6c38d099802 #v2.2.0
|
|
|
|
SHA512 56acb0085a4f653660166c11982934d7f8c8836db63339aaca700aabade2bf7cff8cba77f9f04a68bbc119b5b15800bf01ffb10628703fb2188f6e654d0e5f22
|
2019-10-08 01:35:13 +08:00
|
|
|
HEAD_REF master
|
2016-12-07 19:30:12 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-08-01 04:01:02 +08:00
|
|
|
PREFER_NINJA
|
2016-12-07 19:30:12 +08:00
|
|
|
OPTIONS
|
2020-01-03 05:30:27 +08:00
|
|
|
-DCHARLS_BUILD_TESTS=OFF
|
|
|
|
-DCHARLS_BUILD_SAMPLES=OFF
|
2021-01-28 06:25:19 +08:00
|
|
|
-DCHARLS_BUILD_FUZZ_TEST=OFF
|
2016-12-07 19:30:12 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2021-01-28 06:25:19 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/charls)
|
2016-12-07 19:30:12 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
2020-01-03 05:30:27 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|