Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Side by Side Diff: build/common.gypi

Issue 7670041: Add --use-more-webui runtime flag to toggle WebUI replacements for native dialogs. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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
OLDNEW
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 17 matching lines...) Expand all
28 # This turns on the TOOLKIT_USES_PURE_VIEWS macro which is used 28 # This turns on the TOOLKIT_USES_PURE_VIEWS macro which is used
29 # to replace the corresponding GTK implementation in such a way 29 # to replace the corresponding GTK implementation in such a way
30 # that GTK and PureViews can coexist. This intermediate solution 30 # that GTK and PureViews can coexist. This intermediate solution
31 # allow us to switch the view implementations using 31 # allow us to switch the view implementations using
32 # --use-pure-views, without breaking exiting gtk implementation. 32 # --use-pure-views, without breaking exiting gtk implementation.
33 'toolkit_uses_pure_views%': 0, 33 'toolkit_uses_pure_views%': 0,
34 34
35 # Disable touch support by default. 35 # Disable touch support by default.
36 'touchui%': 0, 36 'touchui%': 0,
37 37
38 # Disable webui dialog replacements for native dialogs by default.
39 # TODO(flackr): Change this to a runtime flag triggered by
40 # --pure-views so that these dialogs can be easily tested.
41 'webui_dialogs%': 0,
42
43 # Whether the compositor is enabled on views. 38 # Whether the compositor is enabled on views.
44 'views_compositor%': 0, 39 'views_compositor%': 0,
45 }, 40 },
46 # Copy conditionally-set variables out one scope. 41 # Copy conditionally-set variables out one scope.
47 'chromeos%': '<(chromeos)', 42 'chromeos%': '<(chromeos)',
48 'toolkit_uses_pure_views%': '<(toolkit_uses_pure_views)', 43 'toolkit_uses_pure_views%': '<(toolkit_uses_pure_views)',
49 'touchui%': '<(touchui)', 44 'touchui%': '<(touchui)',
50 'webui_dialogs%': '<(webui_dialogs)',
51 'views_compositor%': '<(views_compositor)', 45 'views_compositor%': '<(views_compositor)',
52 46
53 # Compute the architecture that we're building on. 47 # Compute the architecture that we're building on.
54 'conditions': [ 48 'conditions': [
55 [ 'OS=="win" or OS=="mac"', { 49 [ 'OS=="win" or OS=="mac"', {
56 'host_arch%': 'ia32', 50 'host_arch%': 'ia32',
57 }, { 51 }, {
58 # This handles the Unix platforms for which there is some support. 52 # This handles the Unix platforms for which there is some support.
59 # Anything else gets passed through, which probably won't work very 53 # Anything else gets passed through, which probably won't work very
60 # well; such hosts should pass an explicit target_arch to gyp. 54 # well; such hosts should pass an explicit target_arch to gyp.
61 'host_arch%': 55 '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/")', 56 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a rm.*/arm/;s/i86pc/ia32/")',
63 }], 57 }],
64 58
65 # Set default value of toolkit_views on for Windows, Chrome OS 59 # Set default value of toolkit_views on for Windows, Chrome OS
66 # and the touch UI. 60 # and the touch UI.
67 ['OS=="win" or chromeos==1 or touchui==1 or toolkit_uses_pure_views==1 ', { 61 ['OS=="win" or chromeos==1 or touchui==1 or toolkit_uses_pure_views==1 ', {
68 'toolkit_views%': 1, 62 'toolkit_views%': 1,
69 }, { 63 }, {
70 'toolkit_views%': 0, 64 'toolkit_views%': 0,
71 }], 65 }],
72 66
73 # Views are always Pure in Touch case 67 # Views are always Pure in Touch case
74 ['touchui==1', { 68 ['touchui==1', {
75 'toolkit_uses_pure_views%': 1, 69 'toolkit_uses_pure_views%': 1,
76 }, { 70 }, {
77 'toolkit_uses_pure_views%': 0, 71 'toolkit_uses_pure_views%': 0,
78 }], 72 }],
79
80 # Use WebUI dialogs in TouchUI builds.
81 ['touchui==1', {
82 'webui_dialogs%': 1,
83 }],
84 ], 73 ],
85 }, 74 },
86 75
87 # Copy conditionally-set variables out one scope. 76 # Copy conditionally-set variables out one scope.
88 'chromeos%': '<(chromeos)', 77 'chromeos%': '<(chromeos)',
89 'touchui%': '<(touchui)', 78 'touchui%': '<(touchui)',
90 'webui_dialogs%': '<(webui_dialogs)',
91 'host_arch%': '<(host_arch)', 79 'host_arch%': '<(host_arch)',
92 'toolkit_views%': '<(toolkit_views)', 80 'toolkit_views%': '<(toolkit_views)',
93 'toolkit_uses_pure_views%': '<(toolkit_uses_pure_views)', 81 'toolkit_uses_pure_views%': '<(toolkit_uses_pure_views)',
94 'views_compositor%': '<(views_compositor)', 82 'views_compositor%': '<(views_compositor)',
95 83
96 # We used to provide a variable for changing how libraries were built. 84 # We used to provide a variable for changing how libraries were built.
97 # This variable remains until we can clean up all the users. 85 # This variable remains until we can clean up all the users.
98 # This needs to be one nested variables dict in so that dependent 86 # This needs to be one nested variables dict in so that dependent
99 # gyp files can make use of it in their outer variables. (Yikes!) 87 # gyp files can make use of it in their outer variables. (Yikes!)
100 # http://code.google.com/p/chromium/issues/detail?id=83308 88 # http://code.google.com/p/chromium/issues/detail?id=83308
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 'views_compositor%': '<(views_compositor)', 275 'views_compositor%': '<(views_compositor)',
288 'os_posix%': '<(os_posix)', 276 'os_posix%': '<(os_posix)',
289 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', 277 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
290 'use_skia%': '<(use_skia)', 278 'use_skia%': '<(use_skia)',
291 'use_x11%': '<(use_x11)', 279 'use_x11%': '<(use_x11)',
292 'use_gnome_keyring%': '<(use_gnome_keyring)', 280 'use_gnome_keyring%': '<(use_gnome_keyring)',
293 'linux_fpic%': '<(linux_fpic)', 281 'linux_fpic%': '<(linux_fpic)',
294 'enable_flapper_hacks%': '<(enable_flapper_hacks)', 282 'enable_flapper_hacks%': '<(enable_flapper_hacks)',
295 'chromeos%': '<(chromeos)', 283 'chromeos%': '<(chromeos)',
296 'touchui%': '<(touchui)', 284 'touchui%': '<(touchui)',
297 'webui_dialogs%': '<(webui_dialogs)',
298 'file_manager_extension%': '<(file_manager_extension)', 285 'file_manager_extension%': '<(file_manager_extension)',
299 'webui_task_manager%': '<(webui_task_manager)', 286 'webui_task_manager%': '<(webui_task_manager)',
300 'inside_chromium_build%': '<(inside_chromium_build)', 287 'inside_chromium_build%': '<(inside_chromium_build)',
301 'fastbuild%': '<(fastbuild)', 288 'fastbuild%': '<(fastbuild)',
302 'python_ver%': '<(python_ver)', 289 'python_ver%': '<(python_ver)',
303 'armv7%': '<(armv7)', 290 'armv7%': '<(armv7)',
304 'arm_neon%': '<(arm_neon)', 291 'arm_neon%': '<(arm_neon)',
305 'sysroot%': '<(sysroot)', 292 'sysroot%': '<(sysroot)',
306 'disable_sse2%': '<(disable_sse2)', 293 'disable_sse2%': '<(disable_sse2)',
307 'component%': '<(component)', 294 'component%': '<(component)',
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 }], 643 }],
657 ['toolkit_views==1', { 644 ['toolkit_views==1', {
658 'grit_defines': ['-D', 'toolkit_views'], 645 'grit_defines': ['-D', 'toolkit_views'],
659 }], 646 }],
660 ['toolkit_uses_pure_views==1', { 647 ['toolkit_uses_pure_views==1', {
661 'grit_defines': ['-D', 'toolkit_uses_pure_views'], 648 'grit_defines': ['-D', 'toolkit_uses_pure_views'],
662 }], 649 }],
663 ['touchui==1', { 650 ['touchui==1', {
664 'grit_defines': ['-D', 'touchui'], 651 'grit_defines': ['-D', 'touchui'],
665 }], 652 }],
666 ['webui_dialogs==1', {
667 'grit_defines': ['-D', 'webui_dialogs'],
668 }],
669 ['file_manager_extension==1', { 653 ['file_manager_extension==1', {
670 'grit_defines': ['-D', 'file_manager_extension'], 654 'grit_defines': ['-D', 'file_manager_extension'],
671 }], 655 }],
672 ['webui_task_manager==1', { 656 ['webui_task_manager==1', {
673 'grit_defines': ['-D', 'webui_task_manager'], 657 'grit_defines': ['-D', 'webui_task_manager'],
674 }], 658 }],
675 ['remoting==1', { 659 ['remoting==1', {
676 'grit_defines': ['-D', 'remoting'], 660 'grit_defines': ['-D', 'remoting'],
677 }], 661 }],
678 ['use_titlecase_in_grd_files==1', { 662 ['use_titlecase_in_grd_files==1', {
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1964 # settings in target dicts. SYMROOT is a special case, because many other 1948 # settings in target dicts. SYMROOT is a special case, because many other
1965 # Xcode variables depend on it, including variables such as 1949 # Xcode variables depend on it, including variables such as
1966 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 1950 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
1967 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 1951 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
1968 # files to appear (when present) in the UI as actual files and not red 1952 # files to appear (when present) in the UI as actual files and not red
1969 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 1953 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
1970 # and therefore SYMROOT, needs to be set at the project level. 1954 # and therefore SYMROOT, needs to be set at the project level.
1971 'SYMROOT': '<(DEPTH)/xcodebuild', 1955 'SYMROOT': '<(DEPTH)/xcodebuild',
1972 }, 1956 },
1973 } 1957 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698