Index: experimental/webtry/scripts/fiddle_gyp |
diff --git a/experimental/webtry/scripts/fiddle_gyp b/experimental/webtry/scripts/fiddle_gyp |
new file mode 100755 |
index 0000000000000000000000000000000000000000..93f9943365eab1ab486d4ee1d541bd13a17b53f5 |
--- /dev/null |
+++ b/experimental/webtry/scripts/fiddle_gyp |
@@ -0,0 +1,14 @@ |
+#!/bin/bash |
+ |
+# fiddle_gyp will copy the fiddle-specific gyp file from the cache |
+# into the local skia tree, and generate the necessary ninja build |
+# files. |
+# |
+# Because gyp is really picky about directory structures, this is |
+# necessary to avoid re-building the entire skia library every time. |
+ |
+[ -z "$SKIA_ROOT" ] && SKIA_ROOT="../../../" |
+[ -z "$WEBTRY_CACHE_DIR" ] && WEBTRY_CACHE_DIR="../../../../cache" |
+ |
+cp $WEBTRY_CACHE_DIR/$1.gyp $SKIA_ROOT/gyp |
+(cd $SKIA_ROOT ; ./gyp_skia gyp/$1.gyp gyp/most.gyp -D skia_gpu=0) |