OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 (e.g., for setting 'toolkit_views', | 16 # dict that operate on these variables (e.g., for setting 'toolkit_views', |
17 # we need to have 'chromeos' already set). | 17 # we need to have 'chromeos' already set). |
18 'variables': { | 18 'variables': { |
19 'variables': { | 19 'variables': { |
20 'variables': { | 20 'variables': { |
21 # Whether we're building a ChromeOS build. | 21 # Whether we're building a ChromeOS build. |
22 'chromeos%': 0, | 22 'chromeos%': 0, |
23 | 23 |
| 24 # Whether we are using Views Toolkit |
| 25 'toolkit_views%': 0, |
| 26 |
24 # Whether the Views toolkit can use its Pure form when available | 27 # Whether the Views toolkit can use its Pure form when available |
25 # or if it must only use GTK (the default at the moment). | 28 # or if it must only use GTK (the default at the moment). |
26 # This is an intermediate step until all of Views is 'Pure', | 29 # This is an intermediate step until all of Views is 'Pure', |
27 # at which point we plan to remove those switches. | 30 # at which point we plan to remove those switches. |
28 # This turns on the USE_ONLY_PURE_VIEWS macro. | 31 # This turns on the USE_ONLY_PURE_VIEWS macro. |
29 'use_only_pure_views%': 0, | 32 'use_only_pure_views%': 0, |
30 | 33 |
31 # Disable touch support by default. | 34 # Disable touch support by default. |
32 'touchui%': 0, | 35 'touchui%': 0, |
33 | 36 |
(...skipping 23 matching lines...) Expand all Loading... |
57 }, { | 60 }, { |
58 # This handles the Unix platforms for which there is some support. | 61 # This handles the Unix platforms for which there is some support. |
59 # Anything else gets passed through, which probably won't work very | 62 # Anything else gets passed through, which probably won't work very |
60 # well; such hosts should pass an explicit target_arch to gyp. | 63 # well; such hosts should pass an explicit target_arch to gyp. |
61 'host_arch%': | 64 'host_arch%': |
62 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a
rm.*/arm/;s/i86pc/ia32/")', | 65 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a
rm.*/arm/;s/i86pc/ia32/")', |
63 }], | 66 }], |
64 | 67 |
65 # Set default value of toolkit_views on for Windows, Chrome OS, | 68 # Set default value of toolkit_views on for Windows, Chrome OS, |
66 # Touch and PureView. | 69 # Touch and PureView. |
67 ['OS=="win" or chromeos==1 or touchui==1 or use_only_pure_views==1', { | 70 ['OS=="win" or chromeos==1 or touchui==1 or use_only_pure_views==1 or
use_aura==1', { |
68 'toolkit_views%': 1, | 71 'toolkit_views%': 1, |
69 }, { | 72 }, { |
70 'toolkit_views%': 0, | 73 'toolkit_views%': 0, |
71 }], | 74 }], |
72 | 75 |
73 # Views are always Pure in Touch case. | 76 # Views are always Pure in Touch and Aura case. |
74 ['touchui==1', { | 77 ['touchui==1 or use_aura==1', { |
75 'use_only_pure_views%': 1, | 78 'use_only_pure_views%': 1, |
76 }, { | 79 }, { |
77 'use_only_pure_views%': 0, | 80 'use_only_pure_views%': 0, |
78 }], | 81 }], |
79 | 82 |
80 # Use WebUI dialogs in TouchUI and PureView builds. | 83 # Use WebUI dialogs in TouchUI and PureView builds. |
81 ['touchui==1 or use_only_pure_views==1', { | 84 ['touchui==1 or use_only_pure_views==1 or use_aura==1', { |
82 'webui_dialogs%': 1, | 85 'webui_dialogs%': 1, |
83 }], | 86 }], |
84 | 87 |
85 # Use the views compositor when using the Aura window manager. | 88 # Use the views compositor when using the Aura window manager. |
86 ['use_aura==1', { | 89 ['use_aura==1', { |
87 'views_compositor%': 1, | 90 'views_compositor%': 1, |
88 }], | 91 }], |
89 ], | 92 ], |
90 }, | 93 }, |
91 | 94 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 }], | 267 }], |
265 | 268 |
266 # Enable file manager extension by default on Chrome OS. | 269 # Enable file manager extension by default on Chrome OS. |
267 ['chromeos==1', { | 270 ['chromeos==1', { |
268 'file_manager_extension%': 1, | 271 'file_manager_extension%': 1, |
269 }, { | 272 }, { |
270 'file_manager_extension%': 0, | 273 'file_manager_extension%': 0, |
271 }], | 274 }], |
272 | 275 |
273 # Enable WebUI TaskManager only on Chrome OS, Touch or PureView. | 276 # Enable WebUI TaskManager only on Chrome OS, Touch or PureView. |
274 ['chromeos==1 or touchui==1 or use_only_pure_views==1', { | 277 ['chromeos==1 or touchui==1 or use_only_pure_views==1 or use_aura==1', { |
275 'webui_task_manager%': 1, | 278 'webui_task_manager%': 1, |
276 }, { | 279 }, { |
277 'webui_task_manager%': 0, | 280 'webui_task_manager%': 0, |
278 }], | 281 }], |
279 | 282 |
280 # Enable smooth scrolling for Mac, Win, Linux and ChromeOS | 283 # Enable smooth scrolling for Mac, Win, Linux and ChromeOS |
281 ['OS=="linux" or OS=="mac" or OS=="win"', { | 284 ['OS=="linux" or OS=="mac" or OS=="win"', { |
282 'enable_smooth_scrolling%': 1, | 285 'enable_smooth_scrolling%': 1, |
283 }, { | 286 }, { |
284 'enable_smooth_scrolling%': 0, | 287 'enable_smooth_scrolling%': 0, |
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2052 # settings in target dicts. SYMROOT is a special case, because many other | 2055 # settings in target dicts. SYMROOT is a special case, because many other |
2053 # Xcode variables depend on it, including variables such as | 2056 # Xcode variables depend on it, including variables such as |
2054 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2057 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
2055 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2058 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
2056 # files to appear (when present) in the UI as actual files and not red | 2059 # files to appear (when present) in the UI as actual files and not red |
2057 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2060 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
2058 # and therefore SYMROOT, needs to be set at the project level. | 2061 # and therefore SYMROOT, needs to be set at the project level. |
2059 'SYMROOT': '<(DEPTH)/xcodebuild', | 2062 'SYMROOT': '<(DEPTH)/xcodebuild', |
2060 }, | 2063 }, |
2061 } | 2064 } |
OLD | NEW |