summaryrefslogtreecommitdiff
path: root/mapboxgl.gyp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-08-08 18:25:45 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-08-08 18:25:45 +0200
commit4657e6e02314a0f3cfa545b37376a4cedb14484c (patch)
tree0b837eddef4a92fcd85c2e48df510c8a51e7b78f /mapboxgl.gyp
parenta045d9c9d4e7040b699f1fbab88893440969ffe9 (diff)
downloadqtlocation-mapboxgl-4657e6e02314a0f3cfa545b37376a4cedb14484c.tar.gz
use a file source object to abstract loading of resources
Diffstat (limited to 'mapboxgl.gyp')
-rw-r--r--mapboxgl.gyp33
1 files changed, 18 insertions, 15 deletions
diff --git a/mapboxgl.gyp b/mapboxgl.gyp
index 6585dca3bc..046a5d40ad 100644
--- a/mapboxgl.gyp
+++ b/mapboxgl.gyp
@@ -34,37 +34,42 @@
}
},
{
- 'target_name': 'build_stylesheet',
+ 'target_name': 'bundle_styles',
'type': 'none',
'hard_dependency': 1,
'actions': [
{
- 'action_name': 'Build Stylesheet',
+ 'action_name': 'Touch Stylesheet Directory',
'inputs': [
- 'bin/style.js',
+ 'styles',
],
- 'outputs': [
- '<(SHARED_INTERMEDIATE_DIR)/bin/style.min.js'
- ],
- 'action': ['<@(node)', 'bin/build-style.js', '<@(_inputs)', '<(SHARED_INTERMEDIATE_DIR)']
+ 'outputs': [],
+ 'action': ['touch', 'styles'], # required for xcode http://openradar.appspot.com/7232149
}
],
'direct_dependent_settings': {
- 'sources': [
- '<(SHARED_INTERMEDIATE_DIR)/bin/style.min.js'
+ 'mac_bundle_resources': [
+ 'styles',
],
}
},
{
- 'target_name': 'copy_default_stylesheet',
+ 'target_name': 'copy_styles',
'type': 'none',
'hard_dependency': 1,
- 'dependencies': [
- 'build_stylesheet'
+ 'actions': [
+ {
+ 'action_name': 'Touch Stylesheet Directory',
+ 'inputs': [
+ 'styles',
+ ],
+ 'outputs': [],
+ 'action': ['touch', 'styles'], # required for xcode http://openradar.appspot.com/7232149
+ }
],
'copies': [
{
- 'files': [ '<(SHARED_INTERMEDIATE_DIR)/bin/style.min.js' ],
+ 'files': [ 'styles' ],
'destination': '<(PRODUCT_DIR)'
}
]
@@ -86,7 +91,6 @@
'type': 'static_library',
'hard_dependency': 1,
'dependencies': [
- 'build_stylesheet',
'shaders',
],
'sources': [
@@ -154,7 +158,6 @@
'type': 'static_library',
'hard_dependency': 1,
'dependencies': [
- 'build_stylesheet',
'shaders',
],
'sources': [