[thorvg] Add usage and update version (#34839)

* add feature

* update version

* update version

* fix feature

* update version

* fix feature

* update version

* update to 0.11.3

* update version

* update

* fix patch

* update version

* delete patch

* update version
This commit is contained in:
jim wang 2023-11-03 01:48:21 +08:00 committed by GitHub
parent 521995e652
commit a0dcd70862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 19 deletions

View File

@ -1,11 +1,9 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO thorvg/thorvg
REF v0.11.1
SHA512 388c3d8bd5099c1e35911dc75ffa6aafc6ea9f1219845ea29dbef91db8c75b2e22b091df4340acc2b44d948cb18fcf8f3a511045ce6ff959a078b350c9a13756
REF "v${VERSION}"
SHA512 cc73f7e01755141a245eecd1dc8fa6754e21b342e3734f1200e859c2360474fc9931a934eb49968c65b15c537812b81fa1f3f82ac12f9e00e3959748cf1e286f
HEAD_REF master
PATCHES
windows-build-option.patch
)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
@ -30,6 +28,7 @@ vcpkg_configure_meson(
-Dbindings=capi
-Dtests=false
-Dexamples=false
-Dstrip=false
OPTIONS_DEBUG
-Dlog=true
-Dbindir=${CURRENT_PACKAGES_DIR}/debug/bin
@ -44,5 +43,6 @@ if ("tools" IN_LIST FEATURES)
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

5
ports/thorvg/usage Normal file
View File

@ -0,0 +1,5 @@
The package thorvg can be imported via CMake FindPkgConfig module:
find_package(PkgConfig)
pkg_check_modules(thorvg REQUIRED IMPORTED_TARGET thorvg)
target_link_libraries(main PRIVATE PkgConfig::thorvg)

View File

@ -1,6 +1,6 @@
{
"name": "thorvg",
"version": "0.11.1",
"version": "0.11.3",
"description": "ThorVG is a platform-independent portable library for drawing vector-based scenes and animations",
"homepage": "https://www.thorvg.org",
"license": "MIT",

View File

@ -1,12 +0,0 @@
diff --git a/meson.build b/meson.build
index 363b8c3b..a3cc862d 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
project('thorvg',
'cpp',
- default_options : ['buildtype=debugoptimized', 'b_sanitize=none', 'werror=false', 'optimization=s', 'cpp_std=c++14', 'strip=true'],
+ default_options : ['buildtype=debugoptimized', 'b_sanitize=none', 'werror=false', 'optimization=s', 'cpp_std=c++14'],
version : '0.11.1',
license : 'MIT')

View File

@ -8329,7 +8329,7 @@
"port-version": 0
},
"thorvg": {
"baseline": "0.11.1",
"baseline": "0.11.3",
"port-version": 0
},
"threadpool": {

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d1d0212fb939be388b501f845991c03a56213ef8",
"version": "0.11.3",
"port-version": 0
},
{
"git-tree": "46f0b52581895d5c9deeaa582387fcc32c25fa15",
"version": "0.11.1",