| #!/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="../skia" | |
| [ -z "$WEBTRY_CACHE_DIR" ] && WEBTRY_CACHE_DIR="../cache" | |
| pwd | |
| cp $WEBTRY_CACHE_DIR/$1.gyp $SKIA_ROOT/gyp | |
| (cd $SKIA_ROOT ; ./gyp_skia gyp/$1.gyp gyp/most.gyp -Dskia_mesa=1 -Dskia_no_fontconfig=1) |