OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 14 matching lines...) Expand all Loading... | |
25 'use_aura%': 0, | 25 'use_aura%': 0, |
26 | 26 |
27 # Whether or not we are building the Ash shell. | 27 # Whether or not we are building the Ash shell. |
28 'use_ash%': 0, | 28 'use_ash%': 0, |
29 | 29 |
30 # Whether or not we are using CRAS, the ChromeOS Audio Server. | 30 # Whether or not we are using CRAS, the ChromeOS Audio Server. |
31 'use_cras%': 0, | 31 'use_cras%': 0, |
32 | 32 |
33 # Use a raw surface abstraction. | 33 # Use a raw surface abstraction. |
34 'use_ozone%': 0, | 34 'use_ozone%': 0, |
35 | |
36 # Configure the build for small devices. See crbug.com/318413 | |
37 'embedded%': 0, | |
35 }, | 38 }, |
36 # Copy conditionally-set variables out one scope. | 39 # Copy conditionally-set variables out one scope. |
37 'chromeos%': '<(chromeos)', | 40 'chromeos%': '<(chromeos)', |
38 'use_aura%': '<(use_aura)', | 41 'use_aura%': '<(use_aura)', |
39 'use_ash%': '<(use_ash)', | 42 'use_ash%': '<(use_ash)', |
40 'use_cras%': '<(use_cras)', | 43 'use_cras%': '<(use_cras)', |
41 'use_ozone%': '<(use_ozone)', | 44 'use_ozone%': '<(use_ozone)', |
42 'use_ozone_evdev%': '<(use_ozone)', | 45 'embedded%': '<(embedded)', |
43 | 46 |
44 # Whether we are using Views Toolkit | 47 # Whether we are using Views Toolkit |
45 'toolkit_views%': 0, | 48 'toolkit_views%': 0, |
46 | 49 |
47 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/ 62803 | 50 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/ 62803 |
48 'use_openssl%': 0, | 51 'use_openssl%': 0, |
49 | 52 |
50 # Disable viewport meta tag by default. | 53 # Disable viewport meta tag by default. |
51 'enable_viewport%': 0, | 54 'enable_viewport%': 0, |
52 | 55 |
(...skipping 16 matching lines...) Expand all Loading... | |
69 # Override branding to select the desired branding flavor. | 72 # Override branding to select the desired branding flavor. |
70 'branding%': 'Chromium', | 73 'branding%': 'Chromium', |
71 | 74 |
72 'conditions': [ | 75 'conditions': [ |
73 # ChromeOS and Windows use Aura and Ash. | 76 # ChromeOS and Windows use Aura and Ash. |
74 ['chromeos==1 or OS=="win"', { | 77 ['chromeos==1 or OS=="win"', { |
75 'use_ash%': 1, | 78 'use_ash%': 1, |
76 'use_aura%': 1, | 79 'use_aura%': 1, |
77 }], | 80 }], |
78 | 81 |
82 # Ozone uses Aura. | |
83 ['use_ozone==1', { | |
84 'use_aura%': 1, | |
85 }], | |
86 | |
79 # ToT Linux should be aura. | 87 # ToT Linux should be aura. |
80 # | 88 # |
81 # TODO(erg): Merge this into the previous block once compiling with | 89 # TODO(erg): Merge this into the previous block once compiling with |
82 # aura safely implies including ash capabilities. | 90 # aura safely implies including ash capabilities. |
83 ['OS=="linux"', { | 91 ['OS=="linux"', { |
84 'use_aura%': 1, | 92 'use_aura%': 1, |
85 }], | 93 }], |
86 | 94 |
87 # Whether we're a traditional desktop unix. | 95 # Whether we're a traditional desktop unix. |
88 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") a nd chromeos==0', { | 96 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") a nd chromeos==0', { |
89 'desktop_linux%': 1, | 97 'desktop_linux%': 1, |
90 }, { | 98 }, { |
91 'desktop_linux%': 0, | 99 'desktop_linux%': 0, |
92 }], | 100 }], |
93 | 101 |
94 # Compute the architecture that we're building on. | 102 # Compute the architecture that we're building on. |
95 ['OS=="win" or OS=="mac" or OS=="ios"', { | 103 ['OS=="win" or OS=="mac" or OS=="ios"', { |
96 'host_arch%': 'ia32', | 104 'host_arch%': 'ia32', |
97 }, { | 105 }, { |
98 # This handles the Unix platforms for which there is some support. | 106 # This handles the Unix platforms for which there is some support. |
99 # Anything else gets passed through, which probably won't work | 107 # Anything else gets passed through, which probably won't work |
100 # very well; such hosts should pass an explicit target_arch to | 108 # very well; such hosts should pass an explicit target_arch to |
101 # gyp. | 109 # gyp. |
102 'host_arch%': | 110 'host_arch%': |
103 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s /arm.*/arm/;s/i86pc/ia32/")', | 111 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s /arm.*/arm/;s/i86pc/ia32/")', |
104 }], | 112 }], |
113 | |
114 # Embedded implies ozone. | |
Mostyn Bramley-Moore
2013/11/13 08:28:47
Shouldn't it be the other way around? ozone impli
| |
115 ['embedded==1', { | |
116 'use_ozone%': 1, | |
117 }], | |
105 ], | 118 ], |
106 }, | 119 }, |
107 # Copy conditionally-set variables out one scope. | 120 # Copy conditionally-set variables out one scope. |
108 'chromeos%': '<(chromeos)', | 121 'chromeos%': '<(chromeos)', |
109 'desktop_linux%': '<(desktop_linux)', | 122 'desktop_linux%': '<(desktop_linux)', |
110 'use_aura%': '<(use_aura)', | 123 'use_aura%': '<(use_aura)', |
111 'use_ash%': '<(use_ash)', | 124 'use_ash%': '<(use_ash)', |
112 'use_cras%': '<(use_cras)', | 125 'use_cras%': '<(use_cras)', |
113 'use_ozone%': '<(use_ozone)', | 126 'use_ozone%': '<(use_ozone)', |
114 'use_ozone_evdev%': '<(use_ozone_evdev)', | 127 'embedded%': '<(embedded)', |
115 'use_openssl%': '<(use_openssl)', | 128 'use_openssl%': '<(use_openssl)', |
116 'enable_viewport%': '<(enable_viewport)', | 129 'enable_viewport%': '<(enable_viewport)', |
117 'enable_hidpi%': '<(enable_hidpi)', | 130 'enable_hidpi%': '<(enable_hidpi)', |
118 'enable_touch_ui%': '<(enable_touch_ui)', | 131 'enable_touch_ui%': '<(enable_touch_ui)', |
119 'buildtype%': '<(buildtype)', | 132 'buildtype%': '<(buildtype)', |
120 'branding%': '<(branding)', | 133 'branding%': '<(branding)', |
121 'host_arch%': '<(host_arch)', | 134 'host_arch%': '<(host_arch)', |
122 | 135 |
123 # Default architecture we're building for is the architecture we're | 136 # Default architecture we're building for is the architecture we're |
124 # building on. | 137 # building on. |
(...skipping 17 matching lines...) Expand all Loading... | |
142 'use_ash%': 0, | 155 'use_ash%': 0, |
143 }], | 156 }], |
144 | 157 |
145 # Set default value of toolkit_views based on OS. | 158 # Set default value of toolkit_views based on OS. |
146 ['OS=="win" or chromeos==1 or use_aura==1', { | 159 ['OS=="win" or chromeos==1 or use_aura==1', { |
147 'toolkit_views%': 1, | 160 'toolkit_views%': 1, |
148 }, { | 161 }, { |
149 'toolkit_views%': 0, | 162 'toolkit_views%': 0, |
150 }], | 163 }], |
151 | 164 |
165 # Embedded builds use aura without ash or views. | |
166 ['embedded==1', { | |
167 'use_aura%': 1, | |
168 'use_ash%': 0, | |
169 'toolkit_views%': 0, | |
170 }], | |
171 | |
152 # Set toolkit_uses_gtk for the Chromium browser on Linux. | 172 # Set toolkit_uses_gtk for the Chromium browser on Linux. |
153 ['desktop_linux==1 and use_aura==0 and use_ozone==0', { | 173 ['desktop_linux==1 and use_aura==0 and use_ozone==0', { |
154 'toolkit_uses_gtk%': 1, | 174 'toolkit_uses_gtk%': 1, |
155 }, { | 175 }, { |
156 'toolkit_uses_gtk%': 0, | 176 'toolkit_uses_gtk%': 0, |
157 }], | 177 }], |
158 | 178 |
159 # Enable HiDPI on Mac OS and Chrome OS. | 179 # Enable HiDPI on Mac OS and Chrome OS. |
160 ['OS=="mac" or chromeos==1', { | 180 ['OS=="mac" or chromeos==1', { |
161 'enable_hidpi%': 1, | 181 'enable_hidpi%': 1, |
(...skipping 10 matching lines...) Expand all Loading... | |
172 'enable_app_list%': 1, | 192 'enable_app_list%': 1, |
173 }, { | 193 }, { |
174 'enable_app_list%': 0, | 194 'enable_app_list%': 0, |
175 }], | 195 }], |
176 | 196 |
177 ['use_aura==1 or (OS!="win" and OS!="mac" and OS!="ios" and OS!="andro id")', { | 197 ['use_aura==1 or (OS!="win" and OS!="mac" and OS!="ios" and OS!="andro id")', { |
178 'use_default_render_theme%': 1, | 198 'use_default_render_theme%': 1, |
179 }, { | 199 }, { |
180 'use_default_render_theme%': 0, | 200 'use_default_render_theme%': 0, |
181 }], | 201 }], |
202 | |
203 ['use_ozone==1', { | |
204 'use_ozone_evdev%': 1, | |
205 }, { | |
206 'use_ozone_evdev%': 0, | |
207 }] | |
182 ], | 208 ], |
183 }, | 209 }, |
184 | 210 |
185 # Copy conditionally-set variables out one scope. | 211 # Copy conditionally-set variables out one scope. |
186 'chromeos%': '<(chromeos)', | 212 'chromeos%': '<(chromeos)', |
187 'host_arch%': '<(host_arch)', | 213 'host_arch%': '<(host_arch)', |
188 'target_arch%': '<(target_arch)', | 214 'target_arch%': '<(target_arch)', |
189 'toolkit_views%': '<(toolkit_views)', | 215 'toolkit_views%': '<(toolkit_views)', |
190 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', | 216 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', |
191 'desktop_linux%': '<(desktop_linux)', | 217 'desktop_linux%': '<(desktop_linux)', |
192 'use_aura%': '<(use_aura)', | 218 'use_aura%': '<(use_aura)', |
193 'use_ash%': '<(use_ash)', | 219 'use_ash%': '<(use_ash)', |
194 'use_cras%': '<(use_cras)', | 220 'use_cras%': '<(use_cras)', |
195 'use_ozone%': '<(use_ozone)', | 221 'use_ozone%': '<(use_ozone)', |
196 'use_ozone_evdev%': '<(use_ozone_evdev)', | 222 'use_ozone_evdev%': '<(use_ozone_evdev)', |
223 'embedded%': '<(embedded)', | |
197 'use_openssl%': '<(use_openssl)', | 224 'use_openssl%': '<(use_openssl)', |
198 'enable_viewport%': '<(enable_viewport)', | 225 'enable_viewport%': '<(enable_viewport)', |
199 'enable_hidpi%': '<(enable_hidpi)', | 226 'enable_hidpi%': '<(enable_hidpi)', |
200 'enable_touch_ui%': '<(enable_touch_ui)', | 227 'enable_touch_ui%': '<(enable_touch_ui)', |
201 'android_webview_build%': '<(android_webview_build)', | 228 'android_webview_build%': '<(android_webview_build)', |
202 'google_tv%': '<(google_tv)', | 229 'google_tv%': '<(google_tv)', |
203 'enable_app_list%': '<(enable_app_list)', | 230 'enable_app_list%': '<(enable_app_list)', |
204 'use_default_render_theme%': '<(use_default_render_theme)', | 231 'use_default_render_theme%': '<(use_default_render_theme)', |
205 'buildtype%': '<(buildtype)', | 232 'buildtype%': '<(buildtype)', |
206 'branding%': '<(branding)', | 233 'branding%': '<(branding)', |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
487 'use_nss%': 0, | 514 'use_nss%': 0, |
488 }], | 515 }], |
489 | 516 |
490 # Flags to use X11 on non-Mac POSIX platforms. | 517 # Flags to use X11 on non-Mac POSIX platforms. |
491 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', { | 518 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', { |
492 'use_x11%': 0, | 519 'use_x11%': 0, |
493 }, { | 520 }, { |
494 'use_x11%': 1, | 521 'use_x11%': 1, |
495 }], | 522 }], |
496 | 523 |
497 # Flags to use pango and glib on non-Mac POSIX platforms. | 524 # Flags to use glib. |
498 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', { | 525 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', { |
499 'use_glib%': 0, | 526 'use_glib%': 0, |
527 }, { | |
528 'use_glib%': 1, | |
529 }], | |
530 | |
531 # Flags to use pango. | |
532 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1', { | |
500 'use_pango%': 0, | 533 'use_pango%': 0, |
501 }, { | 534 }, { |
502 'use_glib%': 1, | |
503 'use_pango%': 1, | 535 'use_pango%': 1, |
504 }], | 536 }], |
505 | 537 |
506 # DBus usage. | 538 # DBus usage. |
507 ['OS=="linux"', { | 539 ['OS=="linux" and embedded==0', { |
508 'use_dbus%': 1, | 540 'use_dbus%': 1, |
509 }, { | 541 }, { |
510 'use_dbus%': 0, | 542 'use_dbus%': 0, |
511 }], | 543 }], |
512 | 544 |
513 # We always use skia text rendering in Aura on Windows, since GDI | 545 # We always use skia text rendering in Aura on Windows, since GDI |
514 # doesn't agree with our BackingStore. | 546 # doesn't agree with our BackingStore. |
515 # TODO(beng): remove once skia text rendering is on by default. | 547 # TODO(beng): remove once skia text rendering is on by default. |
516 ['use_aura==1 and OS=="win"', { | 548 ['use_aura==1 and OS=="win"', { |
517 'enable_skia_text%': 1, | 549 'enable_skia_text%': 1, |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
627 ['OS=="win" and buildtype!="Official"', { | 659 ['OS=="win" and buildtype!="Official"', { |
628 'chromium_win_pch%': 1 | 660 'chromium_win_pch%': 1 |
629 }], | 661 }], |
630 | 662 |
631 ['chromeos==1 or OS=="android" or OS=="ios"', { | 663 ['chromeos==1 or OS=="android" or OS=="ios"', { |
632 'enable_plugin_installation%': 0, | 664 'enable_plugin_installation%': 0, |
633 }, { | 665 }, { |
634 'enable_plugin_installation%': 1, | 666 'enable_plugin_installation%': 1, |
635 }], | 667 }], |
636 | 668 |
637 ['(OS=="android" and google_tv!=1) or OS=="ios"', { | 669 ['(OS=="android" and google_tv!=1) or OS=="ios" or embedded==1', { |
638 'enable_plugins%': 0, | 670 'enable_plugins%': 0, |
639 }, { | 671 }, { |
640 'enable_plugins%': 1, | 672 'enable_plugins%': 1, |
641 }], | 673 }], |
642 | 674 |
643 # linux_use_gold_binary: whether to use the binary checked into | 675 # linux_use_gold_binary: whether to use the binary checked into |
644 # third_party/gold. Gold is not used for 32-bit linux builds | 676 # third_party/gold. Gold is not used for 32-bit linux builds |
645 # as it runs out of address space. | 677 # as it runs out of address space. |
646 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', { | 678 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', { |
647 'linux_use_gold_binary%': 1, | 679 'linux_use_gold_binary%': 1, |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
747 }], | 779 }], |
748 | 780 |
749 # Turns on compiler optimizations in V8 in Debug build, except | 781 # Turns on compiler optimizations in V8 in Debug build, except |
750 # on android_clang, where we're hitting a weird linker error. | 782 # on android_clang, where we're hitting a weird linker error. |
751 # TODO(dpranke): http://crbug.com/266155 . | 783 # TODO(dpranke): http://crbug.com/266155 . |
752 ['OS=="android"', { | 784 ['OS=="android"', { |
753 'v8_optimized_debug%': 1, | 785 'v8_optimized_debug%': 1, |
754 }, { | 786 }, { |
755 'v8_optimized_debug%': 2, | 787 'v8_optimized_debug%': 2, |
756 }], | 788 }], |
789 | |
790 # Disable various features by default on embedded. | |
791 ['embedded==1', { | |
792 'remoting%': 0, | |
793 'enable_printing%': 0, | |
794 }], | |
757 ], | 795 ], |
758 | 796 |
759 # Set this to 1 to enable use of concatenated impulse responses | 797 # Set this to 1 to enable use of concatenated impulse responses |
760 # for the HRTF panner in WebAudio. | 798 # for the HRTF panner in WebAudio. |
761 'use_concatenated_impulse_responses': 1, | 799 'use_concatenated_impulse_responses': 1, |
762 | 800 |
763 # You can set the variable 'use_official_google_api_keys' to 1 | 801 # You can set the variable 'use_official_google_api_keys' to 1 |
764 # to use the Google-internal file containing official API keys | 802 # to use the Google-internal file containing official API keys |
765 # for Google Chrome even in a developer build. Setting this | 803 # for Google Chrome even in a developer build. Setting this |
766 # variable explicitly to 1 will cause your build to fail if the | 804 # variable explicitly to 1 will cause your build to fail if the |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1559 # library used by Chromium. | 1597 # library used by Chromium. |
1560 ['use_system_libjpeg==1 or use_libjpeg_turbo==0', { | 1598 ['use_system_libjpeg==1 or use_libjpeg_turbo==0', { |
1561 # Configuration for using the system libjeg is here. | 1599 # Configuration for using the system libjeg is here. |
1562 'libjpeg_gyp_path': '../third_party/libjpeg/libjpeg.gyp', | 1600 'libjpeg_gyp_path': '../third_party/libjpeg/libjpeg.gyp', |
1563 }, { | 1601 }, { |
1564 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp', | 1602 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp', |
1565 }], | 1603 }], |
1566 | 1604 |
1567 # Options controlling the use of GConf (the classic GNOME configuration | 1605 # Options controlling the use of GConf (the classic GNOME configuration |
1568 # system) and GIO, which contains GSettings (the new GNOME config system). | 1606 # system) and GIO, which contains GSettings (the new GNOME config system). |
1569 ['chromeos==1', { | 1607 ['chromeos==1 or embedded==1', { |
1570 'use_gconf%': 0, | 1608 'use_gconf%': 0, |
1571 'use_gio%': 0, | 1609 'use_gio%': 0, |
1572 }, { | 1610 }, { |
1573 'use_gconf%': 1, | 1611 'use_gconf%': 1, |
1574 'use_gio%': 1, | 1612 'use_gio%': 1, |
1575 }], | 1613 }], |
1576 | 1614 |
1577 # Set up -D and -E flags passed into grit. | 1615 # Set up -D and -E flags passed into grit. |
1578 ['branding=="Chrome"', { | 1616 ['branding=="Chrome"', { |
1579 # TODO(mmoss) The .grd files look for _google_chrome, but for | 1617 # TODO(mmoss) The .grd files look for _google_chrome, but for |
(...skipping 3165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4745 # settings in target dicts. SYMROOT is a special case, because many other | 4783 # settings in target dicts. SYMROOT is a special case, because many other |
4746 # Xcode variables depend on it, including variables such as | 4784 # Xcode variables depend on it, including variables such as |
4747 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4785 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4748 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4786 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4749 # files to appear (when present) in the UI as actual files and not red | 4787 # files to appear (when present) in the UI as actual files and not red |
4750 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4788 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4751 # and therefore SYMROOT, needs to be set at the project level. | 4789 # and therefore SYMROOT, needs to be set at the project level. |
4752 'SYMROOT': '<(DEPTH)/xcodebuild', | 4790 'SYMROOT': '<(DEPTH)/xcodebuild', |
4753 }, | 4791 }, |
4754 } | 4792 } |
OLD | NEW |