2018-01-04 11:34:44 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
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
|
2019-10-22 08:19:35 +08:00
|
|
|
REF 1.16.0
|
|
|
|
SHA512 ad53c3008f9d934b53350927c68fb91391bf2e973f05a446e4819fe424a9334f6d9f06bc14c50d5c310c83d3ba8482a920d640c9bce21a8483d7195c798bbe34
|
2018-01-04 11:34:44 +08:00
|
|
|
HEAD_REF master
|
2019-10-08 19:43:23 +08:00
|
|
|
PATCHES add-project-declaration.patch
|
2018-01-04 11:34:44 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_build_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/yoga DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN "*.h")
|
2019-10-08 19:43:23 +08:00
|
|
|
|
|
|
|
set(YOGA_LIB_PREFFIX )
|
|
|
|
if (NOT VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
set(YOGA_LIB_PREFFIX lib)
|
|
|
|
endif()
|
2018-03-20 04:38:12 +08:00
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
2019-10-08 19:43:23 +08:00
|
|
|
set(YOGA_BINARY_PATH )
|
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
set(YOGA_BINARY_PATH Release/)
|
|
|
|
endif()
|
|
|
|
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/${YOGA_BINARY_PATH}${YOGA_LIB_PREFFIX}yogacore${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
2018-03-20 04:38:12 +08:00
|
|
|
endif()
|
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
2019-10-08 19:43:23 +08:00
|
|
|
set(YOGA_BINARY_PATH )
|
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
set(YOGA_BINARY_PATH Debug/)
|
|
|
|
endif()
|
|
|
|
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/${YOGA_BINARY_PATH}${YOGA_LIB_PREFFIX}yogacore${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
2018-03-20 04:38:12 +08:00
|
|
|
endif()
|
2018-01-04 11:34:44 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2019-10-22 08:19:35 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|