Add a step to the gyp projects which can run a python script after

a build of ANGLE is complete.

We can use this hook to do things like copy DLLs to user-configured
output folders.

Signed-off-by: Shannon Woods
Signed-off-by: Geoff Lang
ANGLEBUG=503

Change-Id: Iecf86b8c211b2a9933894c631c32107c8fda096a
This commit is contained in:
Jamie Madill 2013-11-13 20:17:02 -05:00
Родитель 03847b6d50
Коммит 91db708c4e
2 изменённых файлов: 33 добавлений и 0 удалений

2
.gitignore поставляемый
Просмотреть файл

@ -22,3 +22,5 @@ debug.txt
third_party third_party
tests/third_party tests/third_party
out out
lib/*

Просмотреть файл

@ -6,6 +6,7 @@
'variables': 'variables':
{ {
'angle_code': 1, 'angle_code': 1,
'angle_post_build_script%': 0,
}, },
'includes': 'includes':
[ [
@ -13,6 +14,36 @@
'libGLESv2.gypi', 'libGLESv2.gypi',
'libEGL.gypi' 'libEGL.gypi'
], ],
'conditions':
[
[
'angle_post_build_script!=0 and OS=="win"',
{
'target_defaults':
{
'msvs_cygwin_shell': 0,
},
'targets':
[
{
'target_name': 'post_build',
'type': 'none',
'dependencies': [ 'libGLESv2', 'libEGL' ],
'actions':
[
{
'action_name': 'ANGLE Post-Build Script',
'message': 'Running <(angle_post_build_script)...',
'inputs': [ '<(angle_post_build_script)', '<!@(python <(angle_post_build_script) inputs)' ],
'outputs': [ '<!@(python <(angle_post_build_script) outputs)' ],
'action': ['python', '<(angle_post_build_script)', 'run', '<(CONFIGURATION_NAME)', '$(Platform)', '<(PRODUCT_DIR)'],
}
] #actions
}
] # targets
}
]
] # conditions
} }
# Local Variables: # Local Variables: