2019-05-31 18:21:20 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO martinmoene/byte-lite
|
2021-10-22 14:46:24 +08:00
|
|
|
REF v0.3.0
|
|
|
|
SHA512 a49c7cf820db2bcf63f231324bca72642161fcaa4ecd9e4b18aa752902f393a3983014feae824fa4f5dea0e7182eadded1a9a83c469fa4039d4d17b3c814b2ef
|
2019-05-31 18:21:20 +08:00
|
|
|
)
|
|
|
|
|
2021-10-22 14:46:24 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-05-31 18:21:20 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBYTE_LITE_OPT_BUILD_TESTS=OFF
|
|
|
|
-DBYTE_LITE_OPT_BUILD_EXAMPLES=OFF
|
|
|
|
)
|
|
|
|
|
2021-10-22 14:46:24 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-05-31 18:21:20 +08:00
|
|
|
|
2021-10-22 14:46:24 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2019-05-31 18:21:20 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2021-10-22 14:46:24 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
2019-05-31 18:21:20 +08:00
|
|
|
)
|
|
|
|
|
2021-10-22 14:46:24 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|