define shader builds as separate targets

This commit is contained in:
Konstantin Käfer
2014-03-25 13:23:04 +01:00
parent 77f58960c4
commit 48e8ca0e43

View File

@@ -5,8 +5,42 @@
],
'targets': [
{
'target_name': 'before_build_actions',
'type':'none',
'target_name': 'shaders_gl',
'type': 'none',
'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', 'gl'],
}
]
},
{
'target_name': 'shaders_gles2',
'type': 'none',
'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', 'gles2'],
}
]
},
{
'target_name': 'build_stylesheet',
'type': 'none',
'actions': [
{
'action_name': 'Build Stylesheet',
@@ -25,21 +59,9 @@
'target_name': 'llmr-x86',
'product_name': 'llmr-x86',
'type': 'static_library',
'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 gl'],
}
],
'dependencies': [
'before_build_actions'
'build_stylesheet',
'shaders_gl',
],
'sources': [
'<!@(find src -name "*.cpp")',
@@ -96,21 +118,9 @@
'target_name': 'llmr-ios',
'product_name': 'llmr-ios',
'type': 'static_library',
'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 gles2'],
}
],
'dependencies': [
'before_build_actions'
'build_stylesheet',
'shaders_gles2',
],
'sources': [
'<!@(find src -name "*.cpp")',