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: build/common.gypi

Issue 9316112: First pass at chrome_browser gyp simplification. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | « no previous file | chrome/chrome_browser.gypi » ('j') | chrome/chrome_browser.gypi » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 # well; such hosts should pass an explicit target_arch to gyp. 61 # well; such hosts should pass an explicit target_arch to gyp.
62 'host_arch%': 62 'host_arch%':
63 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a rm.*/arm/;s/i86pc/ia32/")', 63 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a rm.*/arm/;s/i86pc/ia32/")',
64 }], 64 }],
65 65
66 # Ash and ChromeOS require Aura. 66 # Ash and ChromeOS require Aura.
67 ['use_ash==1 or chromeos==1', { 67 ['use_ash==1 or chromeos==1', {
68 'use_aura%': 1, 68 'use_aura%': 1,
69 }], 69 }],
70 70
71 # Set default value of toolkit_views based on OS. 71 # Set value of toolkit_views based on OS.
72 ['OS=="win" or chromeos==1 or use_aura==1', { 72 ['OS=="win" or chromeos==1 or use_aura==1', {
73 'toolkit_views%': 1, 73 'toolkit_views%': 1,
74 }, { 74 }, {
75 'toolkit_views%': 0, 75 'toolkit_views%': 0,
76 }], 76 }],
77 ], 77 ],
78 }, 78 },
79 79
80 # Copy conditionally-set variables out one scope. 80 # Copy conditionally-set variables out one scope.
81 'chromeos%': '<(chromeos)', 81 'chromeos%': '<(chromeos)',
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 # NSS usage. 287 # NSS usage.
288 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==0', { 288 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==0', {
289 'use_nss%': 1, 289 'use_nss%': 1,
290 }, { 290 }, {
291 'use_nss%': 0, 291 'use_nss%': 0,
292 }], 292 }],
293 293
294 # Flags to use X11 on non-Mac POSIX platforms 294 # Flags to use X11 on non-Mac POSIX platforms
295 ['OS=="win" or OS=="mac" or OS=="android"', { 295 ['OS=="win" or OS=="mac" or OS=="android"', {
296 'use_glib%': 0, 296 'use_glib%': 0,
297 'toolkit_uses_gtk%': 0,
298 'use_x11%': 0, 297 'use_x11%': 0,
299 }, { 298 }, {
300 # TODO(dnicoara) Wayland build should have these disabled, but
Lei Zhang 2012/02/04 01:58:15 I think this note still applies to use_glib and us
Emmanuel Saint-loubert-Bié 2012/02/05 17:37:17 Done.
301 # currently GTK and X is too spread and it's hard to completely
302 # remove every dependency.
303 'use_glib%': 1, 299 'use_glib%': 1,
304 'toolkit_uses_gtk%': 1,
305 'use_x11%': 1, 300 'use_x11%': 1,
306 }], 301 }],
302
303 # Aura and most platforms never use GTK.
304 ['use_aura==1 or OS=="win" or OS=="mac" or OS=="android"', {
305 'toolkit_uses_gtk%': 0,
306 }, {
307 'toolkit_uses_gtk%': 1,
308 }],
309
307 # We always use skia text rendering in Aura on Windows, since GDI 310 # We always use skia text rendering in Aura on Windows, since GDI
308 # doesn't agree with our BackingStore. 311 # doesn't agree with our BackingStore.
309 # TODO(beng): remove once skia text rendering is on by default. 312 # TODO(beng): remove once skia text rendering is on by default.
310 ['use_aura==1 and OS=="win"', { 313 ['use_aura==1 and OS=="win"', {
311 'enable_skia_text%': 1, 314 'enable_skia_text%': 1,
312 }], 315 }],
313 ['use_aura==1 and OS!="win"', {
314 'toolkit_uses_gtk%': 0,
315 }],
316 316
317 # A flag to enable or disable our compile-time dependency 317 # A flag to enable or disable our compile-time dependency
318 # on gnome-keyring. If that dependency is disabled, no gnome-keyring 318 # on gnome-keyring. If that dependency is disabled, no gnome-keyring
319 # support will be available. This option is useful 319 # support will be available. This option is useful
320 # for Linux distributions and for Aura. 320 # for Aura.
Lei Zhang 2012/02/04 01:58:15 I'd put this part of the comment back. It is usefu
Emmanuel Saint-loubert-Bié 2012/02/05 17:37:17 Done.
321 ['chromeos==1 or use_aura==1', { 321 ['use_aura==1', {
322 'use_gnome_keyring%': 0, 322 'use_gnome_keyring%': 0,
323 }, { 323 }, {
324 'use_gnome_keyring%': 1, 324 'use_gnome_keyring%': 1,
325 }], 325 }],
326 326
327 ['toolkit_views==0 or OS=="mac"', { 327 ['toolkit_views==0 or OS=="mac"', {
328 # GTK+ and Mac wants Title Case strings 328 # GTK+ and Mac wants Title Case strings
329 'use_titlecase_in_grd_files%': 1, 329 'use_titlecase_in_grd_files%': 1,
330 }], 330 }],
331 331
332 # Enable some hacks to support Flapper only on Chrome OS. 332 # Enable some hacks to support Flapper only on Chrome OS.
333 # Enable file manager extension on ChromeOS.
333 ['chromeos==1', { 334 ['chromeos==1', {
334 'enable_flapper_hacks%': 1, 335 'enable_flapper_hacks%': 1,
336 'file_manager_extension%': 1,
335 }, { 337 }, {
336 'enable_flapper_hacks%': 0, 338 'enable_flapper_hacks%': 0,
337 }],
338
339 # Enable file manager extension on Chrome OS or Aura.
340 ['chromeos==1 or use_aura==1', {
341 'file_manager_extension%': 1,
342 }, {
343 'file_manager_extension%': 0, 339 'file_manager_extension%': 0,
344 }], 340 }],
345 341
346 # ... except on Windows even with Aura. 342 # Enable WebUI TaskManager on Aura.
347 ['use_aura==1 and OS=="win"', { 343 ['use_aura==1', {
348 'file_manager_extension%': 0,
349 }],
350
351 # Enable WebUI TaskManager on Chrome OS or Aura.
352 ['chromeos==1 or use_aura==1', {
353 'webui_task_manager%': 1, 344 'webui_task_manager%': 1,
354 }], 345 }],
355 346
356 ['OS=="android"', { 347 ['OS=="android"', {
357 'proprietary_codecs%': 1, 348 'proprietary_codecs%': 1,
358 'enable_webrtc%': 0, 349 'enable_webrtc%': 0,
359 }], 350 }],
360 351
361 # Use GPU accelerated cross process image transport by default 352 # Use GPU accelerated cross process image transport by default
362 # on linux builds with the Aura window manager 353 # on linux builds with the Aura window manager
363 ['use_aura==1 and OS=="linux"', { 354 ['use_aura==1 and OS=="linux"', {
364 'ui_compositor_image_transport%': 1, 355 'ui_compositor_image_transport%': 1,
365 }, { 356 }, {
366 'ui_compositor_image_transport%': 0, 357 'ui_compositor_image_transport%': 0,
367 }], 358 }],
368 359
369 # Turn precompiled headers on by default for VS 2010. 360 # Turn precompiled headers on by default for VS 2010.
370 ['OS=="win" and MSVS_VERSION=="2010"', { 361 ['OS=="win" and MSVS_VERSION=="2010"', {
371 'chromium_win_pch%': 1 362 'chromium_win_pch%': 1
372 }], 363 }],
373 364
374 ['use_aura==1 or chromeos==1', { 365 # No plugin installation allowed under Aura.
366 ['use_aura==1', {
375 'enable_plugin_installation%': 0, 367 'enable_plugin_installation%': 0,
376 }, { 368 }, {
377 'enable_plugin_installation%': 1, 369 'enable_plugin_installation%': 1,
378 }], 370 }],
379 371
380 # Set to 0 to not use third_party/gold as the linker. 372 # Set to 0 to not use third_party/gold as the linker.
381 # On by default for x64 Linux. Off for ChromeOS as cross-compiling 373 # On by default for x64 Linux. Off for ChromeOS as cross-compiling
382 # makes things complicated. 374 # makes things complicated.
383 ['chromeos==0 and host_arch=="x64"', { 375 ['chromeos==0 and host_arch=="x64"', {
384 'linux_use_gold_binary%': 1, 376 'linux_use_gold_binary%': 1,
(...skipping 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after
2761 # settings in target dicts. SYMROOT is a special case, because many other 2753 # settings in target dicts. SYMROOT is a special case, because many other
2762 # Xcode variables depend on it, including variables such as 2754 # Xcode variables depend on it, including variables such as
2763 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 2755 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
2764 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 2756 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
2765 # files to appear (when present) in the UI as actual files and not red 2757 # files to appear (when present) in the UI as actual files and not red
2766 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 2758 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
2767 # and therefore SYMROOT, needs to be set at the project level. 2759 # and therefore SYMROOT, needs to be set at the project level.
2768 'SYMROOT': '<(DEPTH)/xcodebuild', 2760 'SYMROOT': '<(DEPTH)/xcodebuild',
2769 }, 2761 },
2770 } 2762 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_browser.gypi » ('j') | chrome/chrome_browser.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698