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

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: Enable ozone/embedded when chromecast == 1. Also add libgles2-mesa-dev as a dependency for chromeca… Created 6 years, 6 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
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 }],
49 ['chromecast==1', {
50 'embedded%': 1,
51 }],
46 ], 52 ],
47 }, 53 },
48 # Copy conditionally-set variables out one scope. 54 # Copy conditionally-set variables out one scope.
49 'chromeos%': '<(chromeos)', 55 'chromeos%': '<(chromeos)',
56 'chromecast%': '<(chromecast)',
50 'use_aura%': '<(use_aura)', 57 'use_aura%': '<(use_aura)',
51 'use_ash%': '<(use_ash)', 58 'use_ash%': '<(use_ash)',
52 'use_cras%': '<(use_cras)', 59 'use_cras%': '<(use_cras)',
53 'use_ozone%': '<(use_ozone)', 60 'use_ozone%': '<(use_ozone)',
54 'embedded%': '<(embedded)', 61 'embedded%': '<(embedded)',
55 'host_arch%': '<(host_arch)', 62 'host_arch%': '<(host_arch)',
56 63
57 # Whether we are using Views Toolkit 64 # Whether we are using Views Toolkit
58 'toolkit_views%': 0, 65 'toolkit_views%': 0,
59 66
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 'target_arch%': 'arm', 126 'target_arch%': 'arm',
120 }, { 127 }, {
121 # Default architecture we're building for is the architecture we'r e 128 # Default architecture we're building for is the architecture we'r e
122 # building on, and possibly sub-architecture (for iOS builds). 129 # building on, and possibly sub-architecture (for iOS builds).
123 'target_arch%': '<(host_arch)', 130 'target_arch%': '<(host_arch)',
124 }], 131 }],
125 ], 132 ],
126 }, 133 },
127 # Copy conditionally-set variables out one scope. 134 # Copy conditionally-set variables out one scope.
128 'chromeos%': '<(chromeos)', 135 'chromeos%': '<(chromeos)',
136 'chromecast%': '<(chromecast)',
129 'desktop_linux%': '<(desktop_linux)', 137 'desktop_linux%': '<(desktop_linux)',
130 'use_aura%': '<(use_aura)', 138 'use_aura%': '<(use_aura)',
131 'use_ash%': '<(use_ash)', 139 'use_ash%': '<(use_ash)',
132 'use_cras%': '<(use_cras)', 140 'use_cras%': '<(use_cras)',
133 'use_ozone%': '<(use_ozone)', 141 'use_ozone%': '<(use_ozone)',
134 'embedded%': '<(embedded)', 142 'embedded%': '<(embedded)',
135 'use_openssl%': '<(use_openssl)', 143 'use_openssl%': '<(use_openssl)',
136 'use_openssl_certs%': '<(use_openssl_certs)', 144 'use_openssl_certs%': '<(use_openssl_certs)',
137 'use_system_fontconfig%': '<(use_system_fontconfig)', 145 'use_system_fontconfig%': '<(use_system_fontconfig)',
138 'enable_viewport%': '<(enable_viewport)', 146 'enable_viewport%': '<(enable_viewport)',
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 # TODO(sdefresne): set the "target_arch" to "arm" once compilation 238 # TODO(sdefresne): set the "target_arch" to "arm" once compilation
231 # of skia has been fixed for simulator. http://crbug.com/342377 239 # of skia has been fixed for simulator. http://crbug.com/342377
232 ['OS=="ios"', { 240 ['OS=="ios"', {
233 'target_subarch%': 'arm32', 241 'target_subarch%': 'arm32',
234 }], 242 }],
235 ], 243 ],
236 }, 244 },
237 245
238 # Copy conditionally-set variables out one scope. 246 # Copy conditionally-set variables out one scope.
239 'chromeos%': '<(chromeos)', 247 'chromeos%': '<(chromeos)',
248 'chromecast%': '<(chromecast)',
240 'host_arch%': '<(host_arch)', 249 'host_arch%': '<(host_arch)',
241 'target_arch%': '<(target_arch)', 250 'target_arch%': '<(target_arch)',
242 'target_subarch%': '<(target_subarch)', 251 'target_subarch%': '<(target_subarch)',
243 'toolkit_views%': '<(toolkit_views)', 252 'toolkit_views%': '<(toolkit_views)',
244 'desktop_linux%': '<(desktop_linux)', 253 'desktop_linux%': '<(desktop_linux)',
245 'use_aura%': '<(use_aura)', 254 'use_aura%': '<(use_aura)',
246 'use_ash%': '<(use_ash)', 255 'use_ash%': '<(use_ash)',
247 'use_cras%': '<(use_cras)', 256 'use_cras%': '<(use_cras)',
248 'use_ozone%': '<(use_ozone)', 257 'use_ozone%': '<(use_ozone)',
249 'use_ozone_evdev%': '<(use_ozone_evdev)', 258 'use_ozone_evdev%': '<(use_ozone_evdev)',
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 'native_memory_pressure_signals%': 1, 709 'native_memory_pressure_signals%': 1,
701 'enable_printing%': 2, 710 'enable_printing%': 2,
702 'enable_task_manager%':0, 711 'enable_task_manager%':0,
703 # Set to 1 once we have a notification system for Android. 712 # Set to 1 once we have a notification system for Android.
704 # http://crbug.com/115320 713 # http://crbug.com/115320
705 'notifications%': 0, 714 'notifications%': 0,
706 'video_hole%': 1, 715 'video_hole%': 1,
707 }], 716 }],
708 717
709 # Android OS includes support for proprietary codecs regardless of 718 # Android OS includes support for proprietary codecs regardless of
710 # building Chromium or Google Chrome. We also ship Google Chrome with 719 # building Chromium or Google Chrome. We also ship Google Chrome and
711 # proprietary codecs. 720 # Chromecast with proprietary codecs.
712 ['OS=="android" or branding=="Chrome"', { 721 ['OS=="android" or branding=="Chrome" or chromecast==1', {
713 'proprietary_codecs%': 1, 722 'proprietary_codecs%': 1,
714 }, { 723 }, {
715 'proprietary_codecs%': 0, 724 'proprietary_codecs%': 0,
716 }], 725 }],
717 726
718 ['OS=="mac" or OS=="ios"', { 727 ['OS=="mac" or OS=="ios"', {
719 'native_discardable_memory%': 1, 728 'native_discardable_memory%': 1,
720 'native_memory_pressure_signals%': 1, 729 'native_memory_pressure_signals%': 1,
721 }], 730 }],
722 731
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 'v8_optimized_debug%': 2, 925 'v8_optimized_debug%': 2,
917 }], 926 }],
918 927
919 # Disable various features by default on embedded. 928 # Disable various features by default on embedded.
920 ['embedded==1', { 929 ['embedded==1', {
921 'remoting%': 0, 930 'remoting%': 0,
922 'enable_printing%': 0, 931 'enable_printing%': 0,
923 }], 932 }],
924 933
925 # By default, use ICU data file (icudtl.dat) on all platforms 934 # By default, use ICU data file (icudtl.dat) on all platforms
926 # except when building Android WebView. 935 # except when building Android WebView or Chromecast.
927 # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium). 936 # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium).
928 # Set the data reduction proxy origin for Android Webview. 937 # Set the data reduction proxy origin for Android Webview.
929 ['android_webview_build==0', { 938 ['android_webview_build==0 and chromecast==0', {
930 'icu_use_data_file_flag%' : 1, 939 'icu_use_data_file_flag%' : 1,
931 'spdy_proxy_auth_origin%': '', 940 'spdy_proxy_auth_origin%': '',
932 'data_reduction_proxy_probe_url%': '', 941 'data_reduction_proxy_probe_url%': '',
933 'data_reduction_proxy_warmup_url%': '', 942 'data_reduction_proxy_warmup_url%': '',
934 'data_reduction_dev_host%': '', 943 'data_reduction_dev_host%': '',
935 'data_reduction_fallback_host%': '', 944 'data_reduction_fallback_host%': '',
936 }, { 945 }, {
937 'icu_use_data_file_flag%' : 0, 946 'icu_use_data_file_flag%' : 0,
938 'spdy_proxy_auth_origin%': 'https://proxy.googlezip.net:443/', 947 'spdy_proxy_auth_origin%': 'https://proxy.googlezip.net:443/',
939 'data_reduction_proxy_probe_url%': 'http://check.googlezip.net/connect ', 948 'data_reduction_proxy_probe_url%': 'http://check.googlezip.net/connect ',
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 'use_cairo%': '<(use_cairo)', 1030 'use_cairo%': '<(use_cairo)',
1022 'use_ozone%': '<(use_ozone)', 1031 'use_ozone%': '<(use_ozone)',
1023 'use_ozone_evdev%': '<(use_ozone_evdev)', 1032 'use_ozone_evdev%': '<(use_ozone_evdev)',
1024 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', 1033 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
1025 'use_system_fontconfig%': '<(use_system_fontconfig)', 1034 'use_system_fontconfig%': '<(use_system_fontconfig)',
1026 'desktop_linux%': '<(desktop_linux)', 1035 'desktop_linux%': '<(desktop_linux)',
1027 'use_x11%': '<(use_x11)', 1036 'use_x11%': '<(use_x11)',
1028 'use_gnome_keyring%': '<(use_gnome_keyring)', 1037 'use_gnome_keyring%': '<(use_gnome_keyring)',
1029 'linux_fpic%': '<(linux_fpic)', 1038 'linux_fpic%': '<(linux_fpic)',
1030 'chromeos%': '<(chromeos)', 1039 'chromeos%': '<(chromeos)',
1040 'chromecast%': '<(chromecast)',
1031 'enable_viewport%': '<(enable_viewport)', 1041 'enable_viewport%': '<(enable_viewport)',
1032 'enable_hidpi%': '<(enable_hidpi)', 1042 'enable_hidpi%': '<(enable_hidpi)',
1033 'use_xi2_mt%':'<(use_xi2_mt)', 1043 'use_xi2_mt%':'<(use_xi2_mt)',
1034 'image_loader_extension%': '<(image_loader_extension)', 1044 'image_loader_extension%': '<(image_loader_extension)',
1035 'fastbuild%': '<(fastbuild)', 1045 'fastbuild%': '<(fastbuild)',
1036 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)', 1046 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)',
1037 'win_z7%': '<(win_z7)', 1047 'win_z7%': '<(win_z7)',
1038 'dcheck_always_on%': '<(dcheck_always_on)', 1048 'dcheck_always_on%': '<(dcheck_always_on)',
1039 'tracing_like_official_build%': '<(tracing_like_official_build)', 1049 'tracing_like_official_build%': '<(tracing_like_official_build)',
1040 'arm_version%': '<(arm_version)', 1050 'arm_version%': '<(arm_version)',
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1740 # where possible to reduce ROM size. 1750 # where possible to reduce ROM size.
1741 # TODO(steveblock): Investigate using the system version of sqlite. 1751 # TODO(steveblock): Investigate using the system version of sqlite.
1742 'use_system_sqlite%': 0, # '<(android_webview_build)', 1752 'use_system_sqlite%': 0, # '<(android_webview_build)',
1743 'use_system_expat%': '<(android_webview_build)', 1753 'use_system_expat%': '<(android_webview_build)',
1744 'use_system_icu%': '<(android_webview_build)', 1754 'use_system_icu%': '<(android_webview_build)',
1745 'use_system_stlport%': '<(android_webview_build)', 1755 'use_system_stlport%': '<(android_webview_build)',
1746 1756
1747 # Copy it out one scope. 1757 # Copy it out one scope.
1748 'android_webview_build%': '<(android_webview_build)', 1758 'android_webview_build%': '<(android_webview_build)',
1749 }], # OS=="android" 1759 }], # OS=="android"
1760 ['chromecast==1', {
1761 'ffmpeg_branding%': 'Chrome',
1762 'ozone_platform_ozonex%': 1,
rjkroege 2014/06/25 16:44:16 where is this platform?
spang 2014/06/25 16:53:28 This is a gyp hack to allow X dependencies in ozon
1763 'conditions': [
1764 ['target_arch=="arm"', {
1765 'arm_arch%': '',
1766 'arm_tune%': 'cortex-a9',
1767 'arm_thumb%': 1,
1768 'enable_mpeg2ts_stream_parser%': 1,
1769 'video_hole%': 1,
1770 }],
1771 ],
1772 }],
1750 ['android_webview_build==1', { 1773 ['android_webview_build==1', {
1751 # When building the WebView in the Android tree, jarjar will remap all 1774 # When building the WebView in the Android tree, jarjar will remap all
1752 # the class names, so the JNI generator needs to know this. 1775 # the class names, so the JNI generator needs to know this.
1753 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt' , 1776 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt' ,
1754 }], 1777 }],
1755 ['OS=="mac"', { 1778 ['OS=="mac"', {
1756 'conditions': [ 1779 'conditions': [
1757 # All Chrome builds have breakpad symbols, but only process the 1780 # All Chrome builds have breakpad symbols, but only process the
1758 # symbols from official builds. 1781 # symbols from official builds.
1759 ['(branding=="Chrome" and buildtype=="Official")', { 1782 ['(branding=="Chrome" and buildtype=="Official")', {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1867 'secure_atl%': 1, 1890 'secure_atl%': 1,
1868 }], 1891 }],
1869 ], 1892 ],
1870 'nacl_win64_defines': [ 1893 'nacl_win64_defines': [
1871 # This flag is used to minimize dependencies when building 1894 # This flag is used to minimize dependencies when building
1872 # Native Client loader for 64-bit Windows. 1895 # Native Client loader for 64-bit Windows.
1873 'NACL_WIN64', 1896 'NACL_WIN64',
1874 ], 1897 ],
1875 }], 1898 }],
1876 1899
1877 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios"', { 1900 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios" and chromeca st==0', {
rjkroege 2014/06/25 16:44:16 cups is for printing yes? I think you get this tur
lcwu1 2014/06/25 22:41:02 I don't think it is turned off when embedded==1. I
1878 'use_cups%': 1, 1901 'use_cups%': 1,
1879 }, { 1902 }, {
1880 'use_cups%': 0, 1903 'use_cups%': 0,
1881 }], 1904 }],
1882 1905
1883 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win")', { 1906 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win")', {
1884 'enable_pepper_cdms%': 1, 1907 'enable_pepper_cdms%': 1,
1885 }, { 1908 }, {
1886 'enable_pepper_cdms%': 0, 1909 'enable_pepper_cdms%': 0,
1887 }], 1910 }],
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
2276 # variable placed at the root variables scope of .gyp files, because 2299 # variable placed at the root variables scope of .gyp files, because
2277 # those variables are not set at target scope. As a workaround, 2300 # those variables are not set at target scope. As a workaround,
2278 # if chromium_code is not set at target scope, define it in target scope 2301 # if chromium_code is not set at target scope, define it in target scope
2279 # to contain whatever value it has during early variable expansion. 2302 # to contain whatever value it has during early variable expansion.
2280 # That's enough to make it available during target conditional 2303 # That's enough to make it available during target conditional
2281 # processing. 2304 # processing.
2282 'chromium_code%': '<(chromium_code)', 2305 'chromium_code%': '<(chromium_code)',
2283 2306
2284 'component%': '<(component)', 2307 'component%': '<(component)',
2285 2308
2309 'chromecast%': '<(chromecast)',
2310
2286 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx 2311 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx
2287 'win_release_Optimization%': '2', # 2 = /Os 2312 'win_release_Optimization%': '2', # 2 = /Os
2288 'win_debug_Optimization%': '0', # 0 = /Od 2313 'win_debug_Optimization%': '0', # 0 = /Od
2289 2314
2290 # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx 2315 # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx
2291 # Tri-state: blank is default, 1 on, 0 off 2316 # Tri-state: blank is default, 1 on, 0 off
2292 'win_release_OmitFramePointers%': '0', 2317 'win_release_OmitFramePointers%': '0',
2293 # Tri-state: blank is default, 1 on, 0 off 2318 # Tri-state: blank is default, 1 on, 0 off
2294 'win_debug_OmitFramePointers%': '', 2319 'win_debug_OmitFramePointers%': '',
2295 2320
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
2654 'VCLinkerTool': { 2679 'VCLinkerTool': {
2655 'GenerateDebugInformation': 'true', 2680 'GenerateDebugInformation': 'true',
2656 }, 2681 },
2657 'VCCLCompilerTool': { 2682 'VCCLCompilerTool': {
2658 'DebugInformationFormat': '1', 2683 'DebugInformationFormat': '1',
2659 } 2684 }
2660 } 2685 }
2661 }], 2686 }],
2662 ], # win_z7!=0 2687 ], # win_z7!=0
2663 }], # OS==win 2688 }], # OS==win
2689 ['chromecast==1', {
2690 'defines': [
2691 'LOG_DISABLED=0',
rjkroege 2014/06/25 16:44:16 why?
lcwu1 2014/06/25 22:41:02 Because we don't want to disable all the logs from
2692 ],
2693 'conditions': [
2694 ['target_arch=="arm"', {
2695 'defines': [
2696 # TODO(lcwu): Work around an error when building Chromium
rjkroege 2014/06/25 16:44:16 it would be a good idea to have a bug that goes wi
lcwu1 2014/06/25 22:41:02 Will create one.
2697 # with gcc-4.5.3 (e.g. v8/src/platform-linux.cc). Remove
2698 # this define once the toolchain is updated.
2699 '__SOFTFP',
2700 ],
2701 }],
2702 ],
2703 }],
2664 ['enable_task_manager==1', { 2704 ['enable_task_manager==1', {
2665 'defines': [ 2705 'defines': [
2666 'ENABLE_TASK_MANAGER=1', 2706 'ENABLE_TASK_MANAGER=1',
2667 ], 2707 ],
2668 }], 2708 }],
2669 ['enable_extensions==1', { 2709 ['enable_extensions==1', {
2670 'defines': [ 2710 'defines': [
2671 'ENABLE_EXTENSIONS=1', 2711 'ENABLE_EXTENSIONS=1',
2672 ], 2712 ],
2673 }], 2713 }],
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after
3694 '-B<!(cd <(DEPTH) && pwd -P)/build/android/arm-linux-a ndroideabi-gold', 3734 '-B<!(cd <(DEPTH) && pwd -P)/build/android/arm-linux-a ndroideabi-gold',
3695 ], 3735 ],
3696 }], 3736 }],
3697 ['asan==1', { 3737 ['asan==1', {
3698 'cflags': [ 3738 'cflags': [
3699 '-marm', # Required for frame pointer based stack trac es. 3739 '-marm', # Required for frame pointer based stack trac es.
3700 ], 3740 ],
3701 }], 3741 }],
3702 ], 3742 ],
3703 }], 3743 }],
3744 ['chromecast==1', {
3745 'cflags': [
rjkroege 2014/06/25 16:44:16 this block would seem also be temporary? i.e. it c
lcwu1 2014/06/25 22:41:02 This block is not temporary. I only added this big
3746 # We set arm_arch to "" so that -march compiler option
3747 # is not set. Otherwise a gcc bug that would complain
3748 # about it conflicting with '-mcpu=cortex-a9'. The flag
3749 # '-march=armv7-a' is actually redundant anyway because
3750 # it is enabled by default when we built the toolchain.
3751 # And using '-mcpu=cortex-a9' should be sufficient.
3752 '-mcpu=cortex-a9',
3753 '-funwind-tables',
3754 # Breakpad requires symbols with debugging information
3755 '-g',
3756 ],
3757 'ldflags': [
3758 # We want to statically link libstdc++/libgcc_s.
3759 '-static-libstdc++',
3760 '-static-libgcc',
3761 ],
3762 'cflags!': [
3763 # Some components in Chromium (e.g. v8, skia, ffmpeg)
3764 # define their own cflags for arm builds that could
3765 # conflict with the flags we set here (e.g.
3766 # '-mcpu=cortex-a9'). Remove these flags explicitly.
3767 '-march=armv7-a',
3768 '-mtune=cortex-a8',
3769 ],
3770 }],
3704 ], 3771 ],
3705 }], 3772 }],
3706 ], 3773 ],
3707 }], 3774 }],
3708 ['target_arch=="arm64"', { 3775 ['target_arch=="arm64"', {
3709 'target_conditions': [ 3776 'target_conditions': [
3710 ['_toolset=="target"', { 3777 ['_toolset=="target"', {
3711 'conditions': [ 3778 'conditions': [
3712 ['OS=="android"', { 3779 ['OS=="android"', {
3713 'cflags!': [ 3780 'cflags!': [
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after
5481 # settings in target dicts. SYMROOT is a special case, because many other 5548 # settings in target dicts. SYMROOT is a special case, because many other
5482 # Xcode variables depend on it, including variables such as 5549 # Xcode variables depend on it, including variables such as
5483 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5550 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5484 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5551 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5485 # files to appear (when present) in the UI as actual files and not red 5552 # files to appear (when present) in the UI as actual files and not red
5486 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5553 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5487 # and therefore SYMROOT, needs to be set at the project level. 5554 # and therefore SYMROOT, needs to be set at the project level.
5488 'SYMROOT': '<(DEPTH)/xcodebuild', 5555 'SYMROOT': '<(DEPTH)/xcodebuild',
5489 }, 5556 },
5490 } 5557 }
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | build/install-build-deps.sh » ('j') | build/install-build-deps.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698