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 17 matching lines...) Expand all Loading... |
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 Loading... |
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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 }], | 646 }], |
660 ['toolkit_views==1', { | 647 ['toolkit_views==1', { |
661 'grit_defines': ['-D', 'toolkit_views'], | 648 'grit_defines': ['-D', 'toolkit_views'], |
662 }], | 649 }], |
663 ['toolkit_uses_pure_views==1', { | 650 ['toolkit_uses_pure_views==1', { |
664 'grit_defines': ['-D', 'toolkit_uses_pure_views'], | 651 'grit_defines': ['-D', 'toolkit_uses_pure_views'], |
665 }], | 652 }], |
666 ['touchui==1', { | 653 ['touchui==1', { |
667 'grit_defines': ['-D', 'touchui'], | 654 'grit_defines': ['-D', 'touchui'], |
668 }], | 655 }], |
669 ['webui_dialogs==1', { | |
670 'grit_defines': ['-D', 'webui_dialogs'], | |
671 }], | |
672 ['file_manager_extension==1', { | 656 ['file_manager_extension==1', { |
673 'grit_defines': ['-D', 'file_manager_extension'], | 657 'grit_defines': ['-D', 'file_manager_extension'], |
674 }], | 658 }], |
675 ['webui_task_manager==1', { | 659 ['webui_task_manager==1', { |
676 'grit_defines': ['-D', 'webui_task_manager'], | 660 'grit_defines': ['-D', 'webui_task_manager'], |
677 }], | 661 }], |
678 ['remoting==1', { | 662 ['remoting==1', { |
679 'grit_defines': ['-D', 'remoting'], | 663 'grit_defines': ['-D', 'remoting'], |
680 }], | 664 }], |
681 ['use_titlecase_in_grd_files==1', { | 665 ['use_titlecase_in_grd_files==1', { |
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1967 # settings in target dicts. SYMROOT is a special case, because many other | 1951 # settings in target dicts. SYMROOT is a special case, because many other |
1968 # Xcode variables depend on it, including variables such as | 1952 # Xcode variables depend on it, including variables such as |
1969 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 1953 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
1970 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 1954 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
1971 # files to appear (when present) in the UI as actual files and not red | 1955 # files to appear (when present) in the UI as actual files and not red |
1972 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 1956 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
1973 # and therefore SYMROOT, needs to be set at the project level. | 1957 # and therefore SYMROOT, needs to be set at the project level. |
1974 'SYMROOT': '<(DEPTH)/xcodebuild', | 1958 'SYMROOT': '<(DEPTH)/xcodebuild', |
1975 }, | 1959 }, |
1976 } | 1960 } |
OLD | NEW |