Hash :
89a13e9e
Author :
Date :
2013-12-03T10:56:58
Fix the compiler copy script in the public projects. This patch silences the copy message, fixes the public projects, and makes the copy step a separate target, so it won't run on every incremental build. Change-Id: Ie6df39737ad466b6431865b3ca19f66d16437ba9 Reviewed-on: https://chromium-review.googlesource.com/178432 Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org> Tested-by: Geoff Lang <geofflang@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
# Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables':
{
'angle_code': 1,
'angle_post_build_script%': 0,
'angle_relative_src_path%': '',
},
'includes':
[
'compiler.gypi',
'libGLESv2.gypi',
'libEGL.gypi'
],
'conditions':
[
[
'OS=="win"',
{
'target_defaults':
{
'msvs_cygwin_shell': 0,
},
'targets':
[
{
'target_name': 'commit_id',
'type': 'none',
'actions':
[
{
'action_name': 'Generate Commit ID Header',
'message': 'Generating commit ID header...',
'inputs': [ 'commit_id.bat' ],
'outputs': ['common/commit.h'],
'action': ['<(angle_relative_src_path)commit_id.bat'],
}
] #actions
},
{
'target_name': 'copy_compiler_dll',
'type': 'none',
'sources': [ 'copy_compiler_dll.bat' ],
'actions':
[
{
'msvs_cygwin_shell': 0,
'action_name': 'copy_dll',
'message': 'Copying D3D Compiler DLL...',
'inputs': [ 'copy_compiler_dll.bat' ],
'outputs': [ '<(PRODUCT_DIR)/D3DCompiler_46.dll' ],
'action': ["<(angle_relative_src_path)copy_compiler_dll.bat", "$(PlatformName)", "<(windows_sdk_path)", "<(PRODUCT_DIR)" ],
}
] #actions
},
] # targets
},
],
[
'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", "<(CONFIGURATION_NAME)", "$(PlatformName)", "<(PRODUCT_DIR)"])' ],
'outputs': [ '<!@(python <(angle_post_build_script) outputs "<(CONFIGURATION_NAME)" "$(PlatformName)" "<(PRODUCT_DIR)")' ],
'action': ['python', '<(angle_post_build_script)', 'run', '<(CONFIGURATION_NAME)', '$(PlatformName)', '<(PRODUCT_DIR)'],
}
] #actions
}
] # targets
}
]
] # conditions
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:
# Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.