define shader builds as separate targets
This commit is contained in:
70
llmr.gyp
70
llmr.gyp
@@ -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")',
|
||||
|
||||
Reference in New Issue
Block a user