fix gyp builds

This commit is contained in:
Konstantin Käfer
2014-08-12 12:26:00 +02:00
parent 919947e6c7
commit 367b35998d
3 changed files with 20 additions and 28 deletions

View File

@@ -27,7 +27,7 @@ build/test/Makefile: src common config.gypi test/test.gyp
test: build/test/Makefile
$(MAKE) -C build/test BUILDTYPE=Testing V=$(V) test
test/%: build/test/Makefile
test_%: build/test/Makefile
$(MAKE) -C build/test BUILDTYPE=Testing V=$(V) $*
(cd build/Testing && exec ./test_$*)

View File

@@ -34,52 +34,45 @@
}
},
{
'target_name': 'bundle_styles',
'target_name': 'touch_styles',
'type': 'none',
'hard_dependency': 1,
'actions': [
{
'action_name': 'Touch Stylesheet Directory',
'inputs': ['styles'],
'outputs': [],
'action': ['touch', 'styles'], # required for xcode http://openradar.appspot.com/7232149
'outputs': ['<(PRODUCT_DIR)/'], # need to specify a distinct directory
'action': ['touch', 'styles'],
}
],
},
{
'target_name': 'bundle_styles',
'type': 'none',
'hard_dependency': 1,
'dependencies': [ 'touch_styles' ], # required for xcode http://openradar.appspot.com/7232149
'direct_dependent_settings': {
'mac_bundle_resources': [
'styles',
],
'mac_bundle_resources': [ 'styles' ],
}
},
{
'target_name': 'copy_styles',
'type': 'none',
'hard_dependency': 1,
'actions': [
{
'action_name': 'Touch Stylesheet Directory',
'inputs': ['styles'],
'outputs': ['styles'],
'action': ['touch', 'styles'], # required for xcode http://openradar.appspot.com/7232149
}
],
'copies': [
{
'files': [ 'styles' ],
'destination': '<(PRODUCT_DIR)'
}
]
'dependencies': [ 'touch_styles' ], # required for xcode http://openradar.appspot.com/7232149
'copies': [{
'files': [ 'styles' ],
'destination': '<(PRODUCT_DIR)'
}],
},
{
'target_name': 'copy_certificate_bundle',
'type': 'none',
'hard_dependency': 1,
'copies': [
{
'files': [ 'common/ca-bundle.crt' ],
'destination': '<(PRODUCT_DIR)'
}
]
'copies': [{
'files': [ 'common/ca-bundle.crt' ],
'destination': '<(PRODUCT_DIR)'
}],
},
{
'target_name': 'mapboxgl',

View File

@@ -189,7 +189,6 @@
"dependencies": [
"../deps/gtest/gtest.gyp:gtest",
"../mapboxgl.gyp:mapboxgl",
'../mapboxgl.gyp:bundle_styles',
"link_gl",
]
},