2022-11-01 08:02:52 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2023-03-29 04:43:30 +08:00
|
|
|
REPO thorvg/thorvg
|
2023-08-17 03:23:42 +08:00
|
|
|
REF v0.10.1
|
|
|
|
SHA512 8a105f4d854829995799016bb2837ec3c80da1cca0bc1833069a04928d6104677568d1e80fac02a4aa86d1b79b837586366fa28e2d21d43211f31bbb0e79399c
|
2022-11-01 08:02:52 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
install-tools.patch
|
2023-08-04 21:51:05 +08:00
|
|
|
windows-build-option.patch
|
2022-11-01 08:02:52 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
list(APPEND BUILD_OPTIONS -Dstatic=true)
|
|
|
|
else()
|
|
|
|
list(APPEND BUILD_OPTIONS -Dstatic=false)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if ("tools" IN_LIST FEATURES)
|
|
|
|
list(APPEND BUILD_OPTIONS -Dtools=all)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_configure_meson(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
${BUILD_OPTIONS}
|
|
|
|
# see ${SOURCE_PATH}/meson_options.txt
|
|
|
|
-Dengines=sw
|
|
|
|
-Dloaders=all
|
|
|
|
-Dsavers=tvg
|
|
|
|
-Dvector=true
|
|
|
|
-Dbindings=capi
|
|
|
|
-Dtests=false
|
|
|
|
-Dexamples=false
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-Dlog=true
|
|
|
|
-Dbindir=${CURRENT_PACKAGES_DIR}/debug/bin
|
|
|
|
OPTIONS_RELEASE
|
|
|
|
-Dbindir=${CURRENT_PACKAGES_DIR}/bin
|
|
|
|
)
|
|
|
|
vcpkg_install_meson()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
if ("tools" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES svg2tvg svg2png AUTO_CLEAN)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|