diff options
Diffstat (limited to 'mapboxgl.gyp')
-rw-r--r-- | mapboxgl.gyp | 40 |
1 files changed, 37 insertions, 3 deletions
diff --git a/mapboxgl.gyp b/mapboxgl.gyp index aa8249a941..5af90fbc97 100644 --- a/mapboxgl.gyp +++ b/mapboxgl.gyp @@ -8,6 +8,9 @@ 'target_name': 'shaders', 'type': 'none', 'hard_dependency': 1, + 'dependencies': [ + 'npm_install' + ], 'actions': [ { 'action_name': 'Build Shaders', @@ -34,6 +37,23 @@ } }, { + 'target_name': 'npm_install', + 'type': 'none', + 'hard_dependency': 1, + 'actions': [ + { + 'action_name': 'npm install', + 'inputs': [ + 'bin/package.json', + ], + 'outputs': [ + 'bin/node_modules', + ], + 'action': ['./scripts/npm_install.sh'] + } + ], + }, + { 'target_name': 'touch_styles', 'type': 'none', 'hard_dependency': 1, @@ -66,6 +86,20 @@ }], }, { + 'target_name': 'copy_fixtures', + 'type': 'none', + 'hard_dependency': 1, + 'dependencies': [ + 'bundle_styles' + ], + 'copies': [ + { + 'files': [ 'styles' ], + 'destination': 'test/fixtures/style_parser' + } + ] + }, + { 'target_name': 'copy_certificate_bundle', 'type': 'none', 'hard_dependency': 1, @@ -90,7 +124,7 @@ '<!@(find include -name "*.hpp")', '<!@(find include -name "*.h")', '<!@(find src -name "*.glsl")', - 'bin/style.js' + 'bin/style.json' ], 'xcode_settings': { 'SDKROOT': 'macosx', @@ -157,7 +191,7 @@ '<!@(find include -name "*.hpp")', '<!@(find include -name "*.h")', '<!@(find src -name "*.glsl")', - 'bin/style.js' + 'bin/style.json' ], 'xcode_settings': { 'SDKROOT': 'iphoneos', @@ -213,4 +247,4 @@ } } ] -}
\ No newline at end of file +} |