OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 # TODO: remove this helper when we have loops in GYP |
| 8 'apply_locales_cmd': ['python', '../chrome/tools/build/apply_locales.py',], |
7 'chromium_code': 1, | 9 'chromium_code': 1, |
8 }, | 10 }, |
9 'target_defaults': { | 11 'target_defaults': { |
10 'sources/': [ | 12 'sources/': [ |
11 ['exclude', '/(cocoa|gtk|win)/'], | 13 ['exclude', '/(cocoa|gtk|win)/'], |
12 ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|x)\\.(cc|mm?)$'], | 14 ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|x)\\.(cc|mm?)$'], |
13 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], | 15 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], |
14 ], | 16 ], |
15 'conditions': [ | 17 'conditions': [ |
16 ['OS=="linux"', {'sources/': [ | 18 ['OS=="linux"', {'sources/': [ |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 'rule_name': 'grit', | 242 'rule_name': 'grit', |
241 'extension': 'grd', | 243 'extension': 'grd', |
242 'inputs': [ | 244 'inputs': [ |
243 '../tools/grit/grit.py', | 245 '../tools/grit/grit.py', |
244 ], | 246 ], |
245 'variables': { | 247 'variables': { |
246 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/app', | 248 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/app', |
247 }, | 249 }, |
248 'outputs': [ | 250 'outputs': [ |
249 '<(SHARED_INTERMEDIATE_DIR)/app/grit/<(RULE_INPUT_ROOT).h', | 251 '<(SHARED_INTERMEDIATE_DIR)/app/grit/<(RULE_INPUT_ROOT).h', |
250 # TODO(benl) Generate this list from a helper script, like | 252 # TODO: remove this helper when we have loops in GYP |
251 # repack_locales_cmd in chrome.gyp (see TODO(mmoss)) | 253 '>!@(<(apply_locales_cmd) \'<(SHARED_INTERMEDIATE_DIR)/app/<(RULE_IN
PUT_ROOT)_ZZLOCALE.pak\' <(locales))', |
252 '<(SHARED_INTERMEDIATE_DIR)/app/<(RULE_INPUT_ROOT)_ar.pak', | |
253 '<(SHARED_INTERMEDIATE_DIR)/app/<(RULE_INPUT_ROOT)_en-US.pak', | |
254 ], | 254 ], |
255 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', | 255 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', |
256 'build', '-o', '<(grit_out_dir)'], | 256 'build', '-o', '<(grit_out_dir)'], |
257 'message': 'Generating resources from <(RULE_INPUT_PATH)', | 257 'message': 'Generating resources from <(RULE_INPUT_PATH)', |
258 }, | 258 }, |
259 ], | 259 ], |
260 'sources': [ | 260 'sources': [ |
261 # Localizable resources. | 261 # Localizable resources. |
262 'resources/app_locale_settings.grd', | 262 'resources/app_locale_settings.grd', |
263 'resources/app_strings.grd', | 263 'resources/app_strings.grd', |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 'process_outputs_as_sources': 1, | 350 'process_outputs_as_sources': 1, |
351 'message': 'Generating appid information in <(SHARED_INTERMEDIAT
E_DIR)/chrome/appid.h' | 351 'message': 'Generating appid information in <(SHARED_INTERMEDIAT
E_DIR)/chrome/appid.h' |
352 }, | 352 }, |
353 ], | 353 ], |
354 }, | 354 }, |
355 ], | 355 ], |
356 ], | 356 ], |
357 }, | 357 }, |
358 ], | 358 ], |
359 } | 359 } |
OLD | NEW |