mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 10:11:17 +08:00
ef08720ac2
* [thorvg] create a new port * [thorvg] update baseline * [thorvg] fix windows install * [thorvg] disable arm-uwp * [thorvg] use DEBUG/RELEASE options for bindir * Update ports/thorvg/portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * [thorvg] update git-tree SHA Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
52 lines
1.4 KiB
CMake
52 lines
1.4 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Samsung/thorvg
|
|
REF v0.8.2
|
|
SHA512 f59e227f776fed2e0489fe33ff64008a728adf1795c58107f17ed92caa809f6f5fd0604fde91d0c1735ea82b0b9e91da36d325e492e4a9802647469b06ebafd2
|
|
HEAD_REF master
|
|
PATCHES
|
|
install-tools.patch
|
|
)
|
|
|
|
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)
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
message(FATAL_ERROR "This feature doesn't support Windows platform")
|
|
endif()
|
|
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)
|