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

Side by Side Diff: chrome/chrome.gyp

Issue 119061: Convert to gyp generation of chrome_resources and chrome_strings.... (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',
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
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 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 'browser/window_sizer_linux.cc', 1547 'browser/window_sizer_linux.cc',
1550 'browser/window_sizer_win.cc', 1548 'browser/window_sizer_win.cc',
1551 'browser/worker_host/worker_process_host.cc', 1549 'browser/worker_host/worker_process_host.cc',
1552 'browser/worker_host/worker_process_host.h', 1550 'browser/worker_host/worker_process_host.h',
1553 'browser/worker_host/worker_service.cc', 1551 'browser/worker_host/worker_service.cc',
1554 'browser/worker_host/worker_service.h', 1552 'browser/worker_host/worker_service.h',
1555 'tools/build/win/precompiled_wtl.h', 1553 'tools/build/win/precompiled_wtl.h',
1556 'tools/build/win/precompiled_wtl.cc', 1554 'tools/build/win/precompiled_wtl.cc',
1557 1555
1558 # This file is generated by GRIT. 1556 # This file is generated by GRIT.
1559 '<(SHARED_INTERMEDIATE_DIR)/chrome/grit/theme_resources_map.cc', 1557 '<(grit_out_dir)/grit/theme_resources_map.cc',
1560 ], 1558 ],
1561 'conditions': [ 1559 'conditions': [
1562 ['javascript_engine=="v8"', { 1560 ['javascript_engine=="v8"', {
1563 'defines': [ 1561 'defines': [
1564 'CHROME_V8', 1562 'CHROME_V8',
1565 ], 1563 ],
1566 }], 1564 }],
1567 ['OS=="linux"', { 1565 ['OS=="linux"', {
1568 'dependencies': [ 1566 'dependencies': [
1569 '../build/linux/system.gyp:gtk', 1567 '../build/linux/system.gyp:gtk',
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
2411 'app/chrome_dll_resource.h', 2409 'app/chrome_dll_resource.h',
2412 ], 2410 ],
2413 'variables': { 2411 'variables': {
2414 'repack_path': '../tools/data_pack/repack.py', 2412 'repack_path': '../tools/data_pack/repack.py',
2415 }, 2413 },
2416 'actions': [ 2414 'actions': [
2417 { 2415 {
2418 'action_name': 'repack_chrome', 2416 'action_name': 'repack_chrome',
2419 'variables': { 2417 'variables': {
2420 'pak_inputs': [ 2418 'pak_inputs': [
2421 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.pak', 2419 '<(grit_out_dir)/browser_resources.pak',
2422 '<(SHARED_INTERMEDIATE_DIR)/chrome/debugger_resources.pak', 2420 '<(grit_out_dir)/debugger_resources.pak',
2423 '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.pak', 2421 '<(grit_out_dir)/common_resources.pak',
2424 '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources.pak', 2422 '<(grit_out_dir)/renderer_resources.pak',
2425 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', 2423 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
2426 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak', 2424 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
2427 ], 2425 ],
2428 }, 2426 },
2429 'inputs': [ 2427 'inputs': [
2430 '<(repack_path)', 2428 '<(repack_path)',
2431 '<@(pak_inputs)', 2429 '<@(pak_inputs)',
2432 ], 2430 ],
2433 'outputs': [ 2431 'outputs': [
2434 '<(INTERMEDIATE_DIR)/repack/chrome.pak', 2432 '<(INTERMEDIATE_DIR)/repack/chrome.pak',
2435 ], 2433 ],
2436 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp uts)'], 2434 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp uts)'],
2437 'process_outputs_as_mac_bundle_resources': 1, 2435 'process_outputs_as_mac_bundle_resources': 1,
2438 }, 2436 },
2439 { 2437 {
2440 'action_name': 'repack_theme', 2438 'action_name': 'repack_theme',
2441 'variables': { 2439 'variables': {
2442 'pak_inputs': [ 2440 'pak_inputs': [
2443 '<(SHARED_INTERMEDIATE_DIR)/app/app_resources.pak', 2441 '<(SHARED_INTERMEDIATE_DIR)/app/app_resources.pak',
2444 '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources.pak', 2442 '<(grit_out_dir)/theme_resources.pak',
2445 ], 2443 ],
2446 }, 2444 },
2447 'inputs': [ 2445 'inputs': [
2448 '<(repack_path)', 2446 '<(repack_path)',
2449 '<@(pak_inputs)', 2447 '<@(pak_inputs)',
2450 ], 2448 ],
2451 'outputs': [ 2449 'outputs': [
2452 '<(INTERMEDIATE_DIR)/repack/theme.pak', 2450 '<(INTERMEDIATE_DIR)/repack/theme.pak',
2453 ], 2451 ],
2454 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp uts)'], 2452 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp uts)'],
2455 'process_outputs_as_mac_bundle_resources': 1, 2453 'process_outputs_as_mac_bundle_resources': 1,
2456 'conditions': [ 2454 'conditions': [
2457 ['OS=="linux"', { 2455 ['OS=="linux"', {
2458 'outputs=': [ 2456 'outputs=': [
2459 '<(INTERMEDIATE_DIR)/repack/default.pak', 2457 '<(INTERMEDIATE_DIR)/repack/default.pak',
2460 ] 2458 ]
2461 }], 2459 }],
2462 ], 2460 ],
2463 }, 2461 },
2464 { 2462 {
2465 # TODO(mark): Make this work with more languages than the 2463 # TODO(mark): Make this work with more languages than the
2466 # hardcoded da, en-US, he, zh-TW. 2464 # hardcoded da, en-US, he, zh-TW.
2467 'action_name': 'repack_locale_da', 2465 'action_name': 'repack_locale_da',
2468 'variables': { 2466 'variables': {
2469 'pak_inputs': [ 2467 'pak_inputs': [
2470 '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_da.pak' , 2468 '<(grit_out_dir)/generated_resources_da.pak',
2471 '<(SHARED_INTERMEDIATE_DIR)/chrome/locale_settings_da.pak', 2469 '<(grit_out_dir)/locale_settings_da.pak',
2472 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak', 2470 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak',
2473 ], 2471 ],
2474 'conditions': [ 2472 'conditions': [
2475 ['branding=="Chrome"', { 2473 ['branding=="Chrome"', {
2476 'pak_inputs': [ 2474 'pak_inputs': [
2477 '<(SHARED_INTERMEDIATE_DIR)/chrome/google_chrome_strings _da.pak', 2475 '<(grit_out_dir)/google_chrome_strings_da.pak',
2478 ] 2476 ]
2479 }, { # else: branding!="Chrome" 2477 }, { # else: branding!="Chrome"
2480 'pak_inputs': [ 2478 'pak_inputs': [
2481 '<(SHARED_INTERMEDIATE_DIR)/chrome/chromium_strings_da.p ak', 2479 '<(grit_out_dir)/chromium_strings_da.pak',
2482 ] 2480 ]
2483 }], 2481 }],
2484 ], 2482 ],
2485 }, 2483 },
2486 'inputs': [ 2484 'inputs': [
2487 '<(repack_path)', 2485 '<(repack_path)',
2488 '<@(pak_inputs)', 2486 '<@(pak_inputs)',
2489 ], 2487 ],
2490 'conditions': [ 2488 'conditions': [
2491 ['OS=="mac"', { 2489 ['OS=="mac"', {
(...skipping 12 matching lines...) Expand all
2504 }], 2502 }],
2505 ], 2503 ],
2506 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp uts)'], 2504 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp uts)'],
2507 }, 2505 },
2508 { 2506 {
2509 # TODO(mark): Make this work with more languages than the 2507 # TODO(mark): Make this work with more languages than the
2510 # hardcoded da, en-US, he, zh-TW. 2508 # hardcoded da, en-US, he, zh-TW.
2511 'action_name': 'repack_locale_en_us', 2509 'action_name': 'repack_locale_en_us',
2512 'variables': { 2510 'variables': {
2513 'pak_inputs': [ 2511 'pak_inputs': [
2514 '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_en-US.p ak', 2512 '<(grit_out_dir)/generated_resources_en-US.pak',
2515 '<(SHARED_INTERMEDIATE_DIR)/chrome/locale_settings_en-US.pak', 2513 '<(grit_out_dir)/locale_settings_en-US.pak',
2516 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak', 2514 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
2517 ], 2515 ],
2518 'conditions': [ 2516 'conditions': [
2519 ['branding=="Chrome"', { 2517 ['branding=="Chrome"', {
2520 'pak_inputs': [ 2518 'pak_inputs': [
2521 '<(SHARED_INTERMEDIATE_DIR)/chrome/google_chrome_strings _en-US.pak', 2519 '<(grit_out_dir)/google_chrome_strings_en-US.pak',
2522 ] 2520 ]
2523 }, { # else: branding!="Chrome" 2521 }, { # else: branding!="Chrome"
2524 'pak_inputs': [ 2522 'pak_inputs': [
2525 '<(SHARED_INTERMEDIATE_DIR)/chrome/chromium_strings_en-U S.pak', 2523 '<(grit_out_dir)/chromium_strings_en-US.pak',
2526 ] 2524 ]
2527 }], 2525 }],
2528 ], 2526 ],
2529 }, 2527 },
2530 'inputs': [ 2528 'inputs': [
2531 '<(repack_path)', 2529 '<(repack_path)',
2532 '<@(pak_inputs)', 2530 '<@(pak_inputs)',
2533 ], 2531 ],
2534 'conditions': [ 2532 'conditions': [
2535 ['OS=="mac"', { 2533 ['OS=="mac"', {
2536 'outputs': [ 2534 'outputs': [
2537 '<(INTERMEDIATE_DIR)/repack/en.lproj/locale.pak', 2535 '<(INTERMEDIATE_DIR)/repack/en.lproj/locale.pak',
2538 ], 2536 ],
2539 }, { # else: OS!="mac" 2537 }, { # else: OS!="mac"
2540 'outputs': [ 2538 'outputs': [
2541 '<(INTERMEDIATE_DIR)/repack/en-US.pak', 2539 '<(INTERMEDIATE_DIR)/repack/en-US.pak',
2542 ], 2540 ],
2543 }], 2541 }],
2544 ], 2542 ],
2545 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp uts)'], 2543 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp uts)'],
2546 'process_outputs_as_mac_bundle_resources': 1, 2544 'process_outputs_as_mac_bundle_resources': 1,
2547 }, 2545 },
2548 { 2546 {
2549 # TODO(mark): Make this work with more languages than the 2547 # TODO(mark): Make this work with more languages than the
2550 # hardcoded da, en-US, he, zh-TW. 2548 # hardcoded da, en-US, he, zh-TW.
2551 'action_name': 'repack_locale_he', 2549 'action_name': 'repack_locale_he',
2552 'variables': { 2550 'variables': {
2553 'pak_inputs': [ 2551 'pak_inputs': [
2554 '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_he.pak' , 2552 '<(grit_out_dir)/generated_resources_he.pak',
2555 '<(SHARED_INTERMEDIATE_DIR)/chrome/locale_settings_he.pak', 2553 '<(grit_out_dir)/locale_settings_he.pak',
2556 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_he.pak', 2554 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_he.pak',
2557 ], 2555 ],
2558 'conditions': [ 2556 'conditions': [
2559 ['branding=="Chrome"', { 2557 ['branding=="Chrome"', {
2560 'pak_inputs': [ 2558 'pak_inputs': [
2561 '<(SHARED_INTERMEDIATE_DIR)/chrome/google_chrome_strings _he.pak', 2559 '<(grit_out_dir)/google_chrome_strings_he.pak',
2562 ] 2560 ]
2563 }, { # else: branding!="Chrome" 2561 }, { # else: branding!="Chrome"
2564 'pak_inputs': [ 2562 'pak_inputs': [
2565 '<(SHARED_INTERMEDIATE_DIR)/chrome/chromium_strings_he.p ak', 2563 '<(grit_out_dir)/chromium_strings_he.pak',
2566 ] 2564 ]
2567 }], 2565 }],
2568 ], 2566 ],
2569 }, 2567 },
2570 'inputs': [ 2568 'inputs': [
2571 '<(repack_path)', 2569 '<(repack_path)',
2572 '<@(pak_inputs)', 2570 '<@(pak_inputs)',
2573 ], 2571 ],
2574 'conditions': [ 2572 'conditions': [
2575 ['OS=="mac"', { 2573 ['OS=="mac"', {
2576 'outputs': [ 2574 'outputs': [
2577 # '<(INTERMEDIATE_DIR)/repack/he.lproj/locale.pak', 2575 # '<(INTERMEDIATE_DIR)/repack/he.lproj/locale.pak',
2578 ], 2576 ],
2579 }, { # else: OS!="mac" 2577 }, { # else: OS!="mac"
2580 'outputs': [ 2578 'outputs': [
2581 '<(INTERMEDIATE_DIR)/repack/he.pak', 2579 '<(INTERMEDIATE_DIR)/repack/he.pak',
2582 ], 2580 ],
2583 }], 2581 }],
2584 ], 2582 ],
2585 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp uts)'], 2583 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp uts)'],
2586 }, 2584 },
2587 { 2585 {
2588 # TODO(mark): Make this work with more languages than the 2586 # TODO(mark): Make this work with more languages than the
2589 # hardcoded da, en-US, he, zh-TW. 2587 # hardcoded da, en-US, he, zh-TW.
2590 'action_name': 'repack_locale_zh_tw', 2588 'action_name': 'repack_locale_zh_tw',
2591 'variables': { 2589 'variables': {
2592 'pak_inputs': [ 2590 'pak_inputs': [
2593 '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_zh-TW.p ak', 2591 '<(grit_out_dir)/generated_resources_zh-TW.pak',
2594 '<(SHARED_INTERMEDIATE_DIR)/chrome/locale_settings_zh-TW.pak', 2592 '<(grit_out_dir)/locale_settings_zh-TW.pak',
2595 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_zh-TW.pak', 2593 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_zh-TW.pak',
2596 ], 2594 ],
2597 'conditions': [ 2595 'conditions': [
2598 ['branding=="Chrome"', { 2596 ['branding=="Chrome"', {
2599 'pak_inputs': [ 2597 'pak_inputs': [
2600 '<(SHARED_INTERMEDIATE_DIR)/chrome/google_chrome_strings _zh-TW.pak', 2598 '<(grit_out_dir)/google_chrome_strings_zh-TW.pak',
2601 ] 2599 ]
2602 }, { # else: branding!="Chrome" 2600 }, { # else: branding!="Chrome"
2603 'pak_inputs': [ 2601 'pak_inputs': [
2604 '<(SHARED_INTERMEDIATE_DIR)/chrome/chromium_strings_zh-T W.pak', 2602 '<(grit_out_dir)/chromium_strings_zh-TW.pak',
2605 ] 2603 ]
2606 }], 2604 }],
2607 ], 2605 ],
2608 }, 2606 },
2609 'inputs': [ 2607 'inputs': [
2610 '<(repack_path)', 2608 '<(repack_path)',
2611 '<@(pak_inputs)', 2609 '<@(pak_inputs)',
2612 ], 2610 ],
2613 'conditions': [ 2611 'conditions': [
2614 ['OS=="mac"', { 2612 ['OS=="mac"', {
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
3660 ], 3658 ],
3661 'rules': [ 3659 'rules': [
3662 { 3660 {
3663 'rule_name': 'win_version', 3661 'rule_name': 'win_version',
3664 'extension': 'version', 3662 'extension': 'version',
3665 'variables': { 3663 'variables': {
3666 'version_py': '../chrome/tools/build/version.py', 3664 'version_py': '../chrome/tools/build/version.py',
3667 'VERSION': '../chrome/VERSION', 3665 'VERSION': '../chrome/VERSION',
3668 'template_input_path': 'app/chrome_dll_version.rc.version', 3666 'template_input_path': 'app/chrome_dll_version.rc.version',
3669 'template_output_path': 3667 'template_output_path':
3670 '<(SHARED_INTERMEDIATE_DIR)/chrome/chrome_dll_version.rc', 3668 '<(grit_out_dir)/chrome_dll_version.rc',
3671 }, 3669 },
3672 'conditions': [ 3670 'conditions': [
3673 [ 'branding == "Chrome"', { 3671 [ 'branding == "Chrome"', {
3674 'variables': { 3672 'variables': {
3675 'BRANDING': 3673 'BRANDING':
3676 '../chrome/app/theme/google_chrome/BRANDING', 3674 '../chrome/app/theme/google_chrome/BRANDING',
3677 }, 3675 },
3678 }, { # else branding!="Chrome" 3676 }, { # else branding!="Chrome"
3679 'variables': { 3677 'variables': {
3680 'BRANDING': 3678 'BRANDING':
3681 '../chrome/app/theme/chromium/BRANDING', 3679 '../chrome/app/theme/chromium/BRANDING',
3682 }, 3680 },
3683 }], 3681 }],
3684 ], 3682 ],
3685 'inputs': [ 3683 'inputs': [
3686 '<(template_input_path)', 3684 '<(template_input_path)',
3687 '<(VERSION)', 3685 '<(VERSION)',
3688 '<(BRANDING)', 3686 '<(BRANDING)',
3689 ], 3687 ],
3690 'outputs': [ 3688 'outputs': [
3691 # Use a non-existant output so this action always runs and 3689 # Use a non-existant output so this action always runs and
3692 # generates version information, e.g. to capture revision 3690 # generates version information, e.g. to capture revision
3693 # changes, which aren't captured by file dependencies. 3691 # changes, which aren't captured by file dependencies.
3694 '<(SHARED_INTERMEDIATE_DIR)/chrome/chrome_dll_version.bogus', 3692 '<(grit_out_dir)/chrome_dll_version.bogus',
3695 3693
3696 # And this is the real output, so that the build system knows 3694 # And this is the real output, so that the build system knows
3697 # what action generates it. 3695 # what action generates it.
3698 '<(template_output_path)', 3696 '<(template_output_path)',
3699 ], 3697 ],
3700 'action': [ 3698 'action': [
3701 'python', 3699 'python',
3702 '<(version_py)', 3700 '<(version_py)',
3703 '-f', '<(VERSION)', 3701 '-f', '<(VERSION)',
3704 '-f', '<(BRANDING)', 3702 '-f', '<(BRANDING)',
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
4339 # Use outputs of this action as inputs for the main target build. 4337 # Use outputs of this action as inputs for the main target build.
4340 # Seems as a misnomer but makes this happy on Linux (scons). 4338 # Seems as a misnomer but makes this happy on Linux (scons).
4341 'process_outputs_as_sources': 1, 4339 'process_outputs_as_sources': 1,
4342 }, 4340 },
4343 ], # 'actions' 4341 ], # 'actions'
4344 }, 4342 },
4345 ] 4343 ]
4346 }], 4344 }],
4347 ], # 'conditions' 4345 ], # 'conditions'
4348 } 4346 }
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