2022-11-01 09:02:52 +09:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2023-03-29 05:43:30 +09:00
|
|
|
REPO thorvg/thorvg
|
2023-11-03 01:48:21 +08:00
|
|
|
REF "v${VERSION}"
|
2024-11-16 08:14:48 +09:00
|
|
|
SHA512 29e6bae24e244ff62569363b5fce894a8b23775d40487b05dde96fa184fe37c1c70c0b28275467103f3bf10362be5b105b1fdc89ece6d8f840171fedd3b7e6ac
|
2022-11-01 09:02:52 +09:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
2024-03-11 22:09:15 +01:00
|
|
|
-Dengines=['sw']
|
2022-11-01 09:02:52 +09:00
|
|
|
-Dloaders=all
|
2024-04-11 02:03:55 +09:00
|
|
|
-Dsavers=all
|
2024-04-25 03:31:40 +09:00
|
|
|
-Dsimd=false # The reason for setting 'Dsimd=false' was that the creator said a false setting was necessary
|
2022-11-01 09:02:52 +09:00
|
|
|
-Dbindings=capi
|
|
|
|
-Dtests=false
|
|
|
|
-Dexamples=false
|
2023-11-03 01:48:21 +08:00
|
|
|
-Dstrip=false
|
2024-07-24 08:58:12 +08:00
|
|
|
-Dextra=['']
|
2022-11-01 09:02:52 +09:00
|
|
|
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)
|
2024-01-18 04:51:42 +09:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES svg2tvg svg2png lottie2gif AUTO_CLEAN)
|
2022-11-01 09:02:52 +09:00
|
|
|
endif()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2023-11-03 01:48:21 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2022-11-01 09:02:52 +09:00
|
|
|
|
2023-11-03 01:48:21 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|