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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 { | 63 { |
64 'rule_name': 'grit', | 64 'rule_name': 'grit', |
65 'extension': 'grd', | 65 'extension': 'grd', |
66 'variables': { | 66 'variables': { |
67 'conditions': [ | 67 'conditions': [ |
68 ['branding=="Chrome"', { | 68 ['branding=="Chrome"', { |
69 # TODO(mmoss) The .grd files look for _google_chrome, but for | 69 # TODO(mmoss) The .grd files look for _google_chrome, but for |
70 # consistency they should look for GOOGLE_CHROME_BUILD like C++. | 70 # consistency they should look for GOOGLE_CHROME_BUILD like C++. |
71 # Clean this up when Windows moves to gyp. | 71 # Clean this up when Windows moves to gyp. |
72 'chrome_build': '_google_chrome', | 72 'chrome_build': '_google_chrome', |
| 73 'branded_env': 'CHROMIUM_BUILD=google_chrome', |
73 }, { # else: branding!="Chrome" | 74 }, { # else: branding!="Chrome" |
74 'chrome_build': '_chromium', | 75 'chrome_build': '_chromium', |
| 76 'branded_env': 'CHROMIUM_BUILD=chromium', |
75 }], | 77 }], |
76 ], | 78 ], |
77 }, | 79 }, |
78 'inputs': [ | 80 'inputs': [ |
79 '../tools/grit/grit.py', | 81 '../tools/grit/grit.py', |
80 ], | 82 ], |
81 'outputs': [ | 83 'outputs': [ |
82 '<(SHARED_INTERMEDIATE_DIR)/chrome/grit/<(RULE_INPUT_ROOT).h', | 84 '<(SHARED_INTERMEDIATE_DIR)/chrome/grit/<(RULE_INPUT_ROOT).h', |
83 '<(SHARED_INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_ROOT).pak', | 85 '<(SHARED_INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_ROOT).pak', |
84 ], | 86 ], |
85 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', | 87 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)', |
86 'build', '-o', '<(SHARED_INTERMEDIATE_DIR)/chrome', | 88 'build', '-o', '<(SHARED_INTERMEDIATE_DIR)/chrome', |
87 '-D', '<(chrome_build)'], | 89 '-D', '<(chrome_build)', |
| 90 » '-E', '<(branded_env)', |
| 91 » ], |
88 'message': 'Generating resources from <(RULE_INPUT_PATH)', | 92 'message': 'Generating resources from <(RULE_INPUT_PATH)', |
89 }, | 93 }, |
90 ], | 94 ], |
91 'sources': [ | 95 'sources': [ |
92 # Data resources. | 96 # Data resources. |
93 'browser/debugger/resources/debugger_resources.grd', | 97 'browser/debugger/resources/debugger_resources.grd', |
94 'browser/browser_resources.grd', | 98 'browser/browser_resources.grd', |
95 'common/common_resources.grd', | 99 'common/common_resources.grd', |
96 'renderer/renderer_resources.grd', | 100 'renderer/renderer_resources.grd', |
97 ], | 101 ], |
(...skipping 3792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3890 # Use outputs of this action as inputs for the main target build. | 3894 # Use outputs of this action as inputs for the main target build. |
3891 # Seems as a misnomer but makes this happy on Linux (scons). | 3895 # Seems as a misnomer but makes this happy on Linux (scons). |
3892 'process_outputs_as_sources': 1, | 3896 'process_outputs_as_sources': 1, |
3893 }, | 3897 }, |
3894 ], # 'actions' | 3898 ], # 'actions' |
3895 }, | 3899 }, |
3896 ] | 3900 ] |
3897 }], | 3901 }], |
3898 ], # 'conditions' | 3902 ], # 'conditions' |
3899 } | 3903 } |
OLD | NEW |