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. |
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. | 16 # dict that operate on these variables. |
17 'variables': { | 17 'variables': { |
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 we're building the cast (chromecast) shell | |
25 'chromecast%': 0, | |
26 | |
24 # Whether or not we are using the Aura windowing framework. | 27 # Whether or not we are using the Aura windowing framework. |
25 'use_aura%': 0, | 28 'use_aura%': 0, |
26 | 29 |
27 # Whether or not we are building the Ash shell. | 30 # Whether or not we are building the Ash shell. |
28 'use_ash%': 0, | 31 'use_ash%': 0, |
29 | 32 |
30 # Whether or not we are using CRAS, the ChromeOS Audio Server. | 33 # Whether or not we are using CRAS, the ChromeOS Audio Server. |
31 'use_cras%': 0, | 34 'use_cras%': 0, |
32 | 35 |
33 # Use a raw surface abstraction. | 36 # Use a raw surface abstraction. |
34 'use_ozone%': 0, | 37 'use_ozone%': 0, |
35 | 38 |
36 # Configure the build for small devices. See crbug.com/318413 | 39 # Configure the build for small devices. See crbug.com/318413 |
37 'embedded%': 0, | 40 'embedded%': 0, |
38 | 41 |
39 'conditions': [ | 42 'conditions': [ |
40 # Compute the architecture that we're building on. | 43 # Compute the architecture that we're building on. |
41 ['OS=="win" or OS=="mac" or OS=="ios"', { | 44 ['OS=="win" or OS=="mac" or OS=="ios"', { |
42 'host_arch%': 'ia32', | 45 'host_arch%': 'ia32', |
43 }, { | 46 }, { |
44 'host_arch%': '<!(python <(DEPTH)/build/linux/detect_host_arch.p y)', | 47 'host_arch%': '<!(python <(DEPTH)/build/linux/detect_host_arch.p y)', |
45 }], | 48 }], |
46 ], | 49 ], |
47 }, | 50 }, |
48 # Copy conditionally-set variables out one scope. | 51 # Copy conditionally-set variables out one scope. |
49 'chromeos%': '<(chromeos)', | 52 'chromeos%': '<(chromeos)', |
53 'chromecast%': '<(chromecast)', | |
50 'use_aura%': '<(use_aura)', | 54 'use_aura%': '<(use_aura)', |
51 'use_ash%': '<(use_ash)', | 55 'use_ash%': '<(use_ash)', |
52 'use_cras%': '<(use_cras)', | 56 'use_cras%': '<(use_cras)', |
53 'use_ozone%': '<(use_ozone)', | 57 'use_ozone%': '<(use_ozone)', |
54 'embedded%': '<(embedded)', | 58 'embedded%': '<(embedded)', |
55 'host_arch%': '<(host_arch)', | 59 'host_arch%': '<(host_arch)', |
56 | 60 |
57 # Whether we are using Views Toolkit | 61 # Whether we are using Views Toolkit |
58 'toolkit_views%': 0, | 62 'toolkit_views%': 0, |
59 | 63 |
(...skipping 30 matching lines...) Expand all Loading... | |
90 ['chromeos==1 or OS=="win"', { | 94 ['chromeos==1 or OS=="win"', { |
91 'use_ash%': 1, | 95 'use_ash%': 1, |
92 'use_aura%': 1, | 96 'use_aura%': 1, |
93 }], | 97 }], |
94 | 98 |
95 # Ozone uses Aura. | 99 # Ozone uses Aura. |
96 ['use_ozone==1', { | 100 ['use_ozone==1', { |
97 'use_aura%': 1, | 101 'use_aura%': 1, |
98 }], | 102 }], |
99 | 103 |
100 # ToT Linux should be aura. | 104 # ToT Linux should be aura (except for chromecast builds). |
alexst (slow to review)
2014/04/22 17:28:12
Does that mean all the rendering messages that now
lcwu1
2014/04/22 18:24:42
Alex, I would think that when aura is disabled, th
| |
101 # | 105 # |
102 # TODO(erg): Merge this into the previous block once compiling with | 106 # TODO(erg): Merge this into the previous block once compiling with |
103 # aura safely implies including ash capabilities. | 107 # aura safely implies including ash capabilities. |
104 ['OS=="linux"', { | 108 ['OS=="linux" and chromecast==0', { |
105 'use_aura%': 1, | 109 'use_aura%': 1, |
106 }], | 110 }], |
107 | 111 |
108 # Whether we're a traditional desktop unix. | 112 # Whether we're a traditional desktop unix. |
109 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") a nd chromeos==0', { | 113 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") a nd chromeos==0', { |
110 'desktop_linux%': 1, | 114 'desktop_linux%': 1, |
111 }, { | 115 }, { |
112 'desktop_linux%': 0, | 116 'desktop_linux%': 0, |
113 }], | 117 }], |
114 | 118 |
115 # Embedded implies ozone. | 119 # Embedded implies ozone. |
116 ['embedded==1', { | 120 ['embedded==1', { |
117 'use_ozone%': 1, | 121 'use_ozone%': 1, |
118 }], | 122 }], |
119 | 123 |
120 ['embedded==1', { | 124 ['embedded==1 or chromecast==1', { |
121 'use_system_fontconfig%': 0, | 125 'use_system_fontconfig%': 0, |
122 }, { | 126 }, { |
123 'use_system_fontconfig%': 1, | 127 'use_system_fontconfig%': 1, |
124 }], | 128 }], |
125 | 129 |
126 ['OS=="android"', { | 130 ['OS=="android"', { |
127 'target_arch%': 'arm', | 131 'target_arch%': 'arm', |
128 }, { | 132 }, { |
129 # Default architecture we're building for is the architecture we'r e | 133 # Default architecture we're building for is the architecture we'r e |
130 # building on, and possibly sub-architecture (for iOS builds). | 134 # building on, and possibly sub-architecture (for iOS builds). |
131 'target_arch%': '<(host_arch)', | 135 'target_arch%': '<(host_arch)', |
132 }], | 136 }], |
133 ], | 137 ], |
134 }, | 138 }, |
135 # Copy conditionally-set variables out one scope. | 139 # Copy conditionally-set variables out one scope. |
136 'chromeos%': '<(chromeos)', | 140 'chromeos%': '<(chromeos)', |
141 'chromecast%': '<(chromecast)', | |
137 'desktop_linux%': '<(desktop_linux)', | 142 'desktop_linux%': '<(desktop_linux)', |
138 'use_aura%': '<(use_aura)', | 143 'use_aura%': '<(use_aura)', |
139 'use_ash%': '<(use_ash)', | 144 'use_ash%': '<(use_ash)', |
140 'use_cras%': '<(use_cras)', | 145 'use_cras%': '<(use_cras)', |
141 'use_ozone%': '<(use_ozone)', | 146 'use_ozone%': '<(use_ozone)', |
142 'embedded%': '<(embedded)', | 147 'embedded%': '<(embedded)', |
143 'use_openssl%': '<(use_openssl)', | 148 'use_openssl%': '<(use_openssl)', |
144 'use_openssl_certs%': '<(use_openssl_certs)', | 149 'use_openssl_certs%': '<(use_openssl_certs)', |
145 'use_system_fontconfig%': '<(use_system_fontconfig)', | 150 'use_system_fontconfig%': '<(use_system_fontconfig)', |
146 'enable_viewport%': '<(enable_viewport)', | 151 'enable_viewport%': '<(enable_viewport)', |
(...skipping 27 matching lines...) Expand all Loading... | |
174 'sysroot%': '', | 179 'sysroot%': '', |
175 'chroot_cmd%': '', | 180 'chroot_cmd%': '', |
176 | 181 |
177 'conditions': [ | 182 'conditions': [ |
178 # Ash needs Aura. | 183 # Ash needs Aura. |
179 ['use_aura==0', { | 184 ['use_aura==0', { |
180 'use_ash%': 0, | 185 'use_ash%': 0, |
181 }], | 186 }], |
182 | 187 |
183 # Set default value of toolkit_views based on OS. | 188 # Set default value of toolkit_views based on OS. |
184 ['OS=="win" or chromeos==1 or use_aura==1', { | 189 ['OS=="win" or chromeos==1 or use_aura==1 or chromecast==1', { |
185 'toolkit_views%': 1, | 190 'toolkit_views%': 1, |
186 }, { | 191 }, { |
187 'toolkit_views%': 0, | 192 'toolkit_views%': 0, |
188 }], | 193 }], |
189 | 194 |
190 # Embedded builds use aura without ash or views. | 195 # Embedded builds use aura without ash or views. |
191 ['embedded==1', { | 196 ['embedded==1', { |
192 'use_aura%': 1, | 197 'use_aura%': 1, |
193 'use_ash%': 0, | 198 'use_ash%': 0, |
194 'toolkit_views%': 0, | 199 'toolkit_views%': 0, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
235 # TODO(sdefresne): set the "target_arch" to "arm" once compilation | 240 # TODO(sdefresne): set the "target_arch" to "arm" once compilation |
236 # of skia has been fixed for simulator. http://crbug.com/342377 | 241 # of skia has been fixed for simulator. http://crbug.com/342377 |
237 ['OS=="ios"', { | 242 ['OS=="ios"', { |
238 'target_subarch%': 'arm32', | 243 'target_subarch%': 'arm32', |
239 }], | 244 }], |
240 ], | 245 ], |
241 }, | 246 }, |
242 | 247 |
243 # Copy conditionally-set variables out one scope. | 248 # Copy conditionally-set variables out one scope. |
244 'chromeos%': '<(chromeos)', | 249 'chromeos%': '<(chromeos)', |
250 'chromecast%': '<(chromecast)', | |
245 'host_arch%': '<(host_arch)', | 251 'host_arch%': '<(host_arch)', |
246 'target_arch%': '<(target_arch)', | 252 'target_arch%': '<(target_arch)', |
247 'target_subarch%': '<(target_subarch)', | 253 'target_subarch%': '<(target_subarch)', |
248 'toolkit_views%': '<(toolkit_views)', | 254 'toolkit_views%': '<(toolkit_views)', |
249 'desktop_linux%': '<(desktop_linux)', | 255 'desktop_linux%': '<(desktop_linux)', |
250 'use_aura%': '<(use_aura)', | 256 'use_aura%': '<(use_aura)', |
251 'use_ash%': '<(use_ash)', | 257 'use_ash%': '<(use_ash)', |
252 'use_cras%': '<(use_cras)', | 258 'use_cras%': '<(use_cras)', |
253 'use_ozone%': '<(use_ozone)', | 259 'use_ozone%': '<(use_ozone)', |
254 'use_ozone_evdev%': '<(use_ozone_evdev)', | 260 'use_ozone_evdev%': '<(use_ozone_evdev)', |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
550 'os_posix%': 1, | 556 'os_posix%': 1, |
551 }], | 557 }], |
552 | 558 |
553 # A flag for BSD platforms | 559 # A flag for BSD platforms |
554 ['OS=="freebsd" or OS=="openbsd"', { | 560 ['OS=="freebsd" or OS=="openbsd"', { |
555 'os_bsd%': 1, | 561 'os_bsd%': 1, |
556 }, { | 562 }, { |
557 'os_bsd%': 0, | 563 'os_bsd%': 0, |
558 }], | 564 }], |
559 | 565 |
566 ['chromecast==1', { | |
567 'safe_browsing%': 0, | |
568 }], | |
569 | |
560 # NSS usage. | 570 # NSS usage. |
561 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==0', { | 571 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==0', { |
562 'use_nss%': 1, | 572 'use_nss%': 1, |
563 }, { | 573 }, { |
564 'use_nss%': 0, | 574 'use_nss%': 0, |
565 }], | 575 }], |
566 | 576 |
567 # When OpenSSL is used for SSL and crypto on Unix-like systems, use | 577 # When OpenSSL is used for SSL and crypto on Unix-like systems, use |
568 # OpenSSL's certificate definition. | 578 # OpenSSL's certificate definition. |
569 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==1', { | 579 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==1', { |
570 'use_openssl_certs%': 1, | 580 'use_openssl_certs%': 1, |
571 }, { | 581 }, { |
572 'use_openssl_certs%': 0, | 582 'use_openssl_certs%': 0, |
573 }], | 583 }], |
574 | 584 |
575 # libudev usage. This currently only affects the content layer. | 585 # libudev usage. This currently only affects the content layer. |
576 ['OS=="linux" and embedded==0', { | 586 ['OS=="linux" and embedded==0 and chromecast==0', { |
577 'use_udev%': 1, | 587 'use_udev%': 1, |
578 }, { | 588 }, { |
579 'use_udev%': 0, | 589 'use_udev%': 0, |
580 }], | 590 }], |
581 | 591 |
582 # Flags to use X11 on non-Mac POSIX platforms. | 592 # Flags to use X11 on non-Mac POSIX platforms. |
583 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', { | 593 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1 o r chromecast==1', { |
584 'use_x11%': 0, | 594 'use_x11%': 0, |
585 }, { | 595 }, { |
586 'use_x11%': 1, | 596 'use_x11%': 1, |
587 }], | 597 }], |
588 | 598 |
589 # Flags to use glib. | 599 # Flags to use glib. |
590 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1', { | 600 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1 or chromecast==1', { |
591 'use_glib%': 0, | 601 'use_glib%': 0, |
592 }, { | 602 }, { |
593 'use_glib%': 1, | 603 'use_glib%': 1, |
594 }], | 604 }], |
595 | 605 |
596 # Flags to use pango and cairo. | 606 # Flags to use pango and cairo. |
597 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1', { | 607 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1 or chromecast==1', { |
598 'use_pango%': 0, | 608 'use_pango%': 0, |
599 'use_cairo%': 0, | 609 'use_cairo%': 0, |
600 }, { | 610 }, { |
601 'use_pango%': 1, | 611 'use_pango%': 1, |
602 'use_cairo%': 1, | 612 'use_cairo%': 1, |
603 }], | 613 }], |
604 | 614 |
605 # DBus usage. | 615 # DBus usage. |
606 ['OS=="linux" and embedded==0', { | 616 ['OS=="linux" and embedded==0 and chromecast==0', { |
607 'use_dbus%': 1, | 617 'use_dbus%': 1, |
608 }, { | 618 }, { |
609 'use_dbus%': 0, | 619 'use_dbus%': 0, |
610 }], | 620 }], |
611 | 621 |
612 # We always use skia text rendering in Aura on Windows, since GDI | 622 # We always use skia text rendering in Aura on Windows, since GDI |
613 # doesn't agree with our BackingStore. | 623 # doesn't agree with our BackingStore. |
614 # TODO(beng): remove once skia text rendering is on by default. | 624 # TODO(beng): remove once skia text rendering is on by default. |
615 ['use_aura==1 and OS=="win"', { | 625 ['use_aura==1 and OS=="win"', { |
616 'enable_skia_text%': 1, | 626 'enable_skia_text%': 1, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
655 'native_discardable_memory%': 1, | 665 'native_discardable_memory%': 1, |
656 'native_memory_pressure_signals%': 1, | 666 'native_memory_pressure_signals%': 1, |
657 'enable_printing%': 2, | 667 'enable_printing%': 2, |
658 'enable_task_manager%':0, | 668 'enable_task_manager%':0, |
659 # Set to 1 once we have a notification system for Android. | 669 # Set to 1 once we have a notification system for Android. |
660 # http://crbug.com/115320 | 670 # http://crbug.com/115320 |
661 'notifications%': 0, | 671 'notifications%': 0, |
662 }], | 672 }], |
663 | 673 |
664 # Android OS includes support for proprietary codecs regardless of | 674 # Android OS includes support for proprietary codecs regardless of |
665 # building Chromium or Google Chrome. We also ship Google Chrome with | 675 # building Chromium or Google Chrome. We also ship Google Chrome and |
666 # proprietary codecs. | 676 # Chromecast with proprietary codecs. |
667 ['OS=="android" or branding=="Chrome"', { | 677 ['OS=="android" or branding=="Chrome" or chromecast==1', { |
668 'proprietary_codecs%': 1, | 678 'proprietary_codecs%': 1, |
669 }, { | 679 }, { |
670 'proprietary_codecs%': 0, | 680 'proprietary_codecs%': 0, |
671 }], | 681 }], |
672 | 682 |
673 ['OS=="mac" or OS=="ios"', { | 683 ['OS=="mac" or OS=="ios"', { |
674 'native_discardable_memory%': 1, | 684 'native_discardable_memory%': 1, |
675 'native_memory_pressure_signals%': 1, | 685 'native_memory_pressure_signals%': 1, |
676 }], | 686 }], |
677 | 687 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
713 ['OS=="win" and buildtype!="Official"', { | 723 ['OS=="win" and buildtype!="Official"', { |
714 'chromium_win_pch%': 1 | 724 'chromium_win_pch%': 1 |
715 }], | 725 }], |
716 | 726 |
717 ['chromeos==1 or OS=="android" or OS=="ios"', { | 727 ['chromeos==1 or OS=="android" or OS=="ios"', { |
718 'enable_plugin_installation%': 0, | 728 'enable_plugin_installation%': 0, |
719 }, { | 729 }, { |
720 'enable_plugin_installation%': 1, | 730 'enable_plugin_installation%': 1, |
721 }], | 731 }], |
722 | 732 |
723 ['OS=="android" or OS=="ios" or embedded==1', { | 733 ['OS=="android" or OS=="ios" or embedded==1 or chromecast==1', { |
724 'enable_plugins%': 0, | 734 'enable_plugins%': 0, |
725 }, { | 735 }, { |
726 'enable_plugins%': 1, | 736 'enable_plugins%': 1, |
727 }], | 737 }], |
728 | 738 |
729 # linux_use_bundled_gold: whether to use the gold linker binary checked | 739 # linux_use_bundled_gold: whether to use the gold linker binary checked |
730 # into third_party/binutils. Force this off via GYP_DEFINES when you | 740 # into third_party/binutils. Force this off via GYP_DEFINES when you |
731 # are using a custom toolchain and need to control -B in ldflags. | 741 # are using a custom toolchain and need to control -B in ldflags. |
732 # Gold is not used for 32-bit linux builds as it runs out of address | 742 # Gold is not used for 32-bit linux builds as it runs out of address |
733 # space. | 743 # space. |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
851 # Turns on compiler optimizations in V8 in Debug build, except | 861 # Turns on compiler optimizations in V8 in Debug build, except |
852 # on android_clang, where we're hitting a weird linker error. | 862 # on android_clang, where we're hitting a weird linker error. |
853 # TODO(dpranke): http://crbug.com/266155 . | 863 # TODO(dpranke): http://crbug.com/266155 . |
854 ['OS=="android"', { | 864 ['OS=="android"', { |
855 'v8_optimized_debug%': 1, | 865 'v8_optimized_debug%': 1, |
856 }, { | 866 }, { |
857 'v8_optimized_debug%': 2, | 867 'v8_optimized_debug%': 2, |
858 }], | 868 }], |
859 | 869 |
860 # Disable various features by default on embedded. | 870 # Disable various features by default on embedded. |
861 ['embedded==1', { | 871 ['embedded==1 or chromecast==1', { |
862 'remoting%': 0, | 872 'remoting%': 0, |
863 'enable_printing%': 0, | 873 'enable_printing%': 0, |
864 }], | 874 }], |
865 | 875 |
866 # By default, use ICU data file (icudtl.dat) on all platforms | 876 # By default, use ICU data file (icudtl.dat) on all platforms |
867 # except when building Android WebView. | 877 # except when building Android WebView or Chromecast. |
868 # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium). | 878 # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium). |
869 ['android_webview_build==0', { | 879 ['android_webview_build==0 and chromecast==0', { |
870 'icu_use_data_file_flag%' : 1, | 880 'icu_use_data_file_flag%' : 1, |
871 }, { | 881 }, { |
872 'icu_use_data_file_flag%' : 0, | 882 'icu_use_data_file_flag%' : 0, |
873 }], | 883 }], |
874 ], | 884 ], |
875 | 885 |
876 # Set this to 1 to enable use of concatenated impulse responses | 886 # Set this to 1 to enable use of concatenated impulse responses |
877 # for the HRTF panner in WebAudio. | 887 # for the HRTF panner in WebAudio. |
878 'use_concatenated_impulse_responses': 1, | 888 'use_concatenated_impulse_responses': 1, |
879 | 889 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
946 'use_cairo%': '<(use_cairo)', | 956 'use_cairo%': '<(use_cairo)', |
947 'use_ozone%': '<(use_ozone)', | 957 'use_ozone%': '<(use_ozone)', |
948 'use_ozone_evdev%': '<(use_ozone_evdev)', | 958 'use_ozone_evdev%': '<(use_ozone_evdev)', |
949 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', | 959 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', |
950 'use_system_fontconfig%': '<(use_system_fontconfig)', | 960 'use_system_fontconfig%': '<(use_system_fontconfig)', |
951 'desktop_linux%': '<(desktop_linux)', | 961 'desktop_linux%': '<(desktop_linux)', |
952 'use_x11%': '<(use_x11)', | 962 'use_x11%': '<(use_x11)', |
953 'use_gnome_keyring%': '<(use_gnome_keyring)', | 963 'use_gnome_keyring%': '<(use_gnome_keyring)', |
954 'linux_fpic%': '<(linux_fpic)', | 964 'linux_fpic%': '<(linux_fpic)', |
955 'chromeos%': '<(chromeos)', | 965 'chromeos%': '<(chromeos)', |
966 'chromecast%': '<(chromecast)', | |
956 'enable_viewport%': '<(enable_viewport)', | 967 'enable_viewport%': '<(enable_viewport)', |
957 'enable_hidpi%': '<(enable_hidpi)', | 968 'enable_hidpi%': '<(enable_hidpi)', |
958 'use_xi2_mt%':'<(use_xi2_mt)', | 969 'use_xi2_mt%':'<(use_xi2_mt)', |
959 'image_loader_extension%': '<(image_loader_extension)', | 970 'image_loader_extension%': '<(image_loader_extension)', |
960 'fastbuild%': '<(fastbuild)', | 971 'fastbuild%': '<(fastbuild)', |
961 'win_z7%': '<(win_z7)', | 972 'win_z7%': '<(win_z7)', |
962 'dcheck_always_on%': '<(dcheck_always_on)', | 973 'dcheck_always_on%': '<(dcheck_always_on)', |
963 'tracing_like_official_build%': '<(tracing_like_official_build)', | 974 'tracing_like_official_build%': '<(tracing_like_official_build)', |
964 'arm_version%': '<(arm_version)', | 975 'arm_version%': '<(arm_version)', |
965 'arm_neon%': '<(arm_neon)', | 976 'arm_neon%': '<(arm_neon)', |
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1625 # where possible to reduce ROM size. | 1636 # where possible to reduce ROM size. |
1626 # TODO(steveblock): Investigate using the system version of sqlite. | 1637 # TODO(steveblock): Investigate using the system version of sqlite. |
1627 'use_system_sqlite%': 0, # '<(android_webview_build)', | 1638 'use_system_sqlite%': 0, # '<(android_webview_build)', |
1628 'use_system_expat%': '<(android_webview_build)', | 1639 'use_system_expat%': '<(android_webview_build)', |
1629 'use_system_icu%': '<(android_webview_build)', | 1640 'use_system_icu%': '<(android_webview_build)', |
1630 'use_system_stlport%': '<(android_webview_build)', | 1641 'use_system_stlport%': '<(android_webview_build)', |
1631 | 1642 |
1632 # Copy it out one scope. | 1643 # Copy it out one scope. |
1633 'android_webview_build%': '<(android_webview_build)', | 1644 'android_webview_build%': '<(android_webview_build)', |
1634 }], # OS=="android" | 1645 }], # OS=="android" |
1646 ['chromecast==1', { | |
1647 'disable_nacl%': 1, | |
jam
2014/04/22 16:21:15
I'm curious why this is needed? You only bring in
lcwu1
2014/04/22 18:24:42
Yes, this is indeed not needed. Removed.
| |
1648 'ffmpeg_branding%': 'Chrome', | |
1649 'conditions': [ | |
1650 ['target_arch=="arm"', { | |
1651 'cast_uses_directfb%': 0, | |
1652 'enable_mpeg2ts_stream_parser%': 1, | |
1653 'video_hole%': 1, | |
1654 }, { | |
1655 'cast_uses_directfb%': 1, | |
1656 }], | |
1657 ], | |
1658 }], | |
1635 ['android_webview_build==1', { | 1659 ['android_webview_build==1', { |
1636 # When building the WebView in the Android tree, jarjar will remap all | 1660 # When building the WebView in the Android tree, jarjar will remap all |
1637 # the class names, so the JNI generator needs to know this. | 1661 # the class names, so the JNI generator needs to know this. |
1638 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt' , | 1662 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt' , |
1639 }], | 1663 }], |
1640 ['OS=="mac"', { | 1664 ['OS=="mac"', { |
1641 'conditions': [ | 1665 'conditions': [ |
1642 # All Chrome builds have breakpad symbols, but only process the | 1666 # All Chrome builds have breakpad symbols, but only process the |
1643 # symbols from official builds. | 1667 # symbols from official builds. |
1644 ['(branding=="Chrome" and buildtype=="Official")', { | 1668 ['(branding=="Chrome" and buildtype=="Official")', { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1752 'secure_atl%': 1, | 1776 'secure_atl%': 1, |
1753 }], | 1777 }], |
1754 ], | 1778 ], |
1755 'nacl_win64_defines': [ | 1779 'nacl_win64_defines': [ |
1756 # This flag is used to minimize dependencies when building | 1780 # This flag is used to minimize dependencies when building |
1757 # Native Client loader for 64-bit Windows. | 1781 # Native Client loader for 64-bit Windows. |
1758 'NACL_WIN64', | 1782 'NACL_WIN64', |
1759 ], | 1783 ], |
1760 }], | 1784 }], |
1761 | 1785 |
1762 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios"', { | 1786 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios" and chromeca st==0', { |
1763 'use_cups%': 1, | 1787 'use_cups%': 1, |
1764 }, { | 1788 }, { |
1765 'use_cups%': 0, | 1789 'use_cups%': 0, |
1766 }], | 1790 }], |
1767 | 1791 |
1768 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win")', { | 1792 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win")', { |
1769 'enable_pepper_cdms%': 1, | 1793 'enable_pepper_cdms%': 1, |
1770 }, { | 1794 }, { |
1771 'enable_pepper_cdms%': 0, | 1795 'enable_pepper_cdms%': 0, |
1772 }], | 1796 }], |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2049 | 2073 |
2050 ['android_webview_build==1', { | 2074 ['android_webview_build==1', { |
2051 # The WebView build gets its cpu-specific flags from the Android build s ystem. | 2075 # The WebView build gets its cpu-specific flags from the Android build s ystem. |
2052 'arm_arch%': '', | 2076 'arm_arch%': '', |
2053 'arm_tune%': '', | 2077 'arm_tune%': '', |
2054 'arm_fpu%': '', | 2078 'arm_fpu%': '', |
2055 'arm_float_abi%': '', | 2079 'arm_float_abi%': '', |
2056 'arm_thumb%': 0, | 2080 'arm_thumb%': 0, |
2057 }], | 2081 }], |
2058 | 2082 |
2083 ['chromecast==1', { | |
2084 'arm_arch%': '', | |
2085 'arm_tune%': 'cortex-a9', | |
2086 'arm_thumb%': 1, | |
2087 }], | |
2088 | |
2059 # Enable brlapi by default for chromeos. | 2089 # Enable brlapi by default for chromeos. |
2060 [ 'chromeos==1', { | 2090 [ 'chromeos==1', { |
2061 'use_brlapi%': 1, | 2091 'use_brlapi%': 1, |
2062 }], | 2092 }], |
2063 | 2093 |
2064 ['use_ozone==1', { | 2094 ['use_ozone==1', { |
2065 # This is the default platform | 2095 # This is the default platform |
2066 'ozone_platform%': "test", | 2096 'ozone_platform%': "test", |
2067 | 2097 |
2068 # Enable built-in ozone platforms if ozone is enabled. | 2098 # Enable built-in ozone platforms if ozone is enabled. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2138 # variable placed at the root variables scope of .gyp files, because | 2168 # variable placed at the root variables scope of .gyp files, because |
2139 # those variables are not set at target scope. As a workaround, | 2169 # those variables are not set at target scope. As a workaround, |
2140 # if chromium_code is not set at target scope, define it in target scope | 2170 # if chromium_code is not set at target scope, define it in target scope |
2141 # to contain whatever value it has during early variable expansion. | 2171 # to contain whatever value it has during early variable expansion. |
2142 # That's enough to make it available during target conditional | 2172 # That's enough to make it available during target conditional |
2143 # processing. | 2173 # processing. |
2144 'chromium_code%': '<(chromium_code)', | 2174 'chromium_code%': '<(chromium_code)', |
2145 | 2175 |
2146 'component%': '<(component)', | 2176 'component%': '<(component)', |
2147 | 2177 |
2178 'chromecast%': '<(chromecast)', | |
2179 | |
2148 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx | 2180 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx |
2149 'win_release_Optimization%': '2', # 2 = /Os | 2181 'win_release_Optimization%': '2', # 2 = /Os |
2150 'win_debug_Optimization%': '0', # 0 = /Od | 2182 'win_debug_Optimization%': '0', # 0 = /Od |
2151 | 2183 |
2152 # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx | 2184 # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx |
2153 # Tri-state: blank is default, 1 on, 0 off | 2185 # Tri-state: blank is default, 1 on, 0 off |
2154 'win_release_OmitFramePointers%': '0', | 2186 'win_release_OmitFramePointers%': '0', |
2155 # Tri-state: blank is default, 1 on, 0 off | 2187 # Tri-state: blank is default, 1 on, 0 off |
2156 'win_debug_OmitFramePointers%': '', | 2188 'win_debug_OmitFramePointers%': '', |
2157 | 2189 |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2495 'VCLinkerTool': { | 2527 'VCLinkerTool': { |
2496 'GenerateDebugInformation': 'true', | 2528 'GenerateDebugInformation': 'true', |
2497 }, | 2529 }, |
2498 'VCCLCompilerTool': { | 2530 'VCCLCompilerTool': { |
2499 'DebugInformationFormat': '1', | 2531 'DebugInformationFormat': '1', |
2500 } | 2532 } |
2501 } | 2533 } |
2502 }], | 2534 }], |
2503 ], # win_z7!=0 | 2535 ], # win_z7!=0 |
2504 }], # OS==win | 2536 }], # OS==win |
2537 ['chromecast==1', { | |
jam
2014/04/22 16:21:15
i'm curious why this one and the previous section
lcwu1
2014/04/22 18:24:42
I was trying to follow the convention here in this
jam
2014/04/22 18:31:57
I'm not sure I understand what you mean. you're no
| |
2538 'defines': [ | |
2539 'LOG_DISABLED=0', | |
2540 ], | |
2541 'conditions': [ | |
2542 ['target_arch=="arm"', { | |
2543 'defines': [ | |
2544 # Work around an error when compiling v8/src/platform-linux.cc | |
2545 # with gcc-4.5. | |
2546 '__SOFTFP', | |
2547 ], | |
2548 }], | |
2549 ], | |
2550 }], | |
2505 ['enable_task_manager==1', { | 2551 ['enable_task_manager==1', { |
2506 'defines': [ | 2552 'defines': [ |
2507 'ENABLE_TASK_MANAGER=1', | 2553 'ENABLE_TASK_MANAGER=1', |
2508 ], | 2554 ], |
2509 }], | 2555 }], |
2510 ['enable_extensions==1', { | 2556 ['enable_extensions==1', { |
2511 'defines': [ | 2557 'defines': [ |
2512 'ENABLE_EXTENSIONS=1', | 2558 'ENABLE_EXTENSIONS=1', |
2513 ], | 2559 ], |
2514 }], | 2560 }], |
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3477 '-B<(PRODUCT_DIR)/../../build/android/arm-linux-androi deabi-gold', | 3523 '-B<(PRODUCT_DIR)/../../build/android/arm-linux-androi deabi-gold', |
3478 ], | 3524 ], |
3479 }], | 3525 }], |
3480 ['asan==1', { | 3526 ['asan==1', { |
3481 'cflags': [ | 3527 'cflags': [ |
3482 '-marm', # Required for frame pointer based stack trac es. | 3528 '-marm', # Required for frame pointer based stack trac es. |
3483 ], | 3529 ], |
3484 }], | 3530 }], |
3485 ], | 3531 ], |
3486 }], | 3532 }], |
3533 ['chromecast==1', { | |
3534 'cflags': [ | |
3535 # We set arm_arch to "" so that -march compiler option | |
3536 # is not set. Otherwise a gcc bug that would complain | |
3537 # about it conflicting with '-mcpu=cortex-a9'. The flag | |
3538 # '-march=armv7-a' is actually redundant anyway because | |
3539 # it is enabled by default when we built the toolchain. | |
3540 # And using '-mcpu=cortex-a9' should be sufficient. | |
3541 '-mcpu=cortex-a9', | |
3542 '-funwind-tables', | |
3543 # Breakpad requires symbols with debugging information | |
3544 '-g', | |
3545 ], | |
3546 'ldflags': [ | |
3547 # We want to statically link libstdc++/libgcc_s. | |
3548 '-static-libstdc++', | |
3549 '-static-libgcc', | |
3550 ], | |
3551 'cflags!': [ | |
3552 # Some components in Chormium (e.g. v8) define their own | |
3553 # cflags that are not desirable. Remove them explicitly | |
3554 # here. | |
3555 '-march=armv7-a', | |
3556 '-mtune=cortex-a8', | |
3557 ], | |
3558 }], | |
3487 ], | 3559 ], |
3488 }], | 3560 }], |
3489 ], | 3561 ], |
3490 }], | 3562 }], |
3491 ['target_arch=="arm64"', { | 3563 ['target_arch=="arm64"', { |
3492 'target_conditions': [ | 3564 'target_conditions': [ |
3493 ['_toolset=="target"', { | 3565 ['_toolset=="target"', { |
3494 'conditions': [ | 3566 'conditions': [ |
3495 ['OS=="android"', { | 3567 ['OS=="android"', { |
3496 'cflags!': [ | 3568 'cflags!': [ |
(...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5203 # settings in target dicts. SYMROOT is a special case, because many other | 5275 # settings in target dicts. SYMROOT is a special case, because many other |
5204 # Xcode variables depend on it, including variables such as | 5276 # Xcode variables depend on it, including variables such as |
5205 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5277 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5206 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5278 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5207 # files to appear (when present) in the UI as actual files and not red | 5279 # files to appear (when present) in the UI as actual files and not red |
5208 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5280 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5209 # and therefore SYMROOT, needs to be set at the project level. | 5281 # and therefore SYMROOT, needs to be set at the project level. |
5210 'SYMROOT': '<(DEPTH)/xcodebuild', | 5282 'SYMROOT': '<(DEPTH)/xcodebuild', |
5211 }, | 5283 }, |
5212 } | 5284 } |
OLD | NEW |