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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 'android_webview_build%': 0, | 116 'android_webview_build%': 0, |
117 | 117 |
118 # Sets whether chrome is built for google tv device. | 118 # Sets whether chrome is built for google tv device. |
119 'google_tv%': 0, | 119 'google_tv%': 0, |
120 | 120 |
121 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they | 121 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they |
122 # are built under a chromium full build (1) or a webkit.org chromium | 122 # are built under a chromium full build (1) or a webkit.org chromium |
123 # build (0). | 123 # build (0). |
124 'inside_chromium_build%': 1, | 124 'inside_chromium_build%': 1, |
125 | 125 |
| 126 # Set ARM architecture version. |
| 127 'arm_version%': 7, |
| 128 |
126 'conditions': [ | 129 'conditions': [ |
127 # Set default value of toolkit_views based on OS. | 130 # Set default value of toolkit_views based on OS. |
128 ['OS=="win" or chromeos==1 or use_aura==1', { | 131 ['OS=="win" or chromeos==1 or use_aura==1', { |
129 'toolkit_views%': 1, | 132 'toolkit_views%': 1, |
130 }, { | 133 }, { |
131 'toolkit_views%': 0, | 134 'toolkit_views%': 0, |
132 }], | 135 }], |
133 | 136 |
134 # Set toolkit_uses_gtk for the Chromium browser on Linux. | 137 # Set toolkit_uses_gtk for the Chromium browser on Linux. |
135 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and
use_aura==0', { | 138 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and
use_aura==0', { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 'enable_viewport%': '<(enable_viewport)', | 186 'enable_viewport%': '<(enable_viewport)', |
184 'enable_hidpi%': '<(enable_hidpi)', | 187 'enable_hidpi%': '<(enable_hidpi)', |
185 'enable_touch_ui%': '<(enable_touch_ui)', | 188 'enable_touch_ui%': '<(enable_touch_ui)', |
186 'android_webview_build%': '<(android_webview_build)', | 189 'android_webview_build%': '<(android_webview_build)', |
187 'google_tv%': '<(google_tv)', | 190 'google_tv%': '<(google_tv)', |
188 'inside_chromium_build%': '<(inside_chromium_build)', | 191 'inside_chromium_build%': '<(inside_chromium_build)', |
189 'enable_app_list%': '<(enable_app_list)', | 192 'enable_app_list%': '<(enable_app_list)', |
190 'enable_message_center%': '<(enable_message_center)', | 193 'enable_message_center%': '<(enable_message_center)', |
191 'use_default_render_theme%': '<(use_default_render_theme)', | 194 'use_default_render_theme%': '<(use_default_render_theme)', |
192 'buildtype%': '<(buildtype)', | 195 'buildtype%': '<(buildtype)', |
| 196 'arm_version%': '<(arm_version)', |
193 | 197 |
194 # Override branding to select the desired branding flavor. | 198 # Override branding to select the desired branding flavor. |
195 'branding%': 'Chromium', | 199 'branding%': 'Chromium', |
196 | 200 |
197 # Set to 1 to enable fast builds. Set to 2 for even faster builds | 201 # Set to 1 to enable fast builds. Set to 2 for even faster builds |
198 # (it disables debug info for fastest compilation - only for use | 202 # (it disables debug info for fastest compilation - only for use |
199 # on compile-only bots). | 203 # on compile-only bots). |
200 'fastbuild%': 0, | 204 'fastbuild%': 0, |
201 | 205 |
202 # Set to 1 to enable dcheck in release without having to use the flag. | 206 # Set to 1 to enable dcheck in release without having to use the flag. |
203 'dcheck_always_on%': 0, | 207 'dcheck_always_on%': 0, |
204 | 208 |
205 # Disable file manager component extension by default. | 209 # Disable file manager component extension by default. |
206 'file_manager_extension%': 0, | 210 'file_manager_extension%': 0, |
207 | 211 |
208 # Disable image loader component extension by default. | 212 # Disable image loader component extension by default. |
209 'image_loader_extension%': 0, | 213 'image_loader_extension%': 0, |
210 | 214 |
211 # Python version. | 215 # Python version. |
212 'python_ver%': '2.6', | 216 'python_ver%': '2.6', |
213 | 217 |
214 # Set ARM-v7 compilation flags | |
215 'armv7%': 0, | |
216 | 218 |
217 # Set Neon compilation flags (only meaningful if armv7==1). | 219 # Set NEON compilation flags. |
218 'arm_neon%': 1, | 220 'arm_neon%': 1, |
219 | 221 |
| 222 # Detect NEON support at run-time. |
| 223 'arm_neon_optional%': 0, |
| 224 |
220 # The system root for cross-compiles. Default: none. | 225 # The system root for cross-compiles. Default: none. |
221 'sysroot%': '', | 226 'sysroot%': '', |
222 | 227 |
223 # The system libdir used for this ABI. | 228 # The system libdir used for this ABI. |
224 'system_libdir%': 'lib', | 229 'system_libdir%': 'lib', |
225 | 230 |
226 # On Linux, we build with sse2 for Chromium builds. | 231 # On Linux, we build with sse2 for Chromium builds. |
227 'disable_sse2%': 0, | 232 'disable_sse2%': 0, |
228 | 233 |
229 # Use libjpeg-turbo as the JPEG codec used by Chromium. | 234 # Use libjpeg-turbo as the JPEG codec used by Chromium. |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 'os_posix%': 1, | 422 'os_posix%': 1, |
418 }], | 423 }], |
419 | 424 |
420 # A flag for BSD platforms | 425 # A flag for BSD platforms |
421 ['OS=="freebsd" or OS=="openbsd"', { | 426 ['OS=="freebsd" or OS=="openbsd"', { |
422 'os_bsd%': 1, | 427 'os_bsd%': 1, |
423 }, { | 428 }, { |
424 'os_bsd%': 0, | 429 'os_bsd%': 0, |
425 }], | 430 }], |
426 | 431 |
| 432 # Set armv7 for backward compatibility. |
| 433 ['arm_version==7', { |
| 434 'armv7': 1, |
| 435 }, { |
| 436 'armv7': 0, |
| 437 }], |
| 438 |
427 # NSS usage. | 439 # NSS usage. |
428 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u
se_openssl==0', { | 440 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u
se_openssl==0', { |
429 'use_nss%': 1, | 441 'use_nss%': 1, |
430 }, { | 442 }, { |
431 'use_nss%': 0, | 443 'use_nss%': 0, |
432 }], | 444 }], |
433 | 445 |
434 # Flags to use X11 on non-Mac POSIX platforms. | 446 # Flags to use X11 on non-Mac POSIX platforms. |
435 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_messagepum
p_linux==1', { | 447 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_messagepum
p_linux==1', { |
436 'use_x11%': 0, | 448 'use_x11%': 0, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 | 494 |
483 ['OS=="android"', { | 495 ['OS=="android"', { |
484 'enable_automation%': 0, | 496 'enable_automation%': 0, |
485 'enable_extensions%': 0, | 497 'enable_extensions%': 0, |
486 'enable_google_now%': 0, | 498 'enable_google_now%': 0, |
487 'enable_language_detection%': 1, | 499 'enable_language_detection%': 1, |
488 'enable_printing%': 0, | 500 'enable_printing%': 0, |
489 'enable_themes%': 0, | 501 'enable_themes%': 0, |
490 'proprietary_codecs%': 1, | 502 'proprietary_codecs%': 1, |
491 'remoting%': 0, | 503 'remoting%': 0, |
| 504 'arm_neon%': 0, |
| 505 'arm_neon_optional%': 1, |
492 }], | 506 }], |
493 | 507 |
494 # Enable autofill dialog for Android and Views-enabled platforms for now
. | 508 # Enable autofill dialog for Android and Views-enabled platforms for now
. |
495 ['toolkit_views==1 or (OS=="android" and android_webview_build==0)', { | 509 ['toolkit_views==1 or (OS=="android" and android_webview_build==0)', { |
496 'enable_autofill_dialog%': 1 | 510 'enable_autofill_dialog%': 1 |
497 }], | 511 }], |
498 | 512 |
499 ['OS=="android" and android_webview_build==0', { | 513 ['OS=="android" and android_webview_build==0', { |
500 'enable_webrtc%': 1, | 514 'enable_webrtc%': 1, |
501 }], | 515 }], |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 | 617 |
604 # Enable Settings App only on Windows. | 618 # Enable Settings App only on Windows. |
605 ['enable_app_list==1 and OS=="win"', { | 619 ['enable_app_list==1 and OS=="win"', { |
606 'enable_settings_app%': 1, | 620 'enable_settings_app%': 1, |
607 }, { | 621 }, { |
608 'enable_settings_app%': 0, | 622 'enable_settings_app%': 0, |
609 }], | 623 }], |
610 | 624 |
611 ['OS=="linux" and target_arch=="arm" and chromeos==0', { | 625 ['OS=="linux" and target_arch=="arm" and chromeos==0', { |
612 # Set some defaults for arm/linux chrome builds | 626 # Set some defaults for arm/linux chrome builds |
613 'armv7%': 1, | |
614 'linux_breakpad%': 0, | 627 'linux_breakpad%': 0, |
615 'linux_use_tcmalloc%': 0, | 628 'linux_use_tcmalloc%': 0, |
616 # sysroot needs to be an absolute path otherwise it generates | 629 # sysroot needs to be an absolute path otherwise it generates |
617 # incorrect results when passed to pkg-config | 630 # incorrect results when passed to pkg-config |
618 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', | 631 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', |
619 }], # OS=="linux" and target_arch=="arm" and chromeos==0 | 632 }], # OS=="linux" and target_arch=="arm" and chromeos==0 |
620 | 633 |
621 ['target_arch=="mipsel"', { | 634 ['target_arch=="mipsel"', { |
622 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot', | 635 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot', |
623 'CXX%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/bin/mipsel-linux-gnu
-gcc', | 636 'CXX%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/bin/mipsel-linux-gnu
-gcc', |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 'enable_viewport%': '<(enable_viewport)', | 727 'enable_viewport%': '<(enable_viewport)', |
715 'enable_hidpi%': '<(enable_hidpi)', | 728 'enable_hidpi%': '<(enable_hidpi)', |
716 'enable_touch_ui%': '<(enable_touch_ui)', | 729 'enable_touch_ui%': '<(enable_touch_ui)', |
717 'use_xi2_mt%':'<(use_xi2_mt)', | 730 'use_xi2_mt%':'<(use_xi2_mt)', |
718 'file_manager_extension%': '<(file_manager_extension)', | 731 'file_manager_extension%': '<(file_manager_extension)', |
719 'image_loader_extension%': '<(image_loader_extension)', | 732 'image_loader_extension%': '<(image_loader_extension)', |
720 'inside_chromium_build%': '<(inside_chromium_build)', | 733 'inside_chromium_build%': '<(inside_chromium_build)', |
721 'fastbuild%': '<(fastbuild)', | 734 'fastbuild%': '<(fastbuild)', |
722 'dcheck_always_on%': '<(dcheck_always_on)', | 735 'dcheck_always_on%': '<(dcheck_always_on)', |
723 'python_ver%': '<(python_ver)', | 736 'python_ver%': '<(python_ver)', |
| 737 'arm_version%': '<(arm_version)', |
724 'armv7%': '<(armv7)', | 738 'armv7%': '<(armv7)', |
725 'arm_neon%': '<(arm_neon)', | 739 'arm_neon%': '<(arm_neon)', |
| 740 'arm_neon_optional%': '<(arm_neon_optional)', |
726 'sysroot%': '<(sysroot)', | 741 'sysroot%': '<(sysroot)', |
727 'system_libdir%': '<(system_libdir)', | 742 'system_libdir%': '<(system_libdir)', |
728 'component%': '<(component)', | 743 'component%': '<(component)', |
729 'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)', | 744 'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)', |
730 'use_third_party_translations%': '<(use_third_party_translations)', | 745 'use_third_party_translations%': '<(use_third_party_translations)', |
731 'remoting%': '<(remoting)', | 746 'remoting%': '<(remoting)', |
732 'enable_one_click_signin%': '<(enable_one_click_signin)', | 747 'enable_one_click_signin%': '<(enable_one_click_signin)', |
733 'enable_webrtc%': '<(enable_webrtc)', | 748 'enable_webrtc%': '<(enable_webrtc)', |
734 'chromium_win_pch%': '<(chromium_win_pch)', | 749 'chromium_win_pch%': '<(chromium_win_pch)', |
735 'configuration_policy%': '<(configuration_policy)', | 750 'configuration_policy%': '<(configuration_policy)', |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 | 946 |
932 # Disable shadow stack keeping used by heapcheck to unwind the stacks | 947 # Disable shadow stack keeping used by heapcheck to unwind the stacks |
933 # better. | 948 # better. |
934 'linux_keep_shadow_stacks%': 0, | 949 'linux_keep_shadow_stacks%': 0, |
935 | 950 |
936 # Set to 1 to link against libgnome-keyring instead of using dlopen(). | 951 # Set to 1 to link against libgnome-keyring instead of using dlopen(). |
937 'linux_link_gnome_keyring%': 0, | 952 'linux_link_gnome_keyring%': 0, |
938 # Set to 1 to link against gsettings APIs instead of using dlopen(). | 953 # Set to 1 to link against gsettings APIs instead of using dlopen(). |
939 'linux_link_gsettings%': 0, | 954 'linux_link_gsettings%': 0, |
940 | 955 |
941 # Set Thumb compilation flags. | |
942 'arm_thumb%': 0, | |
943 | |
944 # Set ARM fpu compilation flags (only meaningful if armv7==1 and | |
945 # arm_neon==0). | |
946 'arm_fpu%': 'vfpv3', | |
947 | |
948 # Set ARM float abi compilation flag. | |
949 'arm_float_abi%': 'softfp', | |
950 | |
951 # Enable use of OpenMAX DL FFT routines. | 956 # Enable use of OpenMAX DL FFT routines. |
952 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)', | 957 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)', |
953 | 958 |
954 # Enable new NPDevice API. | 959 # Enable new NPDevice API. |
955 'enable_new_npdevice_api%': 0, | 960 'enable_new_npdevice_api%': 0, |
956 | 961 |
957 # Enable EGLImage support in OpenMAX | 962 # Enable EGLImage support in OpenMAX |
958 'enable_eglimage%': 1, | 963 'enable_eglimage%': 1, |
959 | 964 |
960 # Enable a variable used elsewhere throughout the GYP files to determine | 965 # Enable a variable used elsewhere throughout the GYP files to determine |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1178 # code compilation. | 1183 # code compilation. |
1179 'conditions': [ | 1184 'conditions': [ |
1180 ['target_arch == "ia32"', { | 1185 ['target_arch == "ia32"', { |
1181 'android_app_abi%': 'x86', | 1186 'android_app_abi%': 'x86', |
1182 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd
bserver/gdbserver', | 1187 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd
bserver/gdbserver', |
1183 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-x86', | 1188 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-x86', |
1184 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.6/preb
uilt/<(host_os)-<(android_host_arch)/bin', | 1189 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.6/preb
uilt/<(host_os)-<(android_host_arch)/bin', |
1185 }], | 1190 }], |
1186 ['target_arch=="arm"', { | 1191 ['target_arch=="arm"', { |
1187 'conditions': [ | 1192 'conditions': [ |
1188 ['armv7==0', { | 1193 ['arm_version<7', { |
1189 'android_app_abi%': 'armeabi', | 1194 'android_app_abi%': 'armeabi', |
1190 }, { | 1195 }, { |
1191 'android_app_abi%': 'armeabi-v7a', | 1196 'android_app_abi%': 'armeabi-v7a', |
1192 }], | 1197 }], |
1193 ], | 1198 ], |
1194 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd
bserver/gdbserver', | 1199 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd
bserver/gdbserver', |
1195 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-arm', | 1200 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-arm', |
1196 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an
droideabi-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', | 1201 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an
droideabi-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', |
1197 }], | 1202 }], |
1198 ], | 1203 ], |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1597 'win_debug_InlineFunctionExpansion': 0, | 1602 'win_debug_InlineFunctionExpansion': 0, |
1598 'win_debug_OmitFramePointers': 0, | 1603 'win_debug_OmitFramePointers': 0, |
1599 # Keep the code under #ifndef NVALGRIND. | 1604 # Keep the code under #ifndef NVALGRIND. |
1600 'release_valgrind_build': 1, | 1605 'release_valgrind_build': 1, |
1601 }], | 1606 }], |
1602 | 1607 |
1603 # Enable RLZ on Win, Mac and ChromeOS. | 1608 # Enable RLZ on Win, Mac and ChromeOS. |
1604 ['branding=="Chrome" and (OS=="win" or OS=="mac" or chromeos==1)', { | 1609 ['branding=="Chrome" and (OS=="win" or OS=="mac" or chromeos==1)', { |
1605 'enable_rlz%': 1, | 1610 'enable_rlz%': 1, |
1606 }], | 1611 }], |
| 1612 |
| 1613 # Set default compiler flags depending on ARM version. |
| 1614 ['arm_version==5 and android_webview_build==0', { |
| 1615 # Flags suitable for Android emulator |
| 1616 'arm_arch%': 'armv5te', |
| 1617 'arm_tune%': 'xscale', |
| 1618 'arm_fpu%': '', |
| 1619 'arm_float_abi%': 'soft', |
| 1620 'arm_thumb%': 0, |
| 1621 }], |
| 1622 ['arm_version==6 and android_webview_build==0', { |
| 1623 'arm_arch%': 'armv6', |
| 1624 'arm_tune%': '', |
| 1625 'arm_fpu%': '', |
| 1626 'arm_float_abi%': 'soft', |
| 1627 'arm_thumb%': 0, |
| 1628 }], |
| 1629 ['arm_version==7 and android_webview_build==0', { |
| 1630 'arm_arch%': 'armv7-a', |
| 1631 'arm_tune%': 'cortex-a8', |
| 1632 'conditions': [ |
| 1633 ['arm_neon==1', { |
| 1634 'arm_fpu%': 'neon', |
| 1635 }, { |
| 1636 'arm_fpu%': 'vfpv3-d16', |
| 1637 }], |
| 1638 ], |
| 1639 'arm_float_abi%': 'softfp', |
| 1640 'arm_thumb%': 1, |
| 1641 }], |
| 1642 |
| 1643 ['android_webview_build==1', { |
| 1644 # The WebView build gets its cpu-specific flags from the Android build s
ystem. |
| 1645 'arm_arch%': '', |
| 1646 'arm_tune%': '', |
| 1647 'arm_fpu%': '', |
| 1648 'arm_float_abi%': '', |
| 1649 'arm_thumb%': 0, |
| 1650 }], |
1607 ], | 1651 ], |
1608 | 1652 |
1609 # List of default apps to install in new profiles. The first list contains | 1653 # List of default apps to install in new profiles. The first list contains |
1610 # the source files as found in svn. The second list, used only for linux, | 1654 # the source files as found in svn. The second list, used only for linux, |
1611 # contains the destination location for each of the files. When a crx | 1655 # contains the destination location for each of the files. When a crx |
1612 # is added or removed from the list, the chrome/browser/resources/ | 1656 # is added or removed from the list, the chrome/browser/resources/ |
1613 # default_apps/external_extensions.json file must also be updated. | 1657 # default_apps/external_extensions.json file must also be updated. |
1614 'default_apps_list': [ | 1658 'default_apps_list': [ |
1615 'browser/resources/default_apps/external_extensions.json', | 1659 'browser/resources/default_apps/external_extensions.json', |
1616 'browser/resources/default_apps/gmail.crx', | 1660 'browser/resources/default_apps/gmail.crx', |
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2812 'target_conditions': [ | 2856 'target_conditions': [ |
2813 ['_toolset=="target"', { | 2857 ['_toolset=="target"', { |
2814 'cflags_cc': [ | 2858 'cflags_cc': [ |
2815 # The codesourcery arm-2009q3 toolchain warns at that the ABI | 2859 # The codesourcery arm-2009q3 toolchain warns at that the ABI |
2816 # has changed whenever it encounters a varargs function. This | 2860 # has changed whenever it encounters a varargs function. This |
2817 # silences those warnings, as they are not helpful and | 2861 # silences those warnings, as they are not helpful and |
2818 # clutter legitimate warnings. | 2862 # clutter legitimate warnings. |
2819 '-Wno-abi', | 2863 '-Wno-abi', |
2820 ], | 2864 ], |
2821 'conditions': [ | 2865 'conditions': [ |
2822 ['arm_thumb==1 and android_webview_build==0', { | 2866 ['arm_arch!=""', { |
| 2867 'cflags': [ |
| 2868 '-march=<(arm_arch)', |
| 2869 ], |
| 2870 }], |
| 2871 ['arm_tune!=""', { |
| 2872 'cflags': [ |
| 2873 '-mtune=<(arm_tune)', |
| 2874 ], |
| 2875 }], |
| 2876 ['arm_fpu!=""', { |
| 2877 'cflags': [ |
| 2878 '-mfpu=<(arm_fpu)', |
| 2879 ], |
| 2880 }], |
| 2881 ['arm_float_abi!=""', { |
| 2882 'cflags': [ |
| 2883 '-mfloat-abi=<(arm_float_abi)', |
| 2884 ], |
| 2885 }], |
| 2886 ['arm_thumb==1', { |
2823 'cflags': [ | 2887 'cflags': [ |
2824 '-mthumb', | 2888 '-mthumb', |
2825 ] | 2889 ] |
2826 }], | 2890 }], |
2827 ['armv7==1 and android_webview_build==0', { | |
2828 'cflags': [ | |
2829 '-march=armv7-a', | |
2830 '-mtune=cortex-a8', | |
2831 '-mfloat-abi=<(arm_float_abi)', | |
2832 ], | |
2833 'conditions': [ | |
2834 ['arm_neon==1', { | |
2835 'cflags': [ '-mfpu=neon', ], | |
2836 }, { | |
2837 'cflags': [ '-mfpu=<(arm_fpu)', ], | |
2838 }], | |
2839 ], | |
2840 }], | |
2841 ['OS=="android"', { | 2891 ['OS=="android"', { |
2842 # Most of the following flags are derived from what Android | 2892 # Most of the following flags are derived from what Android |
2843 # uses by default when building for arm, reference for which | 2893 # uses by default when building for arm, reference for which |
2844 # can be found in the following file in the Android NDK: | 2894 # can be found in the following file in the Android NDK: |
2845 # toolchains/arm-linux-androideabi-4.4.3/setup.mk | 2895 # toolchains/arm-linux-androideabi-4.4.3/setup.mk |
2846 'cflags': [ | 2896 'cflags': [ |
2847 # The tree-sra optimization (scalar replacement for | 2897 # The tree-sra optimization (scalar replacement for |
2848 # aggregates enabling subsequent optimizations) leads to | 2898 # aggregates enabling subsequent optimizations) leads to |
2849 # invalid code generation when using the Android NDK's | 2899 # invalid code generation when using the Android NDK's |
2850 # compiler (r5-r7). This can be verified using | 2900 # compiler (r5-r7). This can be verified using |
2851 # webkit_unit_tests' WTF.Checked_int8_t test. | 2901 # webkit_unit_tests' WTF.Checked_int8_t test. |
2852 '-fno-tree-sra', | 2902 '-fno-tree-sra', |
2853 '-fuse-ld=gold', | 2903 '-fuse-ld=gold', |
2854 '-Wno-psabi', | 2904 '-Wno-psabi', |
2855 ], | 2905 ], |
2856 # Android now supports .relro sections properly. | 2906 # Android now supports .relro sections properly. |
2857 # NOTE: While these flags enable the generation of .relro | 2907 # NOTE: While these flags enable the generation of .relro |
2858 # sections, the generated libraries can still be loaded on | 2908 # sections, the generated libraries can still be loaded on |
2859 # older Android platform versions. | 2909 # older Android platform versions. |
2860 'ldflags': [ | 2910 'ldflags': [ |
2861 '-Wl,-z,relro', | 2911 '-Wl,-z,relro', |
2862 '-Wl,-z,now', | 2912 '-Wl,-z,now', |
2863 '-fuse-ld=gold', | 2913 '-fuse-ld=gold', |
2864 ], | 2914 ], |
2865 'conditions': [ | 2915 'conditions': [ |
2866 ['arm_thumb==1 and android_webview_build==0', { | 2916 ['arm_thumb==1', { |
2867 'cflags': [ '-mthumb-interwork' ], | 2917 'cflags': [ '-mthumb-interwork' ], |
2868 }], | 2918 }], |
2869 ['armv7==0 and android_webview_build==0', { | |
2870 # Flags suitable for Android emulator | |
2871 'cflags': [ | |
2872 '-march=armv5te', | |
2873 '-mtune=xscale', | |
2874 '-msoft-float', | |
2875 ], | |
2876 'defines': [ | |
2877 '__ARM_ARCH_5__', | |
2878 '__ARM_ARCH_5T__', | |
2879 '__ARM_ARCH_5E__', | |
2880 '__ARM_ARCH_5TE__', | |
2881 ], | |
2882 }], | |
2883 ['profiling==1', { | 2919 ['profiling==1', { |
2884 'cflags': [ | 2920 'cflags': [ |
2885 '-marm', # Probably reduntant, but recommend by "perf"
docs. | 2921 '-marm', # Probably reduntant, but recommend by "perf"
docs. |
2886 '-mapcs-frame', # Seems required by -fno-omit-frame-po
inter. | 2922 '-mapcs-frame', # Seems required by -fno-omit-frame-po
inter. |
2887 ], | 2923 ], |
2888 }], | 2924 }], |
2889 ['clang==1', { | 2925 ['clang==1', { |
2890 'cflags!': [ | 2926 'cflags!': [ |
2891 # Clang does not support the following options. | 2927 # Clang does not support the following options. |
2892 '-mthumb-interwork', | 2928 '-mthumb-interwork', |
(...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4285 # settings in target dicts. SYMROOT is a special case, because many other | 4321 # settings in target dicts. SYMROOT is a special case, because many other |
4286 # Xcode variables depend on it, including variables such as | 4322 # Xcode variables depend on it, including variables such as |
4287 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4323 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4288 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4324 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4289 # files to appear (when present) in the UI as actual files and not red | 4325 # files to appear (when present) in the UI as actual files and not red |
4290 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4326 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4291 # and therefore SYMROOT, needs to be set at the project level. | 4327 # and therefore SYMROOT, needs to be set at the project level. |
4292 'SYMROOT': '<(DEPTH)/xcodebuild', | 4328 'SYMROOT': '<(DEPTH)/xcodebuild', |
4293 }, | 4329 }, |
4294 } | 4330 } |
OLD | NEW |