summaryrefslogtreecommitdiff
path: root/repo/skia/skia.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/skia/skia.xibuild')
-rw-r--r--repo/skia/skia.xibuild28
1 files changed, 28 insertions, 0 deletions
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
+}