reduce duplicate in llmr.gyp

This commit is contained in:
Dane Springmeyer
2014-03-10 18:40:33 -07:00
parent 16b0f82a38
commit f9af0845a7

View File

@@ -5,18 +5,8 @@
],
'targets': [
{
'target_name': 'llmr-x86',
'product_name': 'llmr-x86',
'type': 'static_library',
'sources': [
'<!@(find src -name "*.cpp")',
'<!@(find src -name "*.c")',
'<!@(find src -name "*.h")',
'<!@(find include -name "*.hpp")',
'<!@(find include -name "*.h")',
'<!@(find src -name "*.glsl")',
'bin/style.js'
],
'target_name': 'before_build_actions',
'type':'none',
'actions': [
{
'action_name': 'Build Shaders',
@@ -51,6 +41,23 @@
'action': ['bin/build-style.js']
}
],
},
{
'target_name': 'llmr-x86',
'product_name': 'llmr-x86',
'type': 'static_library',
'dependencies': [
'before_build_actions'
],
'sources': [
'<!@(find src -name "*.cpp")',
'<!@(find src -name "*.c")',
'<!@(find src -name "*.h")',
'<!@(find include -name "*.hpp")',
'<!@(find include -name "*.h")',
'<!@(find src -name "*.glsl")',
'bin/style.js'
],
'xcode_settings': {
'SDKROOT': 'macosx',
'SUPPORTED_PLATFORMS':['macosx'],
@@ -97,6 +104,9 @@
'target_name': 'llmr-ios',
'product_name': 'llmr-ios',
'type': 'static_library',
'dependencies': [
'before_build_actions'
],
'sources': [
'<!@(find src -name "*.cpp")',
'<!@(find src -name "*.c")',
@@ -106,40 +116,6 @@
'<!@(find src -name "*.glsl")',
'bin/style.js'
],
'actions': [
{
'action_name': 'Build Shaders',
'inputs': [
'<!@(find src -name "*.glsl")'
],
'outputs': [
'include/llmr/shader/shaders.hpp',
'src/shader/shaders.cpp'
],
'action': ['bin/build-shaders.js'],
},
{
'action_name': 'Convert Style to Protobuf',
'inputs': [
'bin/style.js'
],
'outputs': [
'resources/style.pbf'
],
'action': ['bin/convert-style.js'],
},
{
'action_name': 'Update Style Resources',
'inputs': [
'resources/style.pbf'
],
'outputs': [
'include/llmr/style/resources.hpp',
'src/style/resources.cpp'
],
'action': ['bin/build-style.js']
}
],
'xcode_settings': {
'SDKROOT': 'iphoneos',
'SUPPORTED_PLATFORMS':['iphonesimulator','iphoneos',],