1 # Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
9 'angle_post_build_script%': 0,
21 'target_name': 'copy_scripts',
26 'destination': '<(SHARED_INTERMEDIATE_DIR)',
27 'files': [ 'commit_id.bat', 'copy_compiler_dll.bat', 'commit_id.py' ],
33 'target_name': 'commit_id',
35 'includes': [ '../build/common_defines.gypi', ],
36 'dependencies': [ 'copy_scripts', ],
44 'action_name': 'Generate Commit ID Header',
45 'message': 'Generating commit ID header...',
46 'msvs_cygwin_shell': 0,
47 'inputs': [ '<(SHARED_INTERMEDIATE_DIR)/commit_id.bat', '<(angle_path)/.git/index' ],
48 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/commit.h' ],
49 'action': [ '<(SHARED_INTERMEDIATE_DIR)/commit_id.bat', '<(SHARED_INTERMEDIATE_DIR)' ],
57 'action_name': 'Generate Commit ID Header',
58 'message': 'Generating commit ID header...',
59 'inputs': [ '<(SHARED_INTERMEDIATE_DIR)/commit_id.py', '<(angle_path)/.git/index' ],
60 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/commit.h' ],
61 'action': [ 'python', '<(SHARED_INTERMEDIATE_DIR)/commit_id.py', '<(SHARED_INTERMEDIATE_DIR)/commit.h' ],
66 'direct_dependent_settings':
70 '<(SHARED_INTERMEDIATE_DIR)',
82 'target_name': 'copy_compiler_dll',
84 'dependencies': [ 'copy_scripts', ],
85 'includes': [ '../build/common_defines.gypi', ],
89 'action_name': 'copy_dll',
90 'message': 'Copying D3D Compiler DLL...',
91 'msvs_cygwin_shell': 0,
92 'inputs': [ 'copy_compiler_dll.bat' ],
93 'outputs': [ '<(PRODUCT_DIR)/D3DCompiler_46.dll' ],
96 "<(SHARED_INTERMEDIATE_DIR)/copy_compiler_dll.bat",
98 "<(windows_sdk_path)",
106 ['angle_post_build_script!=0 and OS=="win"',
111 'target_name': 'post_build',
113 'includes': [ '../build/common_defines.gypi', ],
114 'dependencies': [ 'libGLESv2', 'libEGL' ],
118 'action_name': 'ANGLE Post-Build Script',
119 'message': 'Running <(angle_post_build_script)...',
120 'msvs_cygwin_shell': 0,
121 'inputs': [ '<(angle_post_build_script)', '<!@(["python", "<(angle_post_build_script)", "inputs", "<(angle_path)", "<(CONFIGURATION_NAME)", "$(PlatformName)", "<(PRODUCT_DIR)"])' ],
122 'outputs': [ '<!@(python <(angle_post_build_script) outputs "<(angle_path)" "<(CONFIGURATION_NAME)" "$(PlatformName)" "<(PRODUCT_DIR)")' ],
123 'action': ['python', '<(angle_post_build_script)', 'run', '<(angle_path)', '<(CONFIGURATION_NAME)', '$(PlatformName)', '<(PRODUCT_DIR)'],