2023-06-01 03:22:07 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2019-05-24 12:54:24 +08:00
|
|
|
|
2018-01-04 12:02:59 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO CaptainCrowbar/unicorn-lib
|
2023-06-01 03:22:07 +08:00
|
|
|
REF 44e975ffc8dcd8dedbe01a8cbe7812e351f3f74f # 2021-10-28
|
2022-01-28 01:02:06 +08:00
|
|
|
SHA512 b22264420174c950ca8025e861366118d79a53edce9297d84af9511e255af5971c3719f0b464f4a4886848edea7c2ba4ae32ce9abab135628d64adbde5fa7b0d
|
2018-01-04 12:02:59 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-06-01 03:22:07 +08:00
|
|
|
file(COPY "${CURRENT_PORT_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
|
|
|
|
vcpkg_find_acquire_program(PKGCONFIG)
|
2018-01-04 12:02:59 +08:00
|
|
|
|
2022-01-28 01:02:06 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-06-01 03:22:07 +08:00
|
|
|
OPTIONS
|
|
|
|
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
|
2018-02-26 03:37:23 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DUNICORN_LIB_SKIP_HEADERS=ON
|
2018-01-04 12:02:59 +08:00
|
|
|
)
|
|
|
|
|
2022-01-28 01:02:06 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-01-04 12:02:59 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-01-28 01:02:06 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|