blob: 1e8d1657bac8306a895b5d8a383406b272b4d577 [file] [log] [blame]
#!/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 -Dskia_mesa=1)