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. |
(...skipping 16 matching lines...) Expand all Loading... |
27 # Whether the Views toolkit can use its Pure form when available | 27 # Whether the Views toolkit can use its Pure form when available |
28 # 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). |
29 # This is an intermediate step until all of Views is 'Pure', | 29 # This is an intermediate step until all of Views is 'Pure', |
30 # at which point we plan to remove those switches. | 30 # at which point we plan to remove those switches. |
31 # This turns on the USE_ONLY_PURE_VIEWS macro. | 31 # This turns on the USE_ONLY_PURE_VIEWS macro. |
32 'use_only_pure_views%': 0, | 32 'use_only_pure_views%': 0, |
33 | 33 |
34 # Disable touch support by default. | 34 # Disable touch support by default. |
35 'touchui%': 0, | 35 'touchui%': 0, |
36 | 36 |
37 # Disable webui dialog replacements for native dialogs by default. | |
38 # TODO(flackr): Change this to a runtime flag triggered by | |
39 # --pure-views so that these dialogs can be easily tested. | |
40 'webui_dialogs%': 0, | |
41 | |
42 # Whether the compositor is enabled on views. | 37 # Whether the compositor is enabled on views. |
43 'views_compositor%': 0, | 38 'views_compositor%': 0, |
44 | 39 |
45 # Whether or not we are building with the Aura window manager. | 40 # Whether or not we are building with the Aura window manager. |
46 'use_aura%': 0, | 41 'use_aura%': 0, |
47 }, | 42 }, |
48 # Copy conditionally-set variables out one scope. | 43 # Copy conditionally-set variables out one scope. |
49 'chromeos%': '<(chromeos)', | 44 'chromeos%': '<(chromeos)', |
50 'use_only_pure_views%': '<(use_only_pure_views)', | 45 'use_only_pure_views%': '<(use_only_pure_views)', |
51 'touchui%': '<(touchui)', | 46 'touchui%': '<(touchui)', |
52 'webui_dialogs%': '<(webui_dialogs)', | |
53 'views_compositor%': '<(views_compositor)', | 47 'views_compositor%': '<(views_compositor)', |
54 'use_aura%': '<(use_aura)', | 48 'use_aura%': '<(use_aura)', |
55 | 49 |
56 # Compute the architecture that we're building on. | 50 # Compute the architecture that we're building on. |
57 'conditions': [ | 51 'conditions': [ |
58 [ 'OS=="win" or OS=="mac"', { | 52 [ 'OS=="win" or OS=="mac"', { |
59 'host_arch%': 'ia32', | 53 'host_arch%': 'ia32', |
60 }, { | 54 }, { |
61 # This handles the Unix platforms for which there is some support. | 55 # This handles the Unix platforms for which there is some support. |
62 # Anything else gets passed through, which probably won't work very | 56 # Anything else gets passed through, which probably won't work very |
(...skipping 10 matching lines...) Expand all Loading... |
73 'toolkit_views%': 0, | 67 'toolkit_views%': 0, |
74 }], | 68 }], |
75 | 69 |
76 # Views are always Pure in Touch and Aura case. | 70 # Views are always Pure in Touch and Aura case. |
77 ['touchui==1 or use_aura==1', { | 71 ['touchui==1 or use_aura==1', { |
78 'use_only_pure_views%': 1, | 72 'use_only_pure_views%': 1, |
79 }, { | 73 }, { |
80 'use_only_pure_views%': 0, | 74 'use_only_pure_views%': 0, |
81 }], | 75 }], |
82 | 76 |
83 # Use WebUI dialogs in TouchUI and PureView builds. | |
84 ['touchui==1 or use_only_pure_views==1 or use_aura==1', { | |
85 'webui_dialogs%': 1, | |
86 }], | |
87 | |
88 # Use the views compositor when using the Aura window manager. | 77 # Use the views compositor when using the Aura window manager. |
89 ['use_aura==1', { | 78 ['use_aura==1', { |
90 'views_compositor%': 1, | 79 'views_compositor%': 1, |
91 }], | 80 }], |
92 ], | 81 ], |
93 }, | 82 }, |
94 | 83 |
95 # Copy conditionally-set variables out one scope. | 84 # Copy conditionally-set variables out one scope. |
96 'chromeos%': '<(chromeos)', | 85 'chromeos%': '<(chromeos)', |
97 'touchui%': '<(touchui)', | 86 'touchui%': '<(touchui)', |
98 'webui_dialogs%': '<(webui_dialogs)', | |
99 'host_arch%': '<(host_arch)', | 87 'host_arch%': '<(host_arch)', |
100 'toolkit_views%': '<(toolkit_views)', | 88 'toolkit_views%': '<(toolkit_views)', |
101 'use_only_pure_views%': '<(use_only_pure_views)', | 89 'use_only_pure_views%': '<(use_only_pure_views)', |
102 'views_compositor%': '<(views_compositor)', | 90 'views_compositor%': '<(views_compositor)', |
103 'use_aura%': '<(use_aura)', | 91 'use_aura%': '<(use_aura)', |
104 | 92 |
105 # We used to provide a variable for changing how libraries were built. | 93 # We used to provide a variable for changing how libraries were built. |
106 # This variable remains until we can clean up all the users. | 94 # This variable remains until we can clean up all the users. |
107 # This needs to be one nested variables dict in so that dependent | 95 # This needs to be one nested variables dict in so that dependent |
108 # gyp files can make use of it in their outer variables. (Yikes!) | 96 # gyp files can make use of it in their outer variables. (Yikes!) |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 'os_posix%': '<(os_posix)', | 302 'os_posix%': '<(os_posix)', |
315 'use_glib%': '<(use_glib)', | 303 'use_glib%': '<(use_glib)', |
316 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', | 304 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', |
317 'use_skia%': '<(use_skia)', | 305 'use_skia%': '<(use_skia)', |
318 'use_x11%': '<(use_x11)', | 306 'use_x11%': '<(use_x11)', |
319 'use_gnome_keyring%': '<(use_gnome_keyring)', | 307 'use_gnome_keyring%': '<(use_gnome_keyring)', |
320 'linux_fpic%': '<(linux_fpic)', | 308 'linux_fpic%': '<(linux_fpic)', |
321 'enable_flapper_hacks%': '<(enable_flapper_hacks)', | 309 'enable_flapper_hacks%': '<(enable_flapper_hacks)', |
322 'chromeos%': '<(chromeos)', | 310 'chromeos%': '<(chromeos)', |
323 'touchui%': '<(touchui)', | 311 'touchui%': '<(touchui)', |
324 'webui_dialogs%': '<(webui_dialogs)', | |
325 'file_manager_extension%': '<(file_manager_extension)', | 312 'file_manager_extension%': '<(file_manager_extension)', |
326 'webui_task_manager%': '<(webui_task_manager)', | 313 'webui_task_manager%': '<(webui_task_manager)', |
327 'inside_chromium_build%': '<(inside_chromium_build)', | 314 'inside_chromium_build%': '<(inside_chromium_build)', |
328 'fastbuild%': '<(fastbuild)', | 315 'fastbuild%': '<(fastbuild)', |
329 'python_ver%': '<(python_ver)', | 316 'python_ver%': '<(python_ver)', |
330 'armv7%': '<(armv7)', | 317 'armv7%': '<(armv7)', |
331 'arm_neon%': '<(arm_neon)', | 318 'arm_neon%': '<(arm_neon)', |
332 'sysroot%': '<(sysroot)', | 319 'sysroot%': '<(sysroot)', |
333 'disable_sse2%': '<(disable_sse2)', | 320 'disable_sse2%': '<(disable_sse2)', |
334 'component%': '<(component)', | 321 'component%': '<(component)', |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 }], | 732 }], |
746 ['use_only_pure_views==1', { | 733 ['use_only_pure_views==1', { |
747 'grit_defines': ['-D', 'use_only_pure_views'], | 734 'grit_defines': ['-D', 'use_only_pure_views'], |
748 }], | 735 }], |
749 ['use_aura==1', { | 736 ['use_aura==1', { |
750 'grit_defines': ['-D', 'use_aura'], | 737 'grit_defines': ['-D', 'use_aura'], |
751 }], | 738 }], |
752 ['touchui==1', { | 739 ['touchui==1', { |
753 'grit_defines': ['-D', 'touchui'], | 740 'grit_defines': ['-D', 'touchui'], |
754 }], | 741 }], |
755 ['webui_dialogs==1', { | |
756 'grit_defines': ['-D', 'webui_dialogs'], | |
757 }], | |
758 ['file_manager_extension==1', { | 742 ['file_manager_extension==1', { |
759 'grit_defines': ['-D', 'file_manager_extension'], | 743 'grit_defines': ['-D', 'file_manager_extension'], |
760 }], | 744 }], |
761 ['webui_task_manager==1', { | 745 ['webui_task_manager==1', { |
762 'grit_defines': ['-D', 'webui_task_manager'], | 746 'grit_defines': ['-D', 'webui_task_manager'], |
763 }], | 747 }], |
764 ['remoting==1', { | 748 ['remoting==1', { |
765 'grit_defines': ['-D', 'remoting'], | 749 'grit_defines': ['-D', 'remoting'], |
766 }], | 750 }], |
767 ['use_titlecase_in_grd_files==1', { | 751 ['use_titlecase_in_grd_files==1', { |
(...skipping 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2401 # settings in target dicts. SYMROOT is a special case, because many other | 2385 # settings in target dicts. SYMROOT is a special case, because many other |
2402 # Xcode variables depend on it, including variables such as | 2386 # Xcode variables depend on it, including variables such as |
2403 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2387 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
2404 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2388 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
2405 # files to appear (when present) in the UI as actual files and not red | 2389 # files to appear (when present) in the UI as actual files and not red |
2406 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2390 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
2407 # and therefore SYMROOT, needs to be set at the project level. | 2391 # and therefore SYMROOT, needs to be set at the project level. |
2408 'SYMROOT': '<(DEPTH)/xcodebuild', | 2392 'SYMROOT': '<(DEPTH)/xcodebuild', |
2409 }, | 2393 }, |
2410 } | 2394 } |
OLD | NEW |