Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: chrome/chrome.gyp

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

Powered by Google App Engine
This is Rietveld 408576698