OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'conditions': [ | 7 'conditions': [ |
8 ['inside_chromium_build==0', { | 8 ['inside_chromium_build==0', { |
9 'webkit_src_dir': '../../../../..', | 9 'webkit_src_dir': '../../../../..', |
10 },{ | 10 },{ |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 'type': '<(library)', | 113 'type': '<(library)', |
114 'msvs_guid': 'DB162DE1-7D56-4C4A-8A9F-80D396CD7AA8', | 114 'msvs_guid': 'DB162DE1-7D56-4C4A-8A9F-80D396CD7AA8', |
115 'dependencies': [ | 115 'dependencies': [ |
116 '<(DEPTH)/app/app.gyp:app_base', | 116 '<(DEPTH)/app/app.gyp:app_base', |
117 '<(DEPTH)/base/base.gyp:base_i18n', | 117 '<(DEPTH)/base/base.gyp:base_i18n', |
118 ], | 118 ], |
119 'actions': [ | 119 'actions': [ |
120 { | 120 { |
121 'action_name': 'webkit_version', | 121 'action_name': 'webkit_version', |
122 'inputs': [ | 122 'inputs': [ |
123 '../build/webkit_version.py', | 123 '<(script)', |
124 '<(webkit_src_dir)/Source/WebCore/Configurations/Version.xcconfig', | 124 '<(webkit_src_dir)<(version_file)', |
| 125 '../../build/util/lastchange.py', # Used by the script. |
125 ], | 126 ], |
126 'outputs': [ | 127 'outputs': [ |
127 '<(INTERMEDIATE_DIR)/webkit_version.h', | 128 '<(INTERMEDIATE_DIR)/webkit_version.h', |
128 ], | 129 ], |
129 'action': ['python', '<@(_inputs)', '<(INTERMEDIATE_DIR)'], | 130 'action': ['python', '<(script)', '<(webkit_src_dir)', |
| 131 '<(version_file)', '<(INTERMEDIATE_DIR)'], |
| 132 'variables': { |
| 133 'script': '../build/webkit_version.py', |
| 134 # version_file is a relative path from |webkit_src_dir| to |
| 135 # the version file. But gyp will eat the variable unless |
| 136 # it looks like an absolute path, so write it like one and |
| 137 # then use it carefully above. |
| 138 'version_file': '/Source/WebCore/Configurations/Version.xcconfig', |
| 139 }, |
130 }, | 140 }, |
131 ], | 141 ], |
132 'include_dirs': [ | 142 'include_dirs': [ |
133 '<(INTERMEDIATE_DIR)', | 143 '<(INTERMEDIATE_DIR)', |
134 ], | 144 ], |
135 'sources': [ | 145 'sources': [ |
136 'user_agent.cc', | 146 'user_agent.cc', |
137 'user_agent.h', | 147 'user_agent.h', |
138 ], | 148 ], |
139 # Dependents may rely on files generated by this target or one of its | 149 # Dependents may rely on files generated by this target or one of its |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 }], | 534 }], |
525 ['inside_chromium_build==0', { | 535 ['inside_chromium_build==0', { |
526 'dependencies': [ | 536 'dependencies': [ |
527 '<(DEPTH)/webkit/support/setup_third_party.gyp:third_party_headers', | 537 '<(DEPTH)/webkit/support/setup_third_party.gyp:third_party_headers', |
528 ], | 538 ], |
529 }], | 539 }], |
530 ], | 540 ], |
531 }, | 541 }, |
532 ], | 542 ], |
533 } | 543 } |
OLD | NEW |