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

Side by Side Diff: build/common.gypi

Issue 194843002: Enable Android x64 build (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Rebase to latest revision Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « AUTHORS ('k') | no next file » | 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.
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 # supported. 789 # supported.
790 # NOTE: The check for disable_nacl==0 and component=="static_library" 790 # NOTE: The check for disable_nacl==0 and component=="static_library"
791 # can't be used here because these variables are not defined yet, but it 791 # can't be used here because these variables are not defined yet, but it
792 # is still not supported. 792 # is still not supported.
793 ['OS!="ios" and OS!="android" and chromeos==0', { 793 ['OS!="ios" and OS!="android" and chromeos==0', {
794 'test_isolation_mode%': 'check', 794 'test_isolation_mode%': 'check',
795 }, { 795 }, {
796 'test_isolation_mode%': 'noop', 796 'test_isolation_mode%': 'noop',
797 }], 797 }],
798 # Whether Android ARM or x86 build uses OpenMAX DL FFT. 798 # Whether Android ARM or x86 build uses OpenMAX DL FFT.
799 ['OS=="android" and ((target_arch=="arm" and arm_version >= 7) or target _arch=="ia32") and android_webview_build==0', { 799 ['OS=="android" and ((target_arch=="arm" and arm_version >= 7) or target _arch=="ia32" or target_arch=="x64") and android_webview_build==0', {
800 # Currently only supported on Android ARMv7+, or ia32 800 # Currently only supported on Android ARMv7+, ia32 or x64
801 # without webview. When enabled, this will also enable 801 # without webview. When enabled, this will also enable
802 # WebAudio support on Android ARM and ia32. Default is 802 # WebAudio support on Android ARM, ia32 and x64. Default is
803 # enabled. Whether WebAudio is actually available depends 803 # enabled. Whether WebAudio is actually available depends
804 # on runtime settings and flags. 804 # on runtime settings and flags.
805 'use_openmax_dl_fft%': 1, 805 'use_openmax_dl_fft%': 1,
806 }, { 806 }, {
807 'use_openmax_dl_fft%': 0, 807 'use_openmax_dl_fft%': 0,
808 }], 808 }],
809 ['OS=="win" or OS=="linux"', { 809 ['OS=="win" or OS=="linux"', {
810 'enable_mdns%' : 1, 810 'enable_mdns%' : 1,
811 }], 811 }],
812 812
813 # Turns on compiler optimizations in V8 in Debug build, except 813 # Turns on compiler optimizations in V8 in Debug build, except
814 # on android_clang, where we're hitting a weird linker error. 814 # on android_clang, where we're hitting a weird linker error.
815 # TODO(dpranke): http://crbug.com/266155 . 815 # TODO(dpranke): http://crbug.com/266155 .
816 ['OS=="android"', { 816 ['OS=="android"', {
817 'v8_optimized_debug%': 1, 817 'v8_optimized_debug%': 1,
818 }, { 818 }, {
819 'v8_optimized_debug%': 2, 819 'v8_optimized_debug%': 2,
820 }], 820 }],
821 821
822 # Disable various features by default on embedded. 822 # Disable various features by default on embedded.
823 ['embedded==1', { 823 ['embedded==1', {
824 'remoting%': 0, 824 'remoting%': 0,
825 'enable_printing%': 0, 825 'enable_printing%': 0,
826 }], 826 }],
827 827
828 » # By default, use ICU data file (icudtl.dat) on all platforms 828 # By default, use ICU data file (icudtl.dat) on all platforms
829 » # except when building Android WebView. 829 # except when building Android WebView.
830 » # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium). 830 # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium).
831 ['android_webview_build==0', { 831 ['android_webview_build==0', {
832 'icu_use_data_file_flag%' : 1, 832 'icu_use_data_file_flag%' : 1,
833 }, { 833 }, {
834 'icu_use_data_file_flag%' : 0, 834 'icu_use_data_file_flag%' : 0,
835 }], 835 }],
836 ], 836 ],
837 837
838 # Set this to 1 to enable use of concatenated impulse responses 838 # Set this to 1 to enable use of concatenated impulse responses
839 # for the HRTF panner in WebAudio. 839 # for the HRTF panner in WebAudio.
840 'use_concatenated_impulse_responses': 1, 840 'use_concatenated_impulse_responses': 1,
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 'conditions': [ 1300 'conditions': [
1301 # The version of GCC in use, set later in platforms that use GCC and have 1301 # The version of GCC in use, set later in platforms that use GCC and have
1302 # not explicitly chosen to build with clang. Currently, this means all 1302 # not explicitly chosen to build with clang. Currently, this means all
1303 # platforms except Windows, Mac and iOS. 1303 # platforms except Windows, Mac and iOS.
1304 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that 1304 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that
1305 # it takes effect here. 1305 # it takes effect here.
1306 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsa n==0 and tsan==0 and msan==0', { 1306 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsa n==0 and tsan==0 and msan==0', {
1307 'conditions': [ 1307 'conditions': [
1308 ['OS=="android"', { 1308 ['OS=="android"', {
1309 # We directly set the gcc_version since we know what we use. 1309 # We directly set the gcc_version since we know what we use.
1310 'gcc_version%': 46, 1310 'conditions': [
1311 ['target_arch=="x64"', {
1312 'gcc_version%': 48,
1313 }, {
1314 'gcc_version%': 46,
1315 }],
1316 ],
1311 'binutils_version%': 222, 1317 'binutils_version%': 222,
1312 }, { 1318 }, {
1313 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', 1319 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)',
1314 'binutils_version%': '<!(python <(DEPTH)/build/compiler_version.py a ssembler)', 1320 'binutils_version%': '<!(python <(DEPTH)/build/compiler_version.py a ssembler)',
1315 }], 1321 }],
1316 ], 1322 ],
1317 }, { 1323 }, {
1318 'gcc_version%': 0, 1324 'gcc_version%': 0,
1319 'binutils_version%': 0, 1325 'binutils_version%': 0,
1320 }], 1326 }],
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 # Android API level 14 is ICS (Android 4.0) which is the minimum 1435 # Android API level 14 is ICS (Android 4.0) which is the minimum
1430 # platform requirement for Chrome on Android, we use it for native 1436 # platform requirement for Chrome on Android, we use it for native
1431 # code compilation. 1437 # code compilation.
1432 'conditions': [ 1438 'conditions': [
1433 ['target_arch == "ia32"', { 1439 ['target_arch == "ia32"', {
1434 'android_app_abi%': 'x86', 1440 'android_app_abi%': 'x86',
1435 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd bserver/gdbserver', 1441 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd bserver/gdbserver',
1436 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-x86', 1442 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-x86',
1437 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.6/preb uilt/<(host_os)-<(android_host_arch)/bin', 1443 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.6/preb uilt/<(host_os)-<(android_host_arch)/bin',
1438 }], 1444 }],
1445 ['target_arch == "x64"', {
1446 'android_app_abi%': 'x86_64',
1447 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86_64 /gdbserver/gdbserver',
1448 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-19/ arch-x86_64',
1449 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.8/p rebuilt/<(host_os)-<(android_host_arch)/bin',
1450 }],
1439 ['target_arch=="arm"', { 1451 ['target_arch=="arm"', {
1440 'conditions': [ 1452 'conditions': [
1441 ['arm_version<7', { 1453 ['arm_version<7', {
1442 'android_app_abi%': 'armeabi', 1454 'android_app_abi%': 'armeabi',
1443 }, { 1455 }, {
1444 'android_app_abi%': 'armeabi-v7a', 1456 'android_app_abi%': 'armeabi-v7a',
1445 }], 1457 }],
1446 ], 1458 ],
1447 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd bserver/gdbserver', 1459 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd bserver/gdbserver',
1448 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-arm', 1460 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-arm',
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1731 }], 1743 }],
1732 ['image_loader_extension==1', { 1744 ['image_loader_extension==1', {
1733 'grit_defines': ['-D', 'image_loader_extension'], 1745 'grit_defines': ['-D', 'image_loader_extension'],
1734 }], 1746 }],
1735 ['remoting==1', { 1747 ['remoting==1', {
1736 'grit_defines': ['-D', 'remoting'], 1748 'grit_defines': ['-D', 'remoting'],
1737 }], 1749 }],
1738 ['use_titlecase_in_grd_files==1', { 1750 ['use_titlecase_in_grd_files==1', {
1739 'grit_defines': ['-D', 'use_titlecase'], 1751 'grit_defines': ['-D', 'use_titlecase'],
1740 }], 1752 }],
1741 ['OS=="android" and target_arch=="ia32"', { 1753 ['OS=="android" and (target_arch=="ia32" or target_arch=="x64")', {
1742 # WebAudio on Android/x86 is disabled by default, unlike 1754 # WebAudio on Android/x86 is disabled by default, unlike
1743 # everywhere else, so use appropriate message. 1755 # everywhere else, so use appropriate message.
1744 'grit_defines': ['-D', 'use_webaudio_enable_message'], 1756 'grit_defines': ['-D', 'use_webaudio_enable_message'],
1745 }], 1757 }],
1746 ['use_third_party_translations==1', { 1758 ['use_third_party_translations==1', {
1747 'grit_defines': ['-D', 'use_third_party_translations'], 1759 'grit_defines': ['-D', 'use_third_party_translations'],
1748 'locales': [ 1760 'locales': [
1749 'ast', 'bs', 'ca@valencia', 'en-AU', 'eo', 'eu', 'gl', 'hy', 'ia', 1761 'ast', 'bs', 'ca@valencia', 'en-AU', 'eo', 'eu', 'gl', 'hy', 'ia',
1750 'ka', 'ku', 'kw', 'ms', 'ug' 1762 'ka', 'ku', 'kw', 'ms', 'ug'
1751 ], 1763 ],
(...skipping 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after
3244 # For android build, use NDK headers instead of host headers 3256 # For android build, use NDK headers instead of host headers
3245 ['host_arch!="ia32" and OS!="android"', { 3257 ['host_arch!="ia32" and OS!="android"', {
3246 'include_dirs+': [ 3258 'include_dirs+': [
3247 '/usr/include32', 3259 '/usr/include32',
3248 ], 3260 ],
3249 }], 3261 }],
3250 ], 3262 ],
3251 }], 3263 }],
3252 ], 3264 ],
3253 }], 3265 }],
3266 ['target_arch=="x64"', {
3267 'target_conditions': [
3268 ['_toolset=="target"', {
3269 'conditions': [
3270 # Use gold linker for Android x64 target.
3271 ['OS=="android"', {
3272 'cflags': [
3273 '-fuse-ld=gold',
3274 ],
3275 'ldflags': [
3276 '-fuse-ld=gold',
3277 ],
3278 }],
3279 ],
3280 'cflags': [
3281 '-m64',
3282 '-march=x86-64',
3283 ],
3284 'ldflags': [
3285 '-m64',
3286 ],
3287 }],
3288 ],
3289 }],
3254 ['target_arch=="arm"', { 3290 ['target_arch=="arm"', {
3255 'target_conditions': [ 3291 'target_conditions': [
3256 ['_toolset=="target"', { 3292 ['_toolset=="target"', {
3257 'cflags_cc': [ 3293 'cflags_cc': [
3258 # The codesourcery arm-2009q3 toolchain warns at that the ABI 3294 # The codesourcery arm-2009q3 toolchain warns at that the ABI
3259 # has changed whenever it encounters a varargs function. This 3295 # has changed whenever it encounters a varargs function. This
3260 # silences those warnings, as they are not helpful and 3296 # silences those warnings, as they are not helpful and
3261 # clutter legitimate warnings. 3297 # clutter legitimate warnings.
3262 '-Wno-abi', 3298 '-Wno-abi',
3263 ], 3299 ],
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
3895 ], 3931 ],
3896 }], 3932 }],
3897 ['target_arch=="ia32"', { 3933 ['target_arch=="ia32"', {
3898 'cflags': [ 3934 'cflags': [
3899 '-target x86-linux-androideabi', 3935 '-target x86-linux-androideabi',
3900 ], 3936 ],
3901 'ldflags': [ 3937 'ldflags': [
3902 '-target x86-linux-androideabi', 3938 '-target x86-linux-androideabi',
3903 ], 3939 ],
3904 }], 3940 }],
3941 # Place holder for x64 support, not tested.
3942 # TODO: Enable clang support for Android x64. http://crbug.com /346626
3943 ['target_arch=="x64"', {
3944 'cflags': [
3945 '-target x86_64-linux-androideabi',
3946 ],
3947 'ldflags': [
3948 '-target x86_64-linux-androideabi',
3949 ],
3950 }],
3905 ], 3951 ],
3906 }], 3952 }],
3907 ['asan==1', { 3953 ['asan==1', {
3908 'cflags': [ 3954 'cflags': [
3909 # Android build relies on -Wl,--gc-sections removing 3955 # Android build relies on -Wl,--gc-sections removing
3910 # unreachable code. ASan instrumentation for globals inhibits 3956 # unreachable code. ASan instrumentation for globals inhibits
3911 # this and results in a library with unresolvable relocations. 3957 # this and results in a library with unresolvable relocations.
3912 # TODO(eugenis): find a way to reenable this. 3958 # TODO(eugenis): find a way to reenable this.
3913 '-mllvm -asan-globals=0', 3959 '-mllvm -asan-globals=0',
3914 ], 3960 ],
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
4008 ], 4054 ],
4009 'cflags': [ 4055 'cflags': [
4010 '-fno-stack-protector', 4056 '-fno-stack-protector',
4011 ], 4057 ],
4012 }], 4058 }],
4013 ], 4059 ],
4014 'target_conditions': [ 4060 'target_conditions': [
4015 ['_type=="executable"', { 4061 ['_type=="executable"', {
4016 'ldflags': [ 4062 'ldflags': [
4017 '-Bdynamic', 4063 '-Bdynamic',
4018 '-Wl,-dynamic-linker,/system/bin/linker',
4019 '-Wl,--gc-sections', 4064 '-Wl,--gc-sections',
4020 '-Wl,-z,nocopyreloc', 4065 '-Wl,-z,nocopyreloc',
4021 # crtbegin_dynamic.o should be the last item in ldflags. 4066 # crtbegin_dynamic.o should be the last item in ldflags.
4022 '<(android_ndk_lib)/crtbegin_dynamic.o', 4067 '<(android_ndk_lib)/crtbegin_dynamic.o',
4023 ], 4068 ],
4024 'libraries': [ 4069 'libraries': [
4025 # crtend_android.o needs to be the last item in libraries. 4070 # crtend_android.o needs to be the last item in libraries.
4026 # Do not add any libraries after this! 4071 # Do not add any libraries after this!
4027 '<(android_ndk_lib)/crtend_android.o', 4072 '<(android_ndk_lib)/crtend_android.o',
4028 ], 4073 ],
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
5057 # settings in target dicts. SYMROOT is a special case, because many other 5102 # settings in target dicts. SYMROOT is a special case, because many other
5058 # Xcode variables depend on it, including variables such as 5103 # Xcode variables depend on it, including variables such as
5059 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5104 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5060 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5105 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5061 # files to appear (when present) in the UI as actual files and not red 5106 # files to appear (when present) in the UI as actual files and not red
5062 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5107 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5063 # and therefore SYMROOT, needs to be set at the project level. 5108 # and therefore SYMROOT, needs to be set at the project level.
5064 'SYMROOT': '<(DEPTH)/xcodebuild', 5109 'SYMROOT': '<(DEPTH)/xcodebuild',
5065 }, 5110 },
5066 } 5111 }
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698