summaryrefslogtreecommitdiff
path: root/repo/skia
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-07-15 00:52:21 +0100
committerdavidovski <david@davidovski.xyz>2022-07-15 00:52:21 +0100
commit9a26d3fdc7fca2df6f824b56034ab9a823e898d8 (patch)
tree278bbf05c72536a30e701eebbd3546ba137543e7 /repo/skia
parentf6332a43c35387c4a2dea1746be5fd092890ae0e (diff)
added python deps for libvirt
Diffstat (limited to 'repo/skia')
-rw-r--r--repo/skia/skia-static.xibuild15
-rw-r--r--repo/skia/skia.xibuild28
2 files changed, 43 insertions, 0 deletions
diff --git a/repo/skia/skia-static.xibuild b/repo/skia/skia-static.xibuild
new file mode 100644
index 0000000..b14418f
--- /dev/null
+++ b/repo/skia/skia-static.xibuild
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+DESC="$DESC - static libraries"
+
+build () {
+ gn gen out/Static --args="$common_args is_official_build=true"
+
+ ninja -C out/Static
+}
+
+package () {
+ for lib in out/Static/*.a; do
+ install -Dm644 $lib $PKG_DEST/usr/lib/
+ done
+}
diff --git a/repo/skia/skia.xibuild b/repo/skia/skia.xibuild
new file mode 100644
index 0000000..55bccb3
--- /dev/null
+++ b/repo/skia/skia.xibuild
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+NAME="skia"
+DESC="Skia is a complete 2D graphic library for drawing Text, Geometries, and Images."
+
+MAKEDEPS="gn "
+
+SOURCE="https://skia.googlesource.com/skia.git"
+
+prepare () {
+ python tools/git-sync-deps
+ export common_args="
+ skia_use_dng_sdk=false
+ "
+}
+
+build () {
+ # dng sdk fails to build
+ gn gen out/Shared --args="$common_args is_official_build=true is_component_build=true"
+
+ ninja -C out/Shared
+}
+
+package () {
+ for lib in out/Shared/*.so; do
+ install -Dm644 $lib $PKG_DEST/usr/lib/
+ done
+}