OLD | NEW |
---|---|
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 'target_defaults': { | 6 'target_defaults': { |
7 'variables': { | 7 'variables': { |
8 'chrome_exe_target': 0, | 8 'chrome_exe_target': 0, |
9 }, | 9 }, |
10 'target_conditions': [ | 10 'target_conditions': [ |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
134 ], | 134 ], |
135 }, | 135 }, |
136 'targets': [ | 136 'targets': [ |
137 { | 137 { |
138 'target_name': 'chrome', | 138 'target_name': 'chrome', |
139 'type': 'executable', | 139 'type': 'executable', |
140 'mac_bundle': 1, | 140 'mac_bundle': 1, |
141 'msvs_guid': '7B219FAA-E360-43C8-B341-804A94EEFFAC', | 141 'msvs_guid': '7B219FAA-E360-43C8-B341-804A94EEFFAC', |
142 'variables': { | 142 'variables': { |
143 'chrome_exe_target': 1, | 143 'chrome_exe_target': 1, |
144 'use_system_xdg_utils%': 0, | |
Mike Mammarella
2011/01/18 18:17:19
Would it be possible to put this constant along wi
| |
144 }, | 145 }, |
145 'conditions': [ | 146 'conditions': [ |
146 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | 147 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
147 'actions': [ | 148 'actions': [ |
148 { | 149 { |
149 'action_name': 'manpage', | 150 'action_name': 'manpage', |
150 'conditions': [ | 151 'conditions': [ |
151 [ 'branding == "Chrome"', { | 152 [ 'branding == "Chrome"', { |
152 'variables': { | 153 'variables': { |
153 'name': 'Google Chrome', | 154 'name': 'Google Chrome', |
(...skipping 26 matching lines...) Expand all Loading... | |
180 'message': 'Generating manpage' | 181 'message': 'Generating manpage' |
181 }, | 182 }, |
182 ], | 183 ], |
183 'conditions': [ | 184 'conditions': [ |
184 [ 'linux_use_tcmalloc==1', { | 185 [ 'linux_use_tcmalloc==1', { |
185 'dependencies': [ | 186 'dependencies': [ |
186 '<(allocator_target)', | 187 '<(allocator_target)', |
187 ], | 188 ], |
188 }, | 189 }, |
189 ], | 190 ], |
191 ['use_system_xdg_utils==0', { | |
192 'copies': [ | |
193 { | |
194 'destination': '<(PRODUCT_DIR)', | |
195 'files': ['tools/build/linux/chrome-wrapper', | |
Mike Mammarella
2011/01/18 18:17:19
The chrome-wrapper script isn't part of xdg-utils;
| |
196 '../third_party/xdg-utils/scripts/xdg-mime', | |
197 '../third_party/xdg-utils/scripts/xdg-settings', | |
198 ], | |
199 # The wrapper script above may need to generate a .desktop | |
200 # file, which requires an icon. So, copy one next to the | |
201 # script. | |
202 'conditions': [ | |
203 ['branding=="Chrome"', { | |
204 'files': ['app/theme/google_chrome/product_logo_48.png'] | |
205 }, { # else: 'branding!="Chrome" | |
206 'files': ['app/theme/chromium/product_logo_48.png'] | |
207 }], | |
208 ], | |
209 }, | |
210 ], | |
211 }], | |
190 ], | 212 ], |
191 'dependencies': [ | 213 'dependencies': [ |
192 # On Linux, link the dependencies (libraries) that make up actual | 214 # On Linux, link the dependencies (libraries) that make up actual |
193 # Chromium functionality directly into the executable. | 215 # Chromium functionality directly into the executable. |
194 '<@(chromium_dependencies)', | 216 '<@(chromium_dependencies)', |
195 # Needed for chrome_main.cc initialization of libraries. | 217 # Needed for chrome_main.cc initialization of libraries. |
196 '../build/linux/system.gyp:dbus-glib', | 218 '../build/linux/system.gyp:dbus-glib', |
197 '../build/linux/system.gyp:gtk', | 219 '../build/linux/system.gyp:gtk', |
198 'packed_resources', | 220 'packed_resources', |
199 # Needed to use the master_preferences functions | 221 # Needed to use the master_preferences functions |
200 'installer_util', | 222 'installer_util', |
201 ], | 223 ], |
202 'sources': [ | 224 'sources': [ |
203 'app/chrome_main.cc', | 225 'app/chrome_main.cc', |
204 'app/chrome_dll_resource.h', | 226 'app/chrome_dll_resource.h', |
205 ], | 227 ], |
206 'copies': [ | |
207 { | |
208 'destination': '<(PRODUCT_DIR)', | |
209 'files': ['tools/build/linux/chrome-wrapper', | |
210 '../third_party/xdg-utils/scripts/xdg-mime', | |
211 '../third_party/xdg-utils/scripts/xdg-settings', | |
212 ], | |
213 # The wrapper script above may need to generate a .desktop file, | |
214 # which requires an icon. So, copy one next to the script. | |
215 'conditions': [ | |
216 ['branding=="Chrome"', { | |
217 'files': ['app/theme/google_chrome/product_logo_48.png'] | |
218 }, { # else: 'branding!="Chrome" | |
219 'files': ['app/theme/chromium/product_logo_48.png'] | |
220 }], | |
221 ], | |
222 }, | |
223 ], | |
224 }], | 228 }], |
225 ['OS=="mac"', { | 229 ['OS=="mac"', { |
226 # 'branding' is a variable defined in common.gypi | 230 # 'branding' is a variable defined in common.gypi |
227 # (e.g. "Chromium", "Chrome") | 231 # (e.g. "Chromium", "Chrome") |
228 'conditions': [ | 232 'conditions': [ |
229 ['branding=="Chrome"', { | 233 ['branding=="Chrome"', { |
230 'mac_bundle_resources': [ | 234 'mac_bundle_resources': [ |
231 'app/theme/google_chrome/app.icns', | 235 'app/theme/google_chrome/app.icns', |
232 'app/theme/google_chrome/document.icns', | 236 'app/theme/google_chrome/document.icns', |
233 'browser/ui/cocoa/applescript/scripting.sdef', | 237 'browser/ui/cocoa/applescript/scripting.sdef', |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
509 'configurations': { | 513 'configurations': { |
510 'Common_Base': { | 514 'Common_Base': { |
511 'msvs_target_platform': 'x64', | 515 'msvs_target_platform': 'x64', |
512 }, | 516 }, |
513 }, | 517 }, |
514 }, | 518 }, |
515 ], | 519 ], |
516 }], | 520 }], |
517 ], | 521 ], |
518 } | 522 } |
OLD | NEW |