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,
10 'angle_gen_path': '<(SHARED_INTERMEDIATE_DIR)/angle',
11 'angle_id_script_base': 'commit_id.py',
12 'angle_id_script': '<(angle_gen_path)/<(angle_id_script_base)',
13 'angle_id_header_base': 'commit.h',
14 'angle_id_header': '<(angle_gen_path)/id/<(angle_id_header_base)',
15 'angle_use_commit_id%': '<!(python <(angle_id_script_base) check ..)',
27 'target_name': 'copy_scripts',
32 'destination': '<(angle_gen_path)',
33 'files': [ 'copy_compiler_dll.bat', '<(angle_id_script_base)' ],
40 ['angle_use_commit_id!=0',
45 'target_name': 'commit_id',
47 'includes': [ '../build/common_defines.gypi', ],
48 'dependencies': [ 'copy_scripts', ],
52 'action_name': 'Generate ANGLE Commit ID Header',
53 'message': 'Generating ANGLE Commit ID',
54 # reference the git index as an input, so we rebuild on changes to the index
55 'inputs': [ '<(angle_id_script)', '<(angle_path)/.git/index' ],
56 'outputs': [ '<(angle_id_header)' ],
57 'msvs_cygwin_shell': 0,
60 'python', '<(angle_id_script)', 'gen', '<(angle_path)', '<(angle_id_header)'
64 'direct_dependent_settings':
74 { # angle_use_commit_id==0
78 'target_name': 'commit_id',
83 'destination': '<(angle_gen_path)/id',
84 'files': [ '<(angle_id_header_base)' ]
87 'direct_dependent_settings':
102 'target_name': 'copy_compiler_dll',
104 'dependencies': [ 'copy_scripts', ],
105 'includes': [ '../build/common_defines.gypi', ],
109 'action_name': 'copy_dll',
110 'message': 'Copying D3D Compiler DLL...',
111 'msvs_cygwin_shell': 0,
112 'inputs': [ 'copy_compiler_dll.bat' ],
113 'outputs': [ '<(PRODUCT_DIR)/D3DCompiler_46.dll' ],
116 "<(angle_gen_path)/copy_compiler_dll.bat",
118 "<(windows_sdk_path)",
126 ['angle_post_build_script!=0 and OS=="win"',
131 'target_name': 'post_build',
133 'includes': [ '../build/common_defines.gypi', ],
134 'dependencies': [ 'libGLESv2', 'libEGL' ],
138 'action_name': 'ANGLE Post-Build Script',
139 'message': 'Running <(angle_post_build_script)...',
140 'msvs_cygwin_shell': 0,
141 'inputs': [ '<(angle_post_build_script)', '<!@(["python", "<(angle_post_build_script)", "inputs", "<(angle_path)", "<(CONFIGURATION_NAME)", "$(PlatformName)", "<(PRODUCT_DIR)"])' ],
142 'outputs': [ '<!@(python <(angle_post_build_script) outputs "<(angle_path)" "<(CONFIGURATION_NAME)" "$(PlatformName)" "<(PRODUCT_DIR)")' ],
143 'action': ['python', '<(angle_post_build_script)', 'run', '<(angle_path)', '<(CONFIGURATION_NAME)', '$(PlatformName)', '<(PRODUCT_DIR)'],