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

Side by Side Diff: build/common.gypi

Issue 223143004: Add chromecast_build gyp variable and add rules when the variable is set to 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybot failure. Created 6 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
« no previous file with comments | « build/all.gyp ('k') | media/media.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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%': '<!pymod_do_main(detect_host_arch)', 47 'host_arch%': '<!pymod_do_main(detect_host_arch)',
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 25 matching lines...) Expand all
85 # Override branding to select the desired branding flavor. 89 # Override branding to select the desired branding flavor.
86 'branding%': 'Chromium', 90 'branding%': 'Chromium',
87 91
88 'conditions': [ 92 'conditions': [
89 # ChromeOS and Windows use Aura and Ash. 93 # ChromeOS and Windows use Aura and Ash.
90 ['chromeos==1 or OS=="win" or OS=="linux"', { 94 ['chromeos==1 or OS=="win" or OS=="linux"', {
91 'use_ash%': 1, 95 'use_ash%': 1,
92 'use_aura%': 1, 96 'use_aura%': 1,
93 }], 97 }],
94 98
99 ['chromecast==1', {
100 'embedded%': 1,
101 'use_ozone%': 1,
102 }],
103
95 # Ozone uses Aura. 104 # Ozone uses Aura.
96 ['use_ozone==1', { 105 ['use_ozone==1', {
97 'use_aura%': 1, 106 'use_aura%': 1,
98 }], 107 }],
99 108
100 # Whether we're a traditional desktop unix. 109 # Whether we're a traditional desktop unix.
101 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") a nd chromeos==0', { 110 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") a nd chromeos==0', {
102 'desktop_linux%': 1, 111 'desktop_linux%': 1,
103 }, { 112 }, {
104 'desktop_linux%': 0, 113 'desktop_linux%': 0,
105 }], 114 }],
106 115
107 # Embedded implies ozone. 116 # Embedded implies ozone.
108 ['embedded==1', { 117 ['embedded==1', {
109 'use_ozone%': 1, 118 'use_ozone%': 1,
110 }], 119 }],
111 120
112 ['embedded==1', {
113 'use_system_fontconfig%': 0,
114 }, {
115 'use_system_fontconfig%': 1,
116 }],
117
118 ['OS=="android"', { 121 ['OS=="android"', {
119 'target_arch%': 'arm', 122 'target_arch%': 'arm',
120 }, { 123 }, {
121 # Default architecture we're building for is the architecture we'r e 124 # Default architecture we're building for is the architecture we'r e
122 # building on, and possibly sub-architecture (for iOS builds). 125 # building on, and possibly sub-architecture (for iOS builds).
123 'target_arch%': '<(host_arch)', 126 'target_arch%': '<(host_arch)',
124 }], 127 }],
125 ], 128 ],
126 }, 129 },
127 # Copy conditionally-set variables out one scope. 130 # Copy conditionally-set variables out one scope.
128 'chromeos%': '<(chromeos)', 131 'chromeos%': '<(chromeos)',
132 'chromecast%': '<(chromecast)',
129 'desktop_linux%': '<(desktop_linux)', 133 'desktop_linux%': '<(desktop_linux)',
130 'use_aura%': '<(use_aura)', 134 'use_aura%': '<(use_aura)',
131 'use_ash%': '<(use_ash)', 135 'use_ash%': '<(use_ash)',
132 'use_cras%': '<(use_cras)', 136 'use_cras%': '<(use_cras)',
133 'use_ozone%': '<(use_ozone)', 137 'use_ozone%': '<(use_ozone)',
134 'embedded%': '<(embedded)', 138 'embedded%': '<(embedded)',
135 'use_openssl%': '<(use_openssl)', 139 'use_openssl%': '<(use_openssl)',
136 'use_openssl_certs%': '<(use_openssl_certs)', 140 'use_openssl_certs%': '<(use_openssl_certs)',
137 'use_system_fontconfig%': '<(use_system_fontconfig)',
138 'enable_viewport%': '<(enable_viewport)', 141 'enable_viewport%': '<(enable_viewport)',
139 'enable_hidpi%': '<(enable_hidpi)', 142 'enable_hidpi%': '<(enable_hidpi)',
140 'buildtype%': '<(buildtype)', 143 'buildtype%': '<(buildtype)',
141 'branding%': '<(branding)', 144 'branding%': '<(branding)',
142 'host_arch%': '<(host_arch)', 145 'host_arch%': '<(host_arch)',
143 'target_arch%': '<(target_arch)', 146 'target_arch%': '<(target_arch)',
144 147
145 'target_subarch%': '', 148 'target_subarch%': '',
146 149
147 # This is set when building the Android WebView inside the Android 150 # This is set when building the Android WebView inside the Android
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 # TODO(sdefresne): set the "target_arch" to "arm" once compilation 232 # TODO(sdefresne): set the "target_arch" to "arm" once compilation
230 # of skia has been fixed for simulator. http://crbug.com/342377 233 # of skia has been fixed for simulator. http://crbug.com/342377
231 ['OS=="ios"', { 234 ['OS=="ios"', {
232 'target_subarch%': 'arm32', 235 'target_subarch%': 'arm32',
233 }], 236 }],
234 ], 237 ],
235 }, 238 },
236 239
237 # Copy conditionally-set variables out one scope. 240 # Copy conditionally-set variables out one scope.
238 'chromeos%': '<(chromeos)', 241 'chromeos%': '<(chromeos)',
242 'chromecast%': '<(chromecast)',
239 'host_arch%': '<(host_arch)', 243 'host_arch%': '<(host_arch)',
240 'target_arch%': '<(target_arch)', 244 'target_arch%': '<(target_arch)',
241 'target_subarch%': '<(target_subarch)', 245 'target_subarch%': '<(target_subarch)',
242 'toolkit_views%': '<(toolkit_views)', 246 'toolkit_views%': '<(toolkit_views)',
243 'desktop_linux%': '<(desktop_linux)', 247 'desktop_linux%': '<(desktop_linux)',
244 'use_aura%': '<(use_aura)', 248 'use_aura%': '<(use_aura)',
245 'use_ash%': '<(use_ash)', 249 'use_ash%': '<(use_ash)',
246 'use_cras%': '<(use_cras)', 250 'use_cras%': '<(use_cras)',
247 'use_ozone%': '<(use_ozone)', 251 'use_ozone%': '<(use_ozone)',
248 'use_ozone_evdev%': '<(use_ozone_evdev)', 252 'use_ozone_evdev%': '<(use_ozone_evdev)',
249 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', 253 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
250 'embedded%': '<(embedded)', 254 'embedded%': '<(embedded)',
251 'use_openssl%': '<(use_openssl)', 255 'use_openssl%': '<(use_openssl)',
252 'use_openssl_certs%': '<(use_openssl_certs)', 256 'use_openssl_certs%': '<(use_openssl_certs)',
253 'use_system_fontconfig%': '<(use_system_fontconfig)',
254 'enable_viewport%': '<(enable_viewport)', 257 'enable_viewport%': '<(enable_viewport)',
255 'enable_hidpi%': '<(enable_hidpi)', 258 'enable_hidpi%': '<(enable_hidpi)',
256 'android_webview_build%': '<(android_webview_build)', 259 'android_webview_build%': '<(android_webview_build)',
257 'use_goma%': '<(use_goma)', 260 'use_goma%': '<(use_goma)',
258 'gomadir%': '<(gomadir)', 261 'gomadir%': '<(gomadir)',
259 'enable_app_list%': '<(enable_app_list)', 262 'enable_app_list%': '<(enable_app_list)',
260 'use_default_render_theme%': '<(use_default_render_theme)', 263 'use_default_render_theme%': '<(use_default_render_theme)',
261 'buildtype%': '<(buildtype)', 264 'buildtype%': '<(buildtype)',
262 'branding%': '<(branding)', 265 'branding%': '<(branding)',
263 'arm_version%': '<(arm_version)', 266 'arm_version%': '<(arm_version)',
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 'native_memory_pressure_signals%': 1, 705 'native_memory_pressure_signals%': 1,
703 'enable_printing%': 2, 706 'enable_printing%': 2,
704 'enable_task_manager%':0, 707 'enable_task_manager%':0,
705 # Set to 1 once we have a notification system for Android. 708 # Set to 1 once we have a notification system for Android.
706 # http://crbug.com/115320 709 # http://crbug.com/115320
707 'notifications%': 0, 710 'notifications%': 0,
708 'video_hole%': 1, 711 'video_hole%': 1,
709 }], 712 }],
710 713
711 # Android OS includes support for proprietary codecs regardless of 714 # Android OS includes support for proprietary codecs regardless of
712 # building Chromium or Google Chrome. We also ship Google Chrome with 715 # building Chromium or Google Chrome. We also ship Google Chrome and
713 # proprietary codecs. 716 # Chromecast with proprietary codecs.
714 ['OS=="android" or branding=="Chrome"', { 717 ['OS=="android" or branding=="Chrome" or chromecast==1', {
715 'proprietary_codecs%': 1, 718 'proprietary_codecs%': 1,
716 }, { 719 }, {
717 'proprietary_codecs%': 0, 720 'proprietary_codecs%': 0,
718 }], 721 }],
719 722
720 ['OS=="mac" or OS=="ios"', { 723 ['OS=="mac" or OS=="ios"', {
721 'native_discardable_memory%': 1, 724 'native_discardable_memory%': 1,
722 'native_memory_pressure_signals%': 1, 725 'native_memory_pressure_signals%': 1,
723 }], 726 }],
724 727
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 'v8_optimized_debug%': 2, 920 'v8_optimized_debug%': 2,
918 }], 921 }],
919 922
920 # Disable various features by default on embedded. 923 # Disable various features by default on embedded.
921 ['embedded==1', { 924 ['embedded==1', {
922 'remoting%': 0, 925 'remoting%': 0,
923 'enable_printing%': 0, 926 'enable_printing%': 0,
924 }], 927 }],
925 928
926 # By default, use ICU data file (icudtl.dat) on all platforms 929 # By default, use ICU data file (icudtl.dat) on all platforms
927 # except when building Android WebView. 930 # except when building Android WebView or Chromecast.
928 # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium). 931 # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium).
929 # Set the data reduction proxy origin for Android Webview. 932 # Set the data reduction proxy origin for Android Webview.
930 ['android_webview_build==0', { 933 ['android_webview_build==0 and chromecast==0', {
931 'icu_use_data_file_flag%' : 1, 934 'icu_use_data_file_flag%' : 1,
932 'spdy_proxy_auth_origin%': '', 935 'spdy_proxy_auth_origin%': '',
933 'data_reduction_proxy_probe_url%': '', 936 'data_reduction_proxy_probe_url%': '',
934 'data_reduction_proxy_warmup_url%': '', 937 'data_reduction_proxy_warmup_url%': '',
935 'data_reduction_dev_host%': '', 938 'data_reduction_dev_host%': '',
936 'data_reduction_fallback_host%': '', 939 'data_reduction_fallback_host%': '',
937 }, { 940 }, {
938 'icu_use_data_file_flag%' : 0, 941 'icu_use_data_file_flag%' : 0,
939 'spdy_proxy_auth_origin%': 'https://proxy.googlezip.net:443/', 942 'spdy_proxy_auth_origin%': 'https://proxy.googlezip.net:443/',
940 'data_reduction_proxy_probe_url%': 'http://check.googlezip.net/connect ', 943 'data_reduction_proxy_probe_url%': 'http://check.googlezip.net/connect ',
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 'use_udev%': '<(use_udev)', 1019 'use_udev%': '<(use_udev)',
1017 'os_bsd%': '<(os_bsd)', 1020 'os_bsd%': '<(os_bsd)',
1018 'os_posix%': '<(os_posix)', 1021 'os_posix%': '<(os_posix)',
1019 'use_dbus%': '<(use_dbus)', 1022 'use_dbus%': '<(use_dbus)',
1020 'use_glib%': '<(use_glib)', 1023 'use_glib%': '<(use_glib)',
1021 'use_pango%': '<(use_pango)', 1024 'use_pango%': '<(use_pango)',
1022 'use_cairo%': '<(use_cairo)', 1025 'use_cairo%': '<(use_cairo)',
1023 'use_ozone%': '<(use_ozone)', 1026 'use_ozone%': '<(use_ozone)',
1024 'use_ozone_evdev%': '<(use_ozone_evdev)', 1027 'use_ozone_evdev%': '<(use_ozone_evdev)',
1025 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', 1028 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
1026 'use_system_fontconfig%': '<(use_system_fontconfig)',
1027 'desktop_linux%': '<(desktop_linux)', 1029 'desktop_linux%': '<(desktop_linux)',
1028 'use_x11%': '<(use_x11)', 1030 'use_x11%': '<(use_x11)',
1029 'use_gnome_keyring%': '<(use_gnome_keyring)', 1031 'use_gnome_keyring%': '<(use_gnome_keyring)',
1030 'linux_fpic%': '<(linux_fpic)', 1032 'linux_fpic%': '<(linux_fpic)',
1031 'chromeos%': '<(chromeos)', 1033 'chromeos%': '<(chromeos)',
1034 'chromecast%': '<(chromecast)',
1032 'enable_viewport%': '<(enable_viewport)', 1035 'enable_viewport%': '<(enable_viewport)',
1033 'enable_hidpi%': '<(enable_hidpi)', 1036 'enable_hidpi%': '<(enable_hidpi)',
1034 'use_xi2_mt%':'<(use_xi2_mt)', 1037 'use_xi2_mt%':'<(use_xi2_mt)',
1035 'image_loader_extension%': '<(image_loader_extension)', 1038 'image_loader_extension%': '<(image_loader_extension)',
1036 'fastbuild%': '<(fastbuild)', 1039 'fastbuild%': '<(fastbuild)',
1037 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)', 1040 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)',
1038 'win_z7%': '<(win_z7)', 1041 'win_z7%': '<(win_z7)',
1039 'dcheck_always_on%': '<(dcheck_always_on)', 1042 'dcheck_always_on%': '<(dcheck_always_on)',
1040 'tracing_like_official_build%': '<(tracing_like_official_build)', 1043 'tracing_like_official_build%': '<(tracing_like_official_build)',
1041 'arm_version%': '<(arm_version)', 1044 'arm_version%': '<(arm_version)',
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 # where possible to reduce ROM size. 1746 # where possible to reduce ROM size.
1744 # TODO(steveblock): Investigate using the system version of sqlite. 1747 # TODO(steveblock): Investigate using the system version of sqlite.
1745 'use_system_sqlite%': 0, # '<(android_webview_build)', 1748 'use_system_sqlite%': 0, # '<(android_webview_build)',
1746 'use_system_expat%': '<(android_webview_build)', 1749 'use_system_expat%': '<(android_webview_build)',
1747 'use_system_icu%': '<(android_webview_build)', 1750 'use_system_icu%': '<(android_webview_build)',
1748 'use_system_stlport%': '<(android_webview_build)', 1751 'use_system_stlport%': '<(android_webview_build)',
1749 1752
1750 # Copy it out one scope. 1753 # Copy it out one scope.
1751 'android_webview_build%': '<(android_webview_build)', 1754 'android_webview_build%': '<(android_webview_build)',
1752 }], # OS=="android" 1755 }], # OS=="android"
1756 ['embedded==1', {
1757 'use_system_fontconfig%': 0,
1758 }, {
1759 'use_system_fontconfig%': 1,
1760 }],
1761 ['chromecast==1', {
1762 'ffmpeg_branding%': 'Chrome',
1763 'ozone_platform_ozonex%': 1,
1764 'conditions': [
1765 ['target_arch=="arm"', {
1766 'arm_arch%': '',
1767 'arm_tune%': 'cortex-a9',
1768 'arm_thumb%': 1,
1769 'enable_mpeg2ts_stream_parser%': 1,
1770 'video_hole%': 1,
1771 }],
1772 ],
1773 }],
1753 ['android_webview_build==1', { 1774 ['android_webview_build==1', {
1754 # When building the WebView in the Android tree, jarjar will remap all 1775 # When building the WebView in the Android tree, jarjar will remap all
1755 # the class names, so the JNI generator needs to know this. 1776 # the class names, so the JNI generator needs to know this.
1756 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt' , 1777 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt' ,
1757 }], 1778 }],
1758 ['OS=="mac"', { 1779 ['OS=="mac"', {
1759 'conditions': [ 1780 'conditions': [
1760 # All Chrome builds have breakpad symbols, but only process the 1781 # All Chrome builds have breakpad symbols, but only process the
1761 # symbols from official builds. 1782 # symbols from official builds.
1762 ['(branding=="Chrome" and buildtype=="Official")', { 1783 ['(branding=="Chrome" and buildtype=="Official")', {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1870 'secure_atl%': 1, 1891 'secure_atl%': 1,
1871 }], 1892 }],
1872 ], 1893 ],
1873 'nacl_win64_defines': [ 1894 'nacl_win64_defines': [
1874 # This flag is used to minimize dependencies when building 1895 # This flag is used to minimize dependencies when building
1875 # Native Client loader for 64-bit Windows. 1896 # Native Client loader for 64-bit Windows.
1876 'NACL_WIN64', 1897 'NACL_WIN64',
1877 ], 1898 ],
1878 }], 1899 }],
1879 1900
1880 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios"', { 1901 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios" and embedded ==0', {
1881 'use_cups%': 1, 1902 'use_cups%': 1,
1882 }, { 1903 }, {
1883 'use_cups%': 0, 1904 'use_cups%': 0,
1884 }], 1905 }],
1885 1906
1886 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win")', { 1907 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win")', {
1887 'enable_pepper_cdms%': 1, 1908 'enable_pepper_cdms%': 1,
1888 }, { 1909 }, {
1889 'enable_pepper_cdms%': 0, 1910 'enable_pepper_cdms%': 0,
1890 }], 1911 }],
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
2281 # variable placed at the root variables scope of .gyp files, because 2302 # variable placed at the root variables scope of .gyp files, because
2282 # those variables are not set at target scope. As a workaround, 2303 # those variables are not set at target scope. As a workaround,
2283 # if chromium_code is not set at target scope, define it in target scope 2304 # if chromium_code is not set at target scope, define it in target scope
2284 # to contain whatever value it has during early variable expansion. 2305 # to contain whatever value it has during early variable expansion.
2285 # That's enough to make it available during target conditional 2306 # That's enough to make it available during target conditional
2286 # processing. 2307 # processing.
2287 'chromium_code%': '<(chromium_code)', 2308 'chromium_code%': '<(chromium_code)',
2288 2309
2289 'component%': '<(component)', 2310 'component%': '<(component)',
2290 2311
2312 'chromecast%': '<(chromecast)',
2313
2291 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx 2314 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx
2292 'win_release_Optimization%': '2', # 2 = /Os 2315 'win_release_Optimization%': '2', # 2 = /Os
2293 'win_debug_Optimization%': '0', # 0 = /Od 2316 'win_debug_Optimization%': '0', # 0 = /Od
2294 2317
2295 # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx 2318 # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx
2296 # Tri-state: blank is default, 1 on, 0 off 2319 # Tri-state: blank is default, 1 on, 0 off
2297 'win_release_OmitFramePointers%': '0', 2320 'win_release_OmitFramePointers%': '0',
2298 # Tri-state: blank is default, 1 on, 0 off 2321 # Tri-state: blank is default, 1 on, 0 off
2299 'win_debug_OmitFramePointers%': '', 2322 'win_debug_OmitFramePointers%': '',
2300 2323
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
2661 'VCLinkerTool': { 2684 'VCLinkerTool': {
2662 'GenerateDebugInformation': 'true', 2685 'GenerateDebugInformation': 'true',
2663 }, 2686 },
2664 'VCCLCompilerTool': { 2687 'VCCLCompilerTool': {
2665 'DebugInformationFormat': '1', 2688 'DebugInformationFormat': '1',
2666 } 2689 }
2667 } 2690 }
2668 }], 2691 }],
2669 ], # win_z7!=0 2692 ], # win_z7!=0
2670 }], # OS==win 2693 }], # OS==win
2694 ['chromecast==1', {
2695 'defines': [
2696 'LOG_DISABLED=0',
2697 ],
2698 'conditions': [
2699 ['target_arch=="arm"', {
2700 'defines': [
2701 # TODO(lcwu): Work around an error when building Chromium
2702 # with gcc-4.5.3 (e.g. v8/src/platform-linux.cc). Remove
2703 # this define once the toolchain is updated.
2704 # See crbug.com/388933.
2705 '__SOFTFP',
2706 ],
2707 }],
2708 ],
2709 }],
2671 ['enable_task_manager==1', { 2710 ['enable_task_manager==1', {
2672 'defines': [ 2711 'defines': [
2673 'ENABLE_TASK_MANAGER=1', 2712 'ENABLE_TASK_MANAGER=1',
2674 ], 2713 ],
2675 }], 2714 }],
2676 ['enable_extensions==1', { 2715 ['enable_extensions==1', {
2677 'defines': [ 2716 'defines': [
2678 'ENABLE_EXTENSIONS=1', 2717 'ENABLE_EXTENSIONS=1',
2679 ], 2718 ],
2680 }], 2719 }],
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
3710 '-B<!(cd <(DEPTH) && pwd -P)/build/android/arm-linux-a ndroideabi-gold', 3749 '-B<!(cd <(DEPTH) && pwd -P)/build/android/arm-linux-a ndroideabi-gold',
3711 ], 3750 ],
3712 }], 3751 }],
3713 ['asan==1', { 3752 ['asan==1', {
3714 'cflags': [ 3753 'cflags': [
3715 '-marm', # Required for frame pointer based stack trac es. 3754 '-marm', # Required for frame pointer based stack trac es.
3716 ], 3755 ],
3717 }], 3756 }],
3718 ], 3757 ],
3719 }], 3758 }],
3759 ['chromecast==1', {
3760 'cflags': [
3761 # We set arm_arch to "" so that -march compiler option
3762 # is not set. Otherwise a gcc bug that would complain
3763 # about it conflicting with '-mcpu=cortex-a9'. The flag
3764 # '-march=armv7-a' is actually redundant anyway because
3765 # it is enabled by default when we built the toolchain.
3766 # And using '-mcpu=cortex-a9' should be sufficient.
3767 '-mcpu=cortex-a9',
3768 '-funwind-tables',
3769 # Breakpad requires symbols with debugging information
3770 '-g',
3771 ],
3772 'ldflags': [
3773 # We want to statically link libstdc++/libgcc_s.
3774 '-static-libstdc++',
3775 '-static-libgcc',
3776 ],
3777 'cflags!': [
3778 # Some components in Chromium (e.g. v8, skia, ffmpeg)
3779 # define their own cflags for arm builds that could
3780 # conflict with the flags we set here (e.g.
3781 # '-mcpu=cortex-a9'). Remove these flags explicitly.
3782 '-march=armv7-a',
3783 '-mtune=cortex-a8',
3784 ],
3785 }],
3720 ], 3786 ],
3721 }], 3787 }],
3722 ], 3788 ],
3723 }], 3789 }],
3724 ['target_arch=="arm64"', { 3790 ['target_arch=="arm64"', {
3725 'target_conditions': [ 3791 'target_conditions': [
3726 ['_toolset=="target"', { 3792 ['_toolset=="target"', {
3727 'conditions': [ 3793 'conditions': [
3728 ['OS=="android"', { 3794 ['OS=="android"', {
3729 'cflags!': [ 3795 'cflags!': [
(...skipping 1817 matching lines...) Expand 10 before | Expand all | Expand 10 after
5547 # settings in target dicts. SYMROOT is a special case, because many other 5613 # settings in target dicts. SYMROOT is a special case, because many other
5548 # Xcode variables depend on it, including variables such as 5614 # Xcode variables depend on it, including variables such as
5549 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5615 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5550 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5616 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5551 # files to appear (when present) in the UI as actual files and not red 5617 # files to appear (when present) in the UI as actual files and not red
5552 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5618 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5553 # and therefore SYMROOT, needs to be set at the project level. 5619 # and therefore SYMROOT, needs to be set at the project level.
5554 'SYMROOT': '<(DEPTH)/xcodebuild', 5620 'SYMROOT': '<(DEPTH)/xcodebuild',
5555 }, 5621 },
5556 } 5622 }
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698