| 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 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 # Define the common dependencies that contain all the actual | 8 # Define the common dependencies that contain all the actual |
| 9 # Chromium functionality. This list gets pulled in below by | 9 # Chromium functionality. This list gets pulled in below by |
| 10 # the link of the actual chrome (or chromium) executable on | 10 # the link of the actual chrome (or chromium) executable on |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 }, | 55 }, |
| 56 'targets': [ | 56 'targets': [ |
| 57 { | 57 { |
| 58 # TODO(mark): It would be better if each static library that needed | 58 # TODO(mark): It would be better if each static library that needed |
| 59 # to run grit would list its own .grd files, but unfortunately some | 59 # to run grit would list its own .grd files, but unfortunately some |
| 60 # of the static libraries currently have circular dependencies among | 60 # of the static libraries currently have circular dependencies among |
| 61 # generated headers. | 61 # generated headers. |
| 62 'target_name': 'chrome_resources', | 62 'target_name': 'chrome_resources', |
| 63 'type': 'none', | 63 'type': 'none', |
| 64 'msvs_guid': 'B95AB527-F7DB-41E9-AD91-EB51EE0F56BE', | 64 'msvs_guid': 'B95AB527-F7DB-41E9-AD91-EB51EE0F56BE', |
| 65 'msvs_existing_vcproj': 'app/chrome_resources.vcproj', | |
| 66 'rules': [ | 65 'rules': [ |
| 67 { | 66 { |
| 68 'rule_name': 'grit', | 67 'rule_name': 'grit', |
| 69 'extension': 'grd', | 68 'extension': 'grd', |
| 70 'variables': { | 69 'variables': { |
| 71 'conditions': [ | 70 'conditions': [ |
| 72 ['branding=="Chrome"', { | 71 ['branding=="Chrome"', { |
| 73 # TODO(mmoss) The .grd files look for _google_chrome, but for | 72 # TODO(mmoss) The .grd files look for _google_chrome, but for |
| 74 # consistency they should look for GOOGLE_CHROME_BUILD like C++. | 73 # consistency they should look for GOOGLE_CHROME_BUILD like C++. |
| 75 # Clean this up when Windows moves to gyp. | 74 # Clean this up when Windows moves to gyp. |
| 76 'chrome_build': '_google_chrome', | 75 'chrome_build': '_google_chrome', |
| 77 'branded_env': 'CHROMIUM_BUILD=google_chrome', | 76 'branded_env': 'CHROMIUM_BUILD=google_chrome', |
| 78 }, { # else: branding!="Chrome" | 77 }, { # else: branding!="Chrome" |
| 79 'chrome_build': '_chromium', | 78 'chrome_build': '_chromium', |
| 80 'branded_env': 'CHROMIUM_BUILD=chromium', | 79 'branded_env': 'CHROMIUM_BUILD=chromium', |
| 81 }], | 80 }], |
| 82 ], | 81 ], |
| 83 }, | 82 }, |
| 84 'inputs': [ | 83 'inputs': [ |
| 85 '../tools/grit/grit.py', | 84 '../tools/grit/grit.py', |
| 86 ], | 85 ], |
| 87 'outputs': [ | 86 'outputs': [ |
| 88 '<(SHARED_INTERMEDIATE_DIR)/chrome/grit/<(RULE_INPUT_ROOT).h', | 87 '<(grit_out_dir)/grit/<(RULE_INPUT_ROOT).h', |
| 89 '<(SHARED_INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_ROOT).pak', | 88 '<(grit_out_dir)/<(RULE_INPUT_ROOT).pak', |
| 90 ], | 89 ], |
| 91 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', | 90 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', |
| 92 'build', '-o', '<(SHARED_INTERMEDIATE_DIR)/chrome', | 91 'build', '-o', '<(grit_out_dir)', |
| 93 '-D', '<(chrome_build)', | 92 '-D', '<(chrome_build)', |
| 94 '-E', '<(branded_env)', | 93 '-E', '<(branded_env)', |
| 95 ], | 94 ], |
| 96 'message': 'Generating resources from <(RULE_INPUT_PATH)', | 95 'message': 'Generating resources from <(RULE_INPUT_PATH)', |
| 97 }, | 96 }, |
| 98 ], | 97 ], |
| 99 'sources': [ | 98 'sources': [ |
| 100 # Data resources. | 99 # Data resources. |
| 101 'browser/debugger/resources/debugger_resources.grd', | 100 'browser/debugger/resources/debugger_resources.grd', |
| 102 'browser/browser_resources.grd', | 101 'browser/browser_resources.grd', |
| 103 'common/common_resources.grd', | 102 'common/common_resources.grd', |
| 104 'renderer/renderer_resources.grd', | 103 'renderer/renderer_resources.grd', |
| 105 ], | 104 ], |
| 106 'direct_dependent_settings': { | 105 'direct_dependent_settings': { |
| 107 'include_dirs': [ | 106 'include_dirs': [ |
| 108 '<(SHARED_INTERMEDIATE_DIR)/chrome', | 107 '<(grit_out_dir)', |
| 109 ], | 108 ], |
| 110 }, | 109 }, |
| 111 'conditions': [ | 110 'conditions': [ |
| 112 ['OS=="win"', { | 111 ['OS=="win"', { |
| 113 'dependencies': ['../build/win/system.gyp:cygwin'], | 112 'dependencies': ['../build/win/system.gyp:cygwin'], |
| 114 }], | 113 }], |
| 115 ], | 114 ], |
| 116 }, | 115 }, |
| 117 { | 116 { |
| 118 # TODO(mark): It would be better if each static library that needed | 117 # TODO(mark): It would be better if each static library that needed |
| 119 # to run grit would list its own .grd files, but unfortunately some | 118 # to run grit would list its own .grd files, but unfortunately some |
| 120 # of the static libraries currently have circular dependencies among | 119 # of the static libraries currently have circular dependencies among |
| 121 # generated headers. | 120 # generated headers. |
| 122 'target_name': 'chrome_strings', | 121 'target_name': 'chrome_strings', |
| 123 'type': 'none', | 122 'type': 'none', |
| 124 'msvs_guid': 'D9DDAF60-663F-49CC-90DC-3D08CC3D1B28', | 123 'msvs_guid': 'D9DDAF60-663F-49CC-90DC-3D08CC3D1B28', |
| 125 'msvs_existing_vcproj': 'app/chrome_strings.vcproj', | |
| 126 'rules': [ | 124 'rules': [ |
| 127 { | 125 { |
| 128 'rule_name': 'grit', | 126 'rule_name': 'grit', |
| 129 'extension': 'grd', | 127 'extension': 'grd', |
| 130 'variables': { | 128 'variables': { |
| 131 'conditions': [ | 129 'conditions': [ |
| 132 ['branding=="Chrome"', { | 130 ['branding=="Chrome"', { |
| 133 # TODO(mmoss) The .grd files look for _google_chrome, but for | 131 # TODO(mmoss) The .grd files look for _google_chrome, but for |
| 134 # consistency they should look for GOOGLE_CHROME_BUILD like C++. | 132 # consistency they should look for GOOGLE_CHROME_BUILD like C++. |
| 135 # Clean this up when Windows moves to gyp. | 133 # Clean this up when Windows moves to gyp. |
| 136 'chrome_build': '_google_chrome', | 134 'chrome_build': '_google_chrome', |
| 137 }, { # else: branding!="Chrome" | 135 }, { # else: branding!="Chrome" |
| 138 'chrome_build': '_chromium', | 136 'chrome_build': '_chromium', |
| 139 }], | 137 }], |
| 140 ], | 138 ], |
| 141 }, | 139 }, |
| 142 'inputs': [ | 140 'inputs': [ |
| 143 '../tools/grit/grit.py', | 141 '../tools/grit/grit.py', |
| 144 ], | 142 ], |
| 145 'outputs': [ | 143 'outputs': [ |
| 146 '<(SHARED_INTERMEDIATE_DIR)/chrome/grit/<(RULE_INPUT_ROOT).h', | 144 '<(grit_out_dir)/grit/<(RULE_INPUT_ROOT).h', |
| 147 '<(SHARED_INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_ROOT)_da.pak', | 145 '<(grit_out_dir)/<(RULE_INPUT_ROOT)_da.pak', |
| 148 '<(SHARED_INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_ROOT)_en-US.pak', | 146 '<(grit_out_dir)/<(RULE_INPUT_ROOT)_en-US.pak', |
| 149 '<(SHARED_INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_ROOT)_he.pak', | 147 '<(grit_out_dir)/<(RULE_INPUT_ROOT)_he.pak', |
| 150 '<(SHARED_INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_ROOT)_zh-TW.pak', | 148 '<(grit_out_dir)/<(RULE_INPUT_ROOT)_zh-TW.pak', |
| 151 ], | 149 ], |
| 152 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', | 150 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', |
| 153 'build', '-o', '<(SHARED_INTERMEDIATE_DIR)/chrome', | 151 'build', '-o', '<(grit_out_dir)', |
| 154 '-D', '<(chrome_build)'], | 152 '-D', '<(chrome_build)'], |
| 155 'message': 'Generating resources from <(RULE_INPUT_PATH)', | 153 'message': 'Generating resources from <(RULE_INPUT_PATH)', |
| 156 }, | 154 }, |
| 157 ], | 155 ], |
| 158 'sources': [ | 156 'sources': [ |
| 159 # Localizable resources. | 157 # Localizable resources. |
| 160 'app/resources/locale_settings.grd', | 158 'app/resources/locale_settings.grd', |
| 161 'app/chromium_strings.grd', | 159 'app/chromium_strings.grd', |
| 162 'app/generated_resources.grd', | 160 'app/generated_resources.grd', |
| 163 'app/google_chrome_strings.grd', | 161 'app/google_chrome_strings.grd', |
| 164 ], | 162 ], |
| 165 'direct_dependent_settings': { | 163 'direct_dependent_settings': { |
| 166 'include_dirs': [ | 164 'include_dirs': [ |
| 167 '<(SHARED_INTERMEDIATE_DIR)/chrome', | 165 '<(grit_out_dir)', |
| 168 ], | 166 ], |
| 169 }, | 167 }, |
| 170 'conditions': [ | 168 'conditions': [ |
| 171 ['OS=="win"', { | 169 ['OS=="win"', { |
| 172 'dependencies': ['../build/win/system.gyp:cygwin'], | 170 'dependencies': ['../build/win/system.gyp:cygwin'], |
| 173 }], | 171 }], |
| 174 ], | 172 ], |
| 175 }, | 173 }, |
| 176 { | 174 { |
| 177 # theme_resources also generates a .cc file, so it can't use the rules abo
ve. | 175 # theme_resources also generates a .cc file, so it can't use the rules abo
ve. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 206 '<(grit_out_dir)/theme_resources.pak', | 204 '<(grit_out_dir)/theme_resources.pak', |
| 207 '<(grit_out_dir)/theme_resources.rc', | 205 '<(grit_out_dir)/theme_resources.rc', |
| 208 ], | 206 ], |
| 209 'action': ['python', '<(grit_path)', '-i', '<(input_path)', 'build', | 207 'action': ['python', '<(grit_path)', '-i', '<(input_path)', 'build', |
| 210 '-o', '<(grit_out_dir)', '-D', '<(chrome_build)'], | 208 '-o', '<(grit_out_dir)', '-D', '<(chrome_build)'], |
| 211 'message': 'Generating resources from <(input_path)', | 209 'message': 'Generating resources from <(input_path)', |
| 212 }, | 210 }, |
| 213 ], | 211 ], |
| 214 'direct_dependent_settings': { | 212 'direct_dependent_settings': { |
| 215 'include_dirs': [ | 213 'include_dirs': [ |
| 216 '<(SHARED_INTERMEDIATE_DIR)/chrome', | 214 '<(grit_out_dir)', |
| 217 ], | 215 ], |
| 218 }, | 216 }, |
| 219 'conditions': [ | 217 'conditions': [ |
| 220 ['OS=="win"', { | 218 ['OS=="win"', { |
| 221 'dependencies': ['../build/win/system.gyp:cygwin'], | 219 'dependencies': ['../build/win/system.gyp:cygwin'], |
| 222 }], | 220 }], |
| 223 ], | 221 ], |
| 224 }, | 222 }, |
| 225 { | 223 { |
| 226 'target_name': 'common', | 224 'target_name': 'common', |
| (...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1552 'browser/window_sizer_linux.cc', | 1550 'browser/window_sizer_linux.cc', |
| 1553 'browser/window_sizer_win.cc', | 1551 'browser/window_sizer_win.cc', |
| 1554 'browser/worker_host/worker_process_host.cc', | 1552 'browser/worker_host/worker_process_host.cc', |
| 1555 'browser/worker_host/worker_process_host.h', | 1553 'browser/worker_host/worker_process_host.h', |
| 1556 'browser/worker_host/worker_service.cc', | 1554 'browser/worker_host/worker_service.cc', |
| 1557 'browser/worker_host/worker_service.h', | 1555 'browser/worker_host/worker_service.h', |
| 1558 'tools/build/win/precompiled_wtl.h', | 1556 'tools/build/win/precompiled_wtl.h', |
| 1559 'tools/build/win/precompiled_wtl.cc', | 1557 'tools/build/win/precompiled_wtl.cc', |
| 1560 | 1558 |
| 1561 # This file is generated by GRIT. | 1559 # This file is generated by GRIT. |
| 1562 '<(SHARED_INTERMEDIATE_DIR)/chrome/grit/theme_resources_map.cc', | 1560 '<(grit_out_dir)/grit/theme_resources_map.cc', |
| 1563 ], | 1561 ], |
| 1564 'conditions': [ | 1562 'conditions': [ |
| 1565 ['javascript_engine=="v8"', { | 1563 ['javascript_engine=="v8"', { |
| 1566 'defines': [ | 1564 'defines': [ |
| 1567 'CHROME_V8', | 1565 'CHROME_V8', |
| 1568 ], | 1566 ], |
| 1569 }], | 1567 }], |
| 1570 ['OS=="linux"', { | 1568 ['OS=="linux"', { |
| 1571 'dependencies': [ | 1569 'dependencies': [ |
| 1572 '../build/linux/system.gyp:gtk', | 1570 '../build/linux/system.gyp:gtk', |
| (...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2414 'app/chrome_dll_resource.h', | 2412 'app/chrome_dll_resource.h', |
| 2415 ], | 2413 ], |
| 2416 'variables': { | 2414 'variables': { |
| 2417 'repack_path': '../tools/data_pack/repack.py', | 2415 'repack_path': '../tools/data_pack/repack.py', |
| 2418 }, | 2416 }, |
| 2419 'actions': [ | 2417 'actions': [ |
| 2420 { | 2418 { |
| 2421 'action_name': 'repack_chrome', | 2419 'action_name': 'repack_chrome', |
| 2422 'variables': { | 2420 'variables': { |
| 2423 'pak_inputs': [ | 2421 'pak_inputs': [ |
| 2424 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.pak', | 2422 '<(grit_out_dir)/browser_resources.pak', |
| 2425 '<(SHARED_INTERMEDIATE_DIR)/chrome/debugger_resources.pak', | 2423 '<(grit_out_dir)/debugger_resources.pak', |
| 2426 '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.pak', | 2424 '<(grit_out_dir)/common_resources.pak', |
| 2427 '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources.pak', | 2425 '<(grit_out_dir)/renderer_resources.pak', |
| 2428 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', | 2426 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', |
| 2429 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak', | 2427 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak', |
| 2430 ], | 2428 ], |
| 2431 }, | 2429 }, |
| 2432 'inputs': [ | 2430 'inputs': [ |
| 2433 '<(repack_path)', | 2431 '<(repack_path)', |
| 2434 '<@(pak_inputs)', | 2432 '<@(pak_inputs)', |
| 2435 ], | 2433 ], |
| 2436 'outputs': [ | 2434 'outputs': [ |
| 2437 '<(INTERMEDIATE_DIR)/repack/chrome.pak', | 2435 '<(INTERMEDIATE_DIR)/repack/chrome.pak', |
| 2438 ], | 2436 ], |
| 2439 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], | 2437 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], |
| 2440 'process_outputs_as_mac_bundle_resources': 1, | 2438 'process_outputs_as_mac_bundle_resources': 1, |
| 2441 }, | 2439 }, |
| 2442 { | 2440 { |
| 2443 'action_name': 'repack_theme', | 2441 'action_name': 'repack_theme', |
| 2444 'variables': { | 2442 'variables': { |
| 2445 'pak_inputs': [ | 2443 'pak_inputs': [ |
| 2446 '<(SHARED_INTERMEDIATE_DIR)/app/app_resources.pak', | 2444 '<(SHARED_INTERMEDIATE_DIR)/app/app_resources.pak', |
| 2447 '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources.pak', | 2445 '<(grit_out_dir)/theme_resources.pak', |
| 2448 ], | 2446 ], |
| 2449 }, | 2447 }, |
| 2450 'inputs': [ | 2448 'inputs': [ |
| 2451 '<(repack_path)', | 2449 '<(repack_path)', |
| 2452 '<@(pak_inputs)', | 2450 '<@(pak_inputs)', |
| 2453 ], | 2451 ], |
| 2454 'outputs': [ | 2452 'outputs': [ |
| 2455 '<(INTERMEDIATE_DIR)/repack/theme.pak', | 2453 '<(INTERMEDIATE_DIR)/repack/theme.pak', |
| 2456 ], | 2454 ], |
| 2457 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], | 2455 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], |
| 2458 'process_outputs_as_mac_bundle_resources': 1, | 2456 'process_outputs_as_mac_bundle_resources': 1, |
| 2459 'conditions': [ | 2457 'conditions': [ |
| 2460 ['OS=="linux"', { | 2458 ['OS=="linux"', { |
| 2461 'outputs=': [ | 2459 'outputs=': [ |
| 2462 '<(INTERMEDIATE_DIR)/repack/default.pak', | 2460 '<(INTERMEDIATE_DIR)/repack/default.pak', |
| 2463 ] | 2461 ] |
| 2464 }], | 2462 }], |
| 2465 ], | 2463 ], |
| 2466 }, | 2464 }, |
| 2467 { | 2465 { |
| 2468 # TODO(mark): Make this work with more languages than the | 2466 # TODO(mark): Make this work with more languages than the |
| 2469 # hardcoded da, en-US, he, zh-TW. | 2467 # hardcoded da, en-US, he, zh-TW. |
| 2470 'action_name': 'repack_locale_da', | 2468 'action_name': 'repack_locale_da', |
| 2471 'variables': { | 2469 'variables': { |
| 2472 'pak_inputs': [ | 2470 'pak_inputs': [ |
| 2473 '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_da.pak'
, | 2471 '<(grit_out_dir)/generated_resources_da.pak', |
| 2474 '<(SHARED_INTERMEDIATE_DIR)/chrome/locale_settings_da.pak', | 2472 '<(grit_out_dir)/locale_settings_da.pak', |
| 2475 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak', | 2473 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak', |
| 2476 ], | 2474 ], |
| 2477 'conditions': [ | 2475 'conditions': [ |
| 2478 ['branding=="Chrome"', { | 2476 ['branding=="Chrome"', { |
| 2479 'pak_inputs': [ | 2477 'pak_inputs': [ |
| 2480 '<(SHARED_INTERMEDIATE_DIR)/chrome/google_chrome_strings
_da.pak', | 2478 '<(grit_out_dir)/google_chrome_strings_da.pak', |
| 2481 ] | 2479 ] |
| 2482 }, { # else: branding!="Chrome" | 2480 }, { # else: branding!="Chrome" |
| 2483 'pak_inputs': [ | 2481 'pak_inputs': [ |
| 2484 '<(SHARED_INTERMEDIATE_DIR)/chrome/chromium_strings_da.p
ak', | 2482 '<(grit_out_dir)/chromium_strings_da.pak', |
| 2485 ] | 2483 ] |
| 2486 }], | 2484 }], |
| 2487 ], | 2485 ], |
| 2488 }, | 2486 }, |
| 2489 'inputs': [ | 2487 'inputs': [ |
| 2490 '<(repack_path)', | 2488 '<(repack_path)', |
| 2491 '<@(pak_inputs)', | 2489 '<@(pak_inputs)', |
| 2492 ], | 2490 ], |
| 2493 'conditions': [ | 2491 'conditions': [ |
| 2494 ['OS=="mac"', { | 2492 ['OS=="mac"', { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2507 }], | 2505 }], |
| 2508 ], | 2506 ], |
| 2509 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], | 2507 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], |
| 2510 }, | 2508 }, |
| 2511 { | 2509 { |
| 2512 # TODO(mark): Make this work with more languages than the | 2510 # TODO(mark): Make this work with more languages than the |
| 2513 # hardcoded da, en-US, he, zh-TW. | 2511 # hardcoded da, en-US, he, zh-TW. |
| 2514 'action_name': 'repack_locale_en_us', | 2512 'action_name': 'repack_locale_en_us', |
| 2515 'variables': { | 2513 'variables': { |
| 2516 'pak_inputs': [ | 2514 'pak_inputs': [ |
| 2517 '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_en-US.p
ak', | 2515 '<(grit_out_dir)/generated_resources_en-US.pak', |
| 2518 '<(SHARED_INTERMEDIATE_DIR)/chrome/locale_settings_en-US.pak', | 2516 '<(grit_out_dir)/locale_settings_en-US.pak', |
| 2519 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak', | 2517 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak', |
| 2520 ], | 2518 ], |
| 2521 'conditions': [ | 2519 'conditions': [ |
| 2522 ['branding=="Chrome"', { | 2520 ['branding=="Chrome"', { |
| 2523 'pak_inputs': [ | 2521 'pak_inputs': [ |
| 2524 '<(SHARED_INTERMEDIATE_DIR)/chrome/google_chrome_strings
_en-US.pak', | 2522 '<(grit_out_dir)/google_chrome_strings_en-US.pak', |
| 2525 ] | 2523 ] |
| 2526 }, { # else: branding!="Chrome" | 2524 }, { # else: branding!="Chrome" |
| 2527 'pak_inputs': [ | 2525 'pak_inputs': [ |
| 2528 '<(SHARED_INTERMEDIATE_DIR)/chrome/chromium_strings_en-U
S.pak', | 2526 '<(grit_out_dir)/chromium_strings_en-US.pak', |
| 2529 ] | 2527 ] |
| 2530 }], | 2528 }], |
| 2531 ], | 2529 ], |
| 2532 }, | 2530 }, |
| 2533 'inputs': [ | 2531 'inputs': [ |
| 2534 '<(repack_path)', | 2532 '<(repack_path)', |
| 2535 '<@(pak_inputs)', | 2533 '<@(pak_inputs)', |
| 2536 ], | 2534 ], |
| 2537 'conditions': [ | 2535 'conditions': [ |
| 2538 ['OS=="mac"', { | 2536 ['OS=="mac"', { |
| 2539 'outputs': [ | 2537 'outputs': [ |
| 2540 '<(INTERMEDIATE_DIR)/repack/en.lproj/locale.pak', | 2538 '<(INTERMEDIATE_DIR)/repack/en.lproj/locale.pak', |
| 2541 ], | 2539 ], |
| 2542 }, { # else: OS!="mac" | 2540 }, { # else: OS!="mac" |
| 2543 'outputs': [ | 2541 'outputs': [ |
| 2544 '<(INTERMEDIATE_DIR)/repack/en-US.pak', | 2542 '<(INTERMEDIATE_DIR)/repack/en-US.pak', |
| 2545 ], | 2543 ], |
| 2546 }], | 2544 }], |
| 2547 ], | 2545 ], |
| 2548 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], | 2546 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], |
| 2549 'process_outputs_as_mac_bundle_resources': 1, | 2547 'process_outputs_as_mac_bundle_resources': 1, |
| 2550 }, | 2548 }, |
| 2551 { | 2549 { |
| 2552 # TODO(mark): Make this work with more languages than the | 2550 # TODO(mark): Make this work with more languages than the |
| 2553 # hardcoded da, en-US, he, zh-TW. | 2551 # hardcoded da, en-US, he, zh-TW. |
| 2554 'action_name': 'repack_locale_he', | 2552 'action_name': 'repack_locale_he', |
| 2555 'variables': { | 2553 'variables': { |
| 2556 'pak_inputs': [ | 2554 'pak_inputs': [ |
| 2557 '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_he.pak'
, | 2555 '<(grit_out_dir)/generated_resources_he.pak', |
| 2558 '<(SHARED_INTERMEDIATE_DIR)/chrome/locale_settings_he.pak', | 2556 '<(grit_out_dir)/locale_settings_he.pak', |
| 2559 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_he.pak', | 2557 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_he.pak', |
| 2560 ], | 2558 ], |
| 2561 'conditions': [ | 2559 'conditions': [ |
| 2562 ['branding=="Chrome"', { | 2560 ['branding=="Chrome"', { |
| 2563 'pak_inputs': [ | 2561 'pak_inputs': [ |
| 2564 '<(SHARED_INTERMEDIATE_DIR)/chrome/google_chrome_strings
_he.pak', | 2562 '<(grit_out_dir)/google_chrome_strings_he.pak', |
| 2565 ] | 2563 ] |
| 2566 }, { # else: branding!="Chrome" | 2564 }, { # else: branding!="Chrome" |
| 2567 'pak_inputs': [ | 2565 'pak_inputs': [ |
| 2568 '<(SHARED_INTERMEDIATE_DIR)/chrome/chromium_strings_he.p
ak', | 2566 '<(grit_out_dir)/chromium_strings_he.pak', |
| 2569 ] | 2567 ] |
| 2570 }], | 2568 }], |
| 2571 ], | 2569 ], |
| 2572 }, | 2570 }, |
| 2573 'inputs': [ | 2571 'inputs': [ |
| 2574 '<(repack_path)', | 2572 '<(repack_path)', |
| 2575 '<@(pak_inputs)', | 2573 '<@(pak_inputs)', |
| 2576 ], | 2574 ], |
| 2577 'conditions': [ | 2575 'conditions': [ |
| 2578 ['OS=="mac"', { | 2576 ['OS=="mac"', { |
| 2579 'outputs': [ | 2577 'outputs': [ |
| 2580 # '<(INTERMEDIATE_DIR)/repack/he.lproj/locale.pak', | 2578 # '<(INTERMEDIATE_DIR)/repack/he.lproj/locale.pak', |
| 2581 ], | 2579 ], |
| 2582 }, { # else: OS!="mac" | 2580 }, { # else: OS!="mac" |
| 2583 'outputs': [ | 2581 'outputs': [ |
| 2584 '<(INTERMEDIATE_DIR)/repack/he.pak', | 2582 '<(INTERMEDIATE_DIR)/repack/he.pak', |
| 2585 ], | 2583 ], |
| 2586 }], | 2584 }], |
| 2587 ], | 2585 ], |
| 2588 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], | 2586 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], |
| 2589 }, | 2587 }, |
| 2590 { | 2588 { |
| 2591 # TODO(mark): Make this work with more languages than the | 2589 # TODO(mark): Make this work with more languages than the |
| 2592 # hardcoded da, en-US, he, zh-TW. | 2590 # hardcoded da, en-US, he, zh-TW. |
| 2593 'action_name': 'repack_locale_zh_tw', | 2591 'action_name': 'repack_locale_zh_tw', |
| 2594 'variables': { | 2592 'variables': { |
| 2595 'pak_inputs': [ | 2593 'pak_inputs': [ |
| 2596 '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_zh-TW.p
ak', | 2594 '<(grit_out_dir)/generated_resources_zh-TW.pak', |
| 2597 '<(SHARED_INTERMEDIATE_DIR)/chrome/locale_settings_zh-TW.pak', | 2595 '<(grit_out_dir)/locale_settings_zh-TW.pak', |
| 2598 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_zh-TW.pak', | 2596 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_zh-TW.pak', |
| 2599 ], | 2597 ], |
| 2600 'conditions': [ | 2598 'conditions': [ |
| 2601 ['branding=="Chrome"', { | 2599 ['branding=="Chrome"', { |
| 2602 'pak_inputs': [ | 2600 'pak_inputs': [ |
| 2603 '<(SHARED_INTERMEDIATE_DIR)/chrome/google_chrome_strings
_zh-TW.pak', | 2601 '<(grit_out_dir)/google_chrome_strings_zh-TW.pak', |
| 2604 ] | 2602 ] |
| 2605 }, { # else: branding!="Chrome" | 2603 }, { # else: branding!="Chrome" |
| 2606 'pak_inputs': [ | 2604 'pak_inputs': [ |
| 2607 '<(SHARED_INTERMEDIATE_DIR)/chrome/chromium_strings_zh-T
W.pak', | 2605 '<(grit_out_dir)/chromium_strings_zh-TW.pak', |
| 2608 ] | 2606 ] |
| 2609 }], | 2607 }], |
| 2610 ], | 2608 ], |
| 2611 }, | 2609 }, |
| 2612 'inputs': [ | 2610 'inputs': [ |
| 2613 '<(repack_path)', | 2611 '<(repack_path)', |
| 2614 '<@(pak_inputs)', | 2612 '<@(pak_inputs)', |
| 2615 ], | 2613 ], |
| 2616 'conditions': [ | 2614 'conditions': [ |
| 2617 ['OS=="mac"', { | 2615 ['OS=="mac"', { |
| (...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3658 ], | 3656 ], |
| 3659 'rules': [ | 3657 'rules': [ |
| 3660 { | 3658 { |
| 3661 'rule_name': 'win_version', | 3659 'rule_name': 'win_version', |
| 3662 'extension': 'version', | 3660 'extension': 'version', |
| 3663 'variables': { | 3661 'variables': { |
| 3664 'version_py': '../chrome/tools/build/version.py', | 3662 'version_py': '../chrome/tools/build/version.py', |
| 3665 'VERSION': '../chrome/VERSION', | 3663 'VERSION': '../chrome/VERSION', |
| 3666 'template_input_path': 'app/chrome_dll_version.rc.version', | 3664 'template_input_path': 'app/chrome_dll_version.rc.version', |
| 3667 'template_output_path': | 3665 'template_output_path': |
| 3668 '<(SHARED_INTERMEDIATE_DIR)/chrome/chrome_dll_version.rc', | 3666 '<(grit_out_dir)/chrome_dll_version.rc', |
| 3669 }, | 3667 }, |
| 3670 'conditions': [ | 3668 'conditions': [ |
| 3671 [ 'branding == "Chrome"', { | 3669 [ 'branding == "Chrome"', { |
| 3672 'variables': { | 3670 'variables': { |
| 3673 'BRANDING': | 3671 'BRANDING': |
| 3674 '../chrome/app/theme/google_chrome/BRANDING', | 3672 '../chrome/app/theme/google_chrome/BRANDING', |
| 3675 }, | 3673 }, |
| 3676 }, { # else branding!="Chrome" | 3674 }, { # else branding!="Chrome" |
| 3677 'variables': { | 3675 'variables': { |
| 3678 'BRANDING': | 3676 'BRANDING': |
| 3679 '../chrome/app/theme/chromium/BRANDING', | 3677 '../chrome/app/theme/chromium/BRANDING', |
| 3680 }, | 3678 }, |
| 3681 }], | 3679 }], |
| 3682 ], | 3680 ], |
| 3683 'inputs': [ | 3681 'inputs': [ |
| 3684 '<(template_input_path)', | 3682 '<(template_input_path)', |
| 3685 '<(VERSION)', | 3683 '<(VERSION)', |
| 3686 '<(BRANDING)', | 3684 '<(BRANDING)', |
| 3687 ], | 3685 ], |
| 3688 'outputs': [ | 3686 'outputs': [ |
| 3689 # Use a non-existant output so this action always runs and | 3687 # Use a non-existant output so this action always runs and |
| 3690 # generates version information, e.g. to capture revision | 3688 # generates version information, e.g. to capture revision |
| 3691 # changes, which aren't captured by file dependencies. | 3689 # changes, which aren't captured by file dependencies. |
| 3692 '<(SHARED_INTERMEDIATE_DIR)/chrome/chrome_dll_version.bogus', | 3690 '<(grit_out_dir)/chrome_dll_version.bogus', |
| 3693 | 3691 |
| 3694 # And this is the real output, so that the build system knows | 3692 # And this is the real output, so that the build system knows |
| 3695 # what action generates it. | 3693 # what action generates it. |
| 3696 '<(template_output_path)', | 3694 '<(template_output_path)', |
| 3697 ], | 3695 ], |
| 3698 'action': [ | 3696 'action': [ |
| 3699 'python', | 3697 'python', |
| 3700 '<(version_py)', | 3698 '<(version_py)', |
| 3701 '-f', '<(VERSION)', | 3699 '-f', '<(VERSION)', |
| 3702 '-f', '<(BRANDING)', | 3700 '-f', '<(BRANDING)', |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4293 # Use outputs of this action as inputs for the main target build. | 4291 # Use outputs of this action as inputs for the main target build. |
| 4294 # Seems as a misnomer but makes this happy on Linux (scons). | 4292 # Seems as a misnomer but makes this happy on Linux (scons). |
| 4295 'process_outputs_as_sources': 1, | 4293 'process_outputs_as_sources': 1, |
| 4296 }, | 4294 }, |
| 4297 ], # 'actions' | 4295 ], # 'actions' |
| 4298 }, | 4296 }, |
| 4299 ] | 4297 ] |
| 4300 }], | 4298 }], |
| 4301 ], # 'conditions' | 4299 ], # 'conditions' |
| 4302 } | 4300 } |
| OLD | NEW |