diff options
Diffstat (limited to 'repo/skia')
-rw-r--r-- | repo/skia/skia-static.xibuild | 15 | ||||
-rw-r--r-- | repo/skia/skia.xibuild | 28 |
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 +} |