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

Side by Side Diff: build/common.gypi

Issue 7273079: Introducing TOOLKIT_USES_PURE_VIEWS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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
« no previous file with comments | « no previous file | views/widget/widget.cc » ('j') | views/widget/widget.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
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 the Views toolkit is Pure or GTK
oshima 2011/06/30 00:06:32 Please add comment that this is an intermediate so
Emmanuel Saint-loubert-Bié 2011/06/30 00:23:29 Done.
25 'toolkit_pure_views%': 0,
oshima 2011/06/30 00:06:32 toolkit_uses_pure_views would be better.
Emmanuel Saint-loubert-Bié 2011/06/30 00:23:29 Done.
26
24 # Disable touch support by default. 27 # Disable touch support by default.
25 'touchui%': 0, 28 'touchui%': 0,
26 29
27 # Whether the compositor is enabled on views. 30 # Whether the compositor is enabled on views.
28 'views_compositor%': 0, 31 'views_compositor%': 0,
29 }, 32 },
30 # Copy conditionally-set variables out one scope. 33 # Copy conditionally-set variables out one scope.
31 'chromeos%': '<(chromeos)', 34 'chromeos%': '<(chromeos)',
35 'toolkit_pure_views%': '<(toolkit_pure_views)',
32 'touchui%': '<(touchui)', 36 'touchui%': '<(touchui)',
33 'views_compositor%': '<(views_compositor)', 37 'views_compositor%': '<(views_compositor)',
34 38
35 # Compute the architecture that we're building on. 39 # Compute the architecture that we're building on.
36 'conditions': [ 40 'conditions': [
37 [ 'OS=="win" or OS=="mac"', { 41 [ 'OS=="win" or OS=="mac"', {
38 'host_arch%': 'ia32', 42 'host_arch%': 'ia32',
39 }, { 43 }, {
40 # This handles the Unix platforms for which there is some support. 44 # This handles the Unix platforms for which there is some support.
41 # Anything else gets passed through, which probably won't work very 45 # Anything else gets passed through, which probably won't work very
42 # well; such hosts should pass an explicit target_arch to gyp. 46 # well; such hosts should pass an explicit target_arch to gyp.
43 'host_arch%': 47 'host_arch%':
44 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a rm.*/arm/;s/i86pc/ia32/")', 48 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a rm.*/arm/;s/i86pc/ia32/")',
45 }], 49 }],
46 50
47 # Set default value of toolkit_views on for Windows, Chrome OS 51 # Set default value of toolkit_views on for Windows, Chrome OS
48 # and the touch UI. 52 # and the touch UI. Also toolkit_pure_views implies toolkit_views.
49 ['OS=="win" or chromeos==1 or touchui==1', { 53 ['OS=="win" or chromeos==1 or touchui==1 or toolkit_pure_views==1', {
50 'toolkit_views%': 1, 54 'toolkit_views%': 1,
51 }, { 55 }, {
52 'toolkit_views%': 0, 56 'toolkit_views%': 0,
53 }], 57 }],
58
59 # Views are always Pure in Touch case
60 ['touchui==1', {
61 'toolkit_pure_views%': 1,
62 }, {
63 'toolkit_pure_views%': 0,
64 }],
54 ], 65 ],
55 }, 66 },
56 67
57 # Copy conditionally-set variables out one scope. 68 # Copy conditionally-set variables out one scope.
58 'chromeos%': '<(chromeos)', 69 'chromeos%': '<(chromeos)',
59 'touchui%': '<(touchui)', 70 'touchui%': '<(touchui)',
60 'host_arch%': '<(host_arch)', 71 'host_arch%': '<(host_arch)',
61 'toolkit_views%': '<(toolkit_views)', 72 'toolkit_views%': '<(toolkit_views)',
73 'toolkit_pure_views%': '<(toolkit_pure_views)',
62 'views_compositor%': '<(views_compositor)', 74 'views_compositor%': '<(views_compositor)',
63 75
64 # We used to provide a variable for changing how libraries were built. 76 # We used to provide a variable for changing how libraries were built.
65 # This variable remains until we can clean up all the users. 77 # This variable remains until we can clean up all the users.
66 # This needs to be one nested variables dict in so that dependent 78 # This needs to be one nested variables dict in so that dependent
67 # gyp files can make use of it in their outer variables. (Yikes!) 79 # gyp files can make use of it in their outer variables. (Yikes!)
68 # http://code.google.com/p/chromium/issues/detail?id=83308 80 # http://code.google.com/p/chromium/issues/detail?id=83308
69 'library%': 'static_library', 81 'library%': 'static_library',
70 82
71 # Override branding to select the desired branding flavor. 83 # Override branding to select the desired branding flavor.
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 ], 225 ],
214 }, 226 },
215 227
216 # Copy conditionally-set variables out one scope. 228 # Copy conditionally-set variables out one scope.
217 'branding%': '<(branding)', 229 'branding%': '<(branding)',
218 'buildtype%': '<(buildtype)', 230 'buildtype%': '<(buildtype)',
219 'target_arch%': '<(target_arch)', 231 'target_arch%': '<(target_arch)',
220 'host_arch%': '<(host_arch)', 232 'host_arch%': '<(host_arch)',
221 'library%': 'static_library', 233 'library%': 'static_library',
222 'toolkit_views%': '<(toolkit_views)', 234 'toolkit_views%': '<(toolkit_views)',
235 'toolkit_pure_views%': '<(toolkit_pure_views)',
223 'views_compositor%': '<(views_compositor)', 236 'views_compositor%': '<(views_compositor)',
224 'os_posix%': '<(os_posix)', 237 'os_posix%': '<(os_posix)',
225 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', 238 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
226 'use_skia%': '<(use_skia)', 239 'use_skia%': '<(use_skia)',
227 'use_x11%': '<(use_x11)', 240 'use_x11%': '<(use_x11)',
228 'use_gnome_keyring%': '<(use_gnome_keyring)', 241 'use_gnome_keyring%': '<(use_gnome_keyring)',
229 'linux_fpic%': '<(linux_fpic)', 242 'linux_fpic%': '<(linux_fpic)',
230 'enable_flapper_hacks%': '<(enable_flapper_hacks)', 243 'enable_flapper_hacks%': '<(enable_flapper_hacks)',
231 'chromeos%': '<(chromeos)', 244 'chromeos%': '<(chromeos)',
232 'touchui%': '<(touchui)', 245 'touchui%': '<(touchui)',
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 }, { 575 }, {
563 'grit_defines': ['-D', '_chromium', 576 'grit_defines': ['-D', '_chromium',
564 '-E', 'CHROMIUM_BUILD=chromium'], 577 '-E', 'CHROMIUM_BUILD=chromium'],
565 }], 578 }],
566 ['chromeos==1', { 579 ['chromeos==1', {
567 'grit_defines': ['-D', 'chromeos'], 580 'grit_defines': ['-D', 'chromeos'],
568 }], 581 }],
569 ['toolkit_views==1', { 582 ['toolkit_views==1', {
570 'grit_defines': ['-D', 'toolkit_views'], 583 'grit_defines': ['-D', 'toolkit_views'],
571 }], 584 }],
585 ['toolkit_pure_views==1', {
586 'grit_defines': ['-D', 'toolkit_pure_views'],
587 }],
572 ['touchui==1', { 588 ['touchui==1', {
573 'grit_defines': ['-D', 'touchui'], 589 'grit_defines': ['-D', 'touchui'],
574 }], 590 }],
575 ['file_manager_extension==1', { 591 ['file_manager_extension==1', {
576 'grit_defines': ['-D', 'file_manager_extension'], 592 'grit_defines': ['-D', 'file_manager_extension'],
577 }], 593 }],
578 ['remoting==1', { 594 ['remoting==1', {
579 'grit_defines': ['-D', 'remoting'], 595 'grit_defines': ['-D', 'remoting'],
580 }], 596 }],
581 ['use_titlecase_in_grd_files==1', { 597 ['use_titlecase_in_grd_files==1', {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 }, 671 },
656 'conditions': [ 672 'conditions': [
657 ['branding=="Chrome"', { 673 ['branding=="Chrome"', {
658 'defines': ['GOOGLE_CHROME_BUILD'], 674 'defines': ['GOOGLE_CHROME_BUILD'],
659 }, { # else: branding!="Chrome" 675 }, { # else: branding!="Chrome"
660 'defines': ['CHROMIUM_BUILD'], 676 'defines': ['CHROMIUM_BUILD'],
661 }], 677 }],
662 ['toolkit_views==1', { 678 ['toolkit_views==1', {
663 'defines': ['TOOLKIT_VIEWS=1'], 679 'defines': ['TOOLKIT_VIEWS=1'],
664 }], 680 }],
681 ['toolkit_pure_views==1', {
682 'defines': ['TOOLKIT_USES_PURE_VIEWS=1'],
683 }],
665 ['views_compositor==1', { 684 ['views_compositor==1', {
666 'defines': ['VIEWS_COMPOSITOR=1'], 685 'defines': ['VIEWS_COMPOSITOR=1'],
667 }], 686 }],
668 ['chromeos==1', { 687 ['chromeos==1', {
669 'defines': ['OS_CHROMEOS=1'], 688 'defines': ['OS_CHROMEOS=1'],
670 }], 689 }],
671 ['touchui==1', { 690 ['touchui==1', {
672 'defines': ['TOUCH_UI=1'], 691 'defines': ['TOUCH_UI=1'],
673 }], 692 }],
674 ['file_manager_extension==1', { 693 ['file_manager_extension==1', {
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 # and therefore SYMROOT, needs to be set at the project level. 1797 # and therefore SYMROOT, needs to be set at the project level.
1779 'SYMROOT': '<(DEPTH)/xcodebuild', 1798 'SYMROOT': '<(DEPTH)/xcodebuild',
1780 }, 1799 },
1781 } 1800 }
1782 1801
1783 # Local Variables: 1802 # Local Variables:
1784 # tab-width:2 1803 # tab-width:2
1785 # indent-tabs-mode:nil 1804 # indent-tabs-mode:nil
1786 # End: 1805 # End:
1787 # vim: set expandtab tabstop=2 shiftwidth=2: 1806 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | views/widget/widget.cc » ('j') | views/widget/widget.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698