OLD | NEW |
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. |
11 'variables': { | 11 'variables': { |
12 # Putting a variables dict inside another variables dict looks kind of | 12 # Putting a variables dict inside another variables dict looks kind of |
13 # weird. This is done so that 'host_arch', 'chromeos', etc are defined as | 13 # weird. This is done so that 'host_arch', 'chromeos', etc are defined as |
14 # variables within the outer variables dict here. This is necessary | 14 # variables within the outer variables dict here. This is necessary |
15 # to get these variables defined for the conditions within this variables | 15 # to get these variables defined for the conditions within this variables |
16 # dict that operate on these variables. | 16 # dict that operate on these variables. |
17 'variables': { | 17 'variables': { |
18 'variables': { | 18 'variables': { |
19 'variables': { | 19 'variables': { |
20 # Whether we're building a ChromeOS build. | 20 'variables': { |
21 'chromeos%': 0, | 21 # Whether we're building a ChromeOS build. |
| 22 'chromeos%': 0, |
| 23 |
| 24 # Whether or not we are using the Aura windowing framework. |
| 25 'use_aura%': 0, |
| 26 |
| 27 # Whether or not we are building the Ash shell. |
| 28 'use_ash%': 0, |
| 29 }, |
| 30 # Copy conditionally-set variables out one scope. |
| 31 'chromeos%': '<(chromeos)', |
| 32 'use_aura%': '<(use_aura)', |
| 33 'use_ash%': '<(use_ash)', |
22 | 34 |
23 # Whether we are using Views Toolkit | 35 # Whether we are using Views Toolkit |
24 'toolkit_views%': 0, | 36 'toolkit_views%': 0, |
25 | 37 |
26 # Whether or not we are using the Aura windowing framework. | |
27 'use_aura%': 0, | |
28 | |
29 # Whether or not we are building the Ash shell. | |
30 'use_ash%': 0, | |
31 | |
32 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/
62803 | 38 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/
62803 |
33 'use_openssl%': 0, | 39 'use_openssl%': 0, |
34 | 40 |
35 'use_ibus%': 0, | 41 'use_ibus%': 0, |
36 | 42 |
37 # Disable viewport meta tag by default. | 43 # Disable viewport meta tag by default. |
38 'enable_viewport%': 0, | 44 'enable_viewport%': 0, |
39 | 45 |
40 # Enable HiDPI support. | 46 # Enable HiDPI support. |
41 'enable_hidpi%': 0, | 47 'enable_hidpi%': 0, |
42 | 48 |
43 # Enable touch optimized art assets and metrics. | 49 # Enable touch optimized art assets and metrics. |
44 'enable_touch_ui%': 0, | 50 'enable_touch_ui%': 0, |
45 | 51 |
46 # Is this change part of the android upstream bringup? | 52 # Is this change part of the android upstream bringup? |
47 # Allows us to *temporarily* disable certain things for | 53 # Allows us to *temporarily* disable certain things for |
48 # staging. Only set to 1 in a GYP_DEFINES. | 54 # staging. Only set to 1 in a GYP_DEFINES. |
49 'android_upstream_bringup%': 0, | 55 'android_upstream_bringup%': 0, |
50 | 56 |
51 # Override buildtype to select the desired build flavor. | 57 # Override buildtype to select the desired build flavor. |
52 # Dev - everyday build for development/testing | 58 # Dev - everyday build for development/testing |
53 # Official - release build (generally implies additional processing) | 59 # Official - release build (generally implies additional processing) |
54 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp | 60 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp |
55 # conversion is done), some of the things which are now controlled by | 61 # conversion is done), some of the things which are now controlled by |
56 # 'branding', such as symbol generation, will need to be refactored | 62 # 'branding', such as symbol generation, will need to be refactored |
57 # based on 'buildtype' (i.e. we don't care about saving symbols for | 63 # based on 'buildtype' (i.e. we don't care about saving symbols for |
58 # non-Official # builds). | 64 # non-Official # builds). |
59 'buildtype%': 'Dev', | 65 'buildtype%': 'Dev', |
| 66 |
| 67 'conditions': [ |
| 68 # ChromeOS implies ash. |
| 69 ['chromeos==1', { |
| 70 'use_ash%': 1, |
| 71 'use_aura%': 1, |
| 72 }], |
| 73 |
| 74 # For now, Windows builds that |use_aura| should also imply using |
| 75 # ash. This rule should be removed for the future when Windows is |
| 76 # using the aura windows without the ash interface. |
| 77 ['use_aura==1 and OS=="win"', { |
| 78 'use_ash%': 1, |
| 79 }], |
| 80 ['use_ash==1', { |
| 81 'use_aura%': 1, |
| 82 }], |
| 83 ], |
60 }, | 84 }, |
61 # Copy conditionally-set variables out one scope. | 85 # Copy conditionally-set variables out one scope. |
62 'chromeos%': '<(chromeos)', | 86 'chromeos%': '<(chromeos)', |
63 'use_aura%': '<(use_aura)', | 87 'use_aura%': '<(use_aura)', |
64 'use_ash%': '<(use_ash)', | 88 'use_ash%': '<(use_ash)', |
65 'use_openssl%': '<(use_openssl)', | 89 'use_openssl%': '<(use_openssl)', |
66 'use_ibus%': '<(use_ibus)', | 90 'use_ibus%': '<(use_ibus)', |
67 'enable_viewport%': '<(enable_viewport)', | 91 'enable_viewport%': '<(enable_viewport)', |
68 'enable_hidpi%': '<(enable_hidpi)', | 92 'enable_hidpi%': '<(enable_hidpi)', |
69 'enable_touch_ui%': '<(enable_touch_ui)', | 93 'enable_touch_ui%': '<(enable_touch_ui)', |
(...skipping 10 matching lines...) Expand all Loading... |
80 ['OS=="win" or OS=="mac" or OS=="ios"', { | 104 ['OS=="win" or OS=="mac" or OS=="ios"', { |
81 'host_arch%': 'ia32', | 105 'host_arch%': 'ia32', |
82 }, { | 106 }, { |
83 # This handles the Unix platforms for which there is some support. | 107 # This handles the Unix platforms for which there is some support. |
84 # Anything else gets passed through, which probably won't work very | 108 # Anything else gets passed through, which probably won't work very |
85 # well; such hosts should pass an explicit target_arch to gyp. | 109 # well; such hosts should pass an explicit target_arch to gyp. |
86 'host_arch%': | 110 'host_arch%': |
87 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a
rm.*/arm/;s/i86pc/ia32/")', | 111 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a
rm.*/arm/;s/i86pc/ia32/")', |
88 }], | 112 }], |
89 | 113 |
90 # Chromeos implies ash. | |
91 ['chromeos==1', { | |
92 'use_ash%': 1, | |
93 'use_aura%': 1, | |
94 }], | |
95 | |
96 # For now, Windows *AND* Linux builds that |use_aura| should also | |
97 # imply using ash. This rule should be removed for the future when | |
98 # both Linux and Windows are using the aura windows without the ash | |
99 # interface. | |
100 ['use_aura==1 and OS=="win"', { | |
101 'use_ash%': 1, | |
102 }], | |
103 ['use_ash==1', { | |
104 'use_aura%': 1, | |
105 }], | |
106 | |
107 # Set default value of toolkit_views based on OS. | 114 # Set default value of toolkit_views based on OS. |
108 ['OS=="win" or chromeos==1 or use_aura==1', { | 115 ['OS=="win" or chromeos==1 or use_aura==1', { |
109 'toolkit_views%': 1, | 116 'toolkit_views%': 1, |
110 }, { | 117 }, { |
111 'toolkit_views%': 0, | 118 'toolkit_views%': 0, |
112 }], | 119 }], |
113 | 120 |
| 121 # Set toolkit_uses_gtk for the Chromium browser on Linux. |
| 122 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and
use_aura==0', { |
| 123 'toolkit_uses_gtk%': 1, |
| 124 }, { |
| 125 'toolkit_uses_gtk%': 0, |
| 126 }], |
| 127 |
114 # Enable HiDPI on Mac OS. | 128 # Enable HiDPI on Mac OS. |
115 ['OS=="mac"', { | 129 ['OS=="mac"', { |
116 'enable_hidpi%': 1, | 130 'enable_hidpi%': 1, |
117 }], | 131 }], |
118 | 132 |
119 # Enable touch UI on Metro and Chrome OS. | 133 # Enable touch UI on Metro and Chrome OS. |
120 ['OS=="win" or chromeos==1', { | 134 ['OS=="win" or chromeos==1', { |
121 'enable_touch_ui%': 1, | 135 'enable_touch_ui%': 1, |
122 }], | 136 }], |
123 ], | 137 ], |
124 }, | 138 }, |
125 | 139 |
126 # Copy conditionally-set variables out one scope. | 140 # Copy conditionally-set variables out one scope. |
127 'chromeos%': '<(chromeos)', | 141 'chromeos%': '<(chromeos)', |
128 'host_arch%': '<(host_arch)', | 142 'host_arch%': '<(host_arch)', |
129 'toolkit_views%': '<(toolkit_views)', | 143 'toolkit_views%': '<(toolkit_views)', |
| 144 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', |
130 'use_aura%': '<(use_aura)', | 145 'use_aura%': '<(use_aura)', |
131 'use_ash%': '<(use_ash)', | 146 'use_ash%': '<(use_ash)', |
132 'use_openssl%': '<(use_openssl)', | 147 'use_openssl%': '<(use_openssl)', |
133 'use_ibus%': '<(use_ibus)', | 148 'use_ibus%': '<(use_ibus)', |
134 'enable_viewport%': '<(enable_viewport)', | 149 'enable_viewport%': '<(enable_viewport)', |
135 'enable_hidpi%': '<(enable_hidpi)', | 150 'enable_hidpi%': '<(enable_hidpi)', |
136 'enable_touch_ui%': '<(enable_touch_ui)', | 151 'enable_touch_ui%': '<(enable_touch_ui)', |
137 'android_upstream_bringup%': '<(android_upstream_bringup)', | 152 'android_upstream_bringup%': '<(android_upstream_bringup)', |
138 'android_build_type%': '<(android_build_type)', | 153 'android_build_type%': '<(android_build_type)', |
139 | 154 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 | 420 |
406 # Flags to use X11 on non-Mac POSIX platforms | 421 # Flags to use X11 on non-Mac POSIX platforms |
407 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', { | 422 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', { |
408 'use_glib%': 0, | 423 'use_glib%': 0, |
409 'use_x11%': 0, | 424 'use_x11%': 0, |
410 }, { | 425 }, { |
411 'use_glib%': 1, | 426 'use_glib%': 1, |
412 'use_x11%': 1, | 427 'use_x11%': 1, |
413 }], | 428 }], |
414 | 429 |
415 # Set toolkit_uses_gtk for the Chromium browser on Linux. | |
416 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u
se_aura==0', { | |
417 'toolkit_uses_gtk%': 1, | |
418 }, { | |
419 'toolkit_uses_gtk%': 0, | |
420 }], | |
421 | |
422 # We always use skia text rendering in Aura on Windows, since GDI | 430 # We always use skia text rendering in Aura on Windows, since GDI |
423 # doesn't agree with our BackingStore. | 431 # doesn't agree with our BackingStore. |
424 # TODO(beng): remove once skia text rendering is on by default. | 432 # TODO(beng): remove once skia text rendering is on by default. |
425 ['use_aura==1 and OS=="win"', { | 433 ['use_aura==1 and OS=="win"', { |
426 'enable_skia_text%': 1, | 434 'enable_skia_text%': 1, |
427 }], | 435 }], |
428 | 436 |
429 # A flag to enable or disable our compile-time dependency | 437 # A flag to enable or disable our compile-time dependency |
430 # on gnome-keyring. If that dependency is disabled, no gnome-keyring | 438 # on gnome-keyring. If that dependency is disabled, no gnome-keyring |
431 # support will be available. This option is useful | 439 # support will be available. This option is useful |
432 # for Linux distributions and for Aura. | 440 # for Linux distributions and for Aura. |
433 ['chromeos==1 or use_aura==1', { | 441 ['chromeos==1 or use_aura==1', { |
434 'use_gnome_keyring%': 0, | 442 'use_gnome_keyring%': 0, |
435 }, { | 443 }, { |
436 'use_gnome_keyring%': 1, | 444 'use_gnome_keyring%': 1, |
437 }], | 445 }], |
438 | 446 |
439 ['toolkit_views==0 or OS=="mac" or OS=="ios"', { | 447 ['toolkit_uses_gtk==1 or OS=="mac" or OS=="ios"', { |
440 # GTK+, Mac and iOS want Title Case strings | 448 # GTK+, Mac and iOS want Title Case strings |
441 'use_titlecase_in_grd_files%': 1, | 449 'use_titlecase_in_grd_files%': 1, |
442 }], | 450 }], |
443 | 451 |
444 # Enable file manager extension on Chrome OS. | 452 # Enable file manager extension on Chrome OS. |
445 ['chromeos==1', { | 453 ['chromeos==1', { |
446 'file_manager_extension%': 1, | 454 'file_manager_extension%': 1, |
447 }, { | 455 }, { |
448 'file_manager_extension%': 0, | 456 'file_manager_extension%': 0, |
449 }], | 457 }], |
(...skipping 2891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3341 # settings in target dicts. SYMROOT is a special case, because many other | 3349 # settings in target dicts. SYMROOT is a special case, because many other |
3342 # Xcode variables depend on it, including variables such as | 3350 # Xcode variables depend on it, including variables such as |
3343 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3351 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3344 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3352 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3345 # files to appear (when present) in the UI as actual files and not red | 3353 # files to appear (when present) in the UI as actual files and not red |
3346 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3354 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3347 # and therefore SYMROOT, needs to be set at the project level. | 3355 # and therefore SYMROOT, needs to be set at the project level. |
3348 'SYMROOT': '<(DEPTH)/xcodebuild', | 3356 'SYMROOT': '<(DEPTH)/xcodebuild', |
3349 }, | 3357 }, |
3350 } | 3358 } |
OLD | NEW |