2019-03-08 16:14:06 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2018-01-04 11:34:44 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO facebook/yoga
|
2021-09-29 02:48:38 +08:00
|
|
|
REF v1.19.0
|
|
|
|
SHA512 B1CB1F23CF9B5DD2491B6883CAF8FB47E264B736C94F6AA6655E9A6F641664B4BCEEB48F74C98B955F0EE02BA2E0AE8E01539A928ABB4B81FAE13ED3B57287CA
|
2018-01-04 11:34:44 +08:00
|
|
|
HEAD_REF master
|
2022-07-06 06:52:53 +08:00
|
|
|
PATCHES
|
|
|
|
add-project-declaration.patch
|
|
|
|
Export-unofficial-yoga-config.patch
|
2018-01-04 11:34:44 +08:00
|
|
|
)
|
|
|
|
|
2022-07-06 06:52:53 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-01-04 11:34:44 +08:00
|
|
|
)
|
|
|
|
|
2022-07-06 06:52:53 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-01-04 11:34:44 +08:00
|
|
|
|
2022-07-06 06:52:53 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-yoga)
|
2019-10-08 19:43:23 +08:00
|
|
|
|
2022-07-06 06:52:53 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-01-04 11:34:44 +08:00
|
|
|
|
2022-07-06 06:52:53 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|