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

Side by Side Diff: build/common.gypi

Issue 10198027: enable android x86 build (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 8 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
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 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 ['(branding=="Chrome" and buildtype=="Official")', { 795 ['(branding=="Chrome" and buildtype=="Official")', {
796 'linux_dump_symbols%': 1, 796 'linux_dump_symbols%': 1,
797 }], 797 }],
798 ], 798 ],
799 }], # os_posix==1 and OS!="mac" and OS!="android" 799 }], # os_posix==1 and OS!="mac" and OS!="android"
800 ['OS=="android"', { 800 ['OS=="android"', {
801 # Location of Android NDK. 801 # Location of Android NDK.
802 'variables': { 802 'variables': {
803 'variables': { 803 'variables': {
804 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)', 804 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)',
805 'target_arch%': 'arm', # target_arch in android terms. 805 'platform_arch%': 'arm',
John Grabowski 2012/04/26 21:53:08 Might prefer a gyp style if/else (e.g. conditions
806 'conditions': [
807 ['target_arch == "ia32"', {
808 'platform_arch%': 'x86',
809 }],
810 ],
806 811
807 # Switch between different build types, currently only '0' is 812 # Switch between different build types, currently only '0' is
808 # supported. 813 # supported.
809 'android_build_type%': 0, 814 'android_build_type%': 0,
810 }, 815 },
811 'android_ndk_root%': '<(android_ndk_root)', 816 'android_ndk_root%': '<(android_ndk_root)',
812 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-< (target_arch)', 817 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-< (platform_arch)',
813 'android_build_type%': '<(android_build_type)', 818 'android_build_type%': '<(android_build_type)',
814 }, 819 },
815 'android_ndk_root%': '<(android_ndk_root)', 820 'android_ndk_root%': '<(android_ndk_root)',
816 'android_ndk_sysroot': '<(android_ndk_sysroot)', 821 'android_ndk_sysroot': '<(android_ndk_sysroot)',
817 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', 822 'android_ndk_include': '<(android_ndk_sysroot)/usr/include',
818 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', 823 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib',
819 824
820 # Uses Android's crash report system 825 # Uses Android's crash report system
821 'linux_breakpad%': 0, 826 'linux_breakpad%': 0,
822 827
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 'secure_atl%': 1, 955 'secure_atl%': 1,
951 }], 956 }],
952 ], 957 ],
953 'nacl_win64_defines': [ 958 'nacl_win64_defines': [
954 # This flag is used to minimize dependencies when building 959 # This flag is used to minimize dependencies when building
955 # Native Client loader for 64-bit Windows. 960 # Native Client loader for 64-bit Windows.
956 'NACL_WIN64', 961 'NACL_WIN64',
957 ], 962 ],
958 }], 963 }],
959 964
960 ['os_posix==1 and chromeos==0 and target_arch!="arm"', { 965 ['os_posix==1 and chromeos==0 and OS!="android"', {
961 'use_cups%': 1, 966 'use_cups%': 1,
962 }, { 967 }, {
963 'use_cups%': 0, 968 'use_cups%': 0,
964 }], 969 }],
965 970
966 # Set the relative path from this file to the GYP file of the JPEG 971 # Set the relative path from this file to the GYP file of the JPEG
967 # library used by Chromium. 972 # library used by Chromium.
968 ['use_libjpeg_turbo==1', { 973 ['use_libjpeg_turbo==1', {
969 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp', 974 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp',
970 }, { 975 }, {
(...skipping 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after
2358 'HAVE_OFF64_T', 2363 'HAVE_OFF64_T',
2359 'HAVE_SYS_UIO_H', 2364 'HAVE_SYS_UIO_H',
2360 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize . 2365 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize .
2361 ], 2366 ],
2362 'ldflags!': [ 2367 'ldflags!': [
2363 '-pthread', # Not supported by Android toolchain. 2368 '-pthread', # Not supported by Android toolchain.
2364 ], 2369 ],
2365 'ldflags': [ 2370 'ldflags': [
2366 '-nostdlib', 2371 '-nostdlib',
2367 '-Wl,--no-undefined', 2372 '-Wl,--no-undefined',
2368 '-Wl,--icf=safe', # Enable identical code folding to reduce size
2369 # Don't export symbols from statically linked libraries. 2373 # Don't export symbols from statically linked libraries.
2370 '-Wl,--exclude-libs=ALL', 2374 '-Wl,--exclude-libs=ALL',
2371 ], 2375 ],
2376 'conditions': [
2377 ['target_arch == "arm"', {
2378 'ldflags': [
2379 '-Wl, --icf=safe', # Enable identical code folding to reduce s ize.
John Grabowski 2012/04/26 21:53:08 >80
2380 ],
2381 }],
2382 ],
2372 'libraries': [ 2383 'libraries': [
2373 '-l<(android_stlport_library)', 2384 '-l<(android_stlport_library)',
2374 # Manually link the libgcc.a that the cross compiler uses. 2385 # Manually link the libgcc.a that the cross compiler uses.
2375 '<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)', 2386 '<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)',
2376 '-lc', 2387 '-lc',
2377 '-ldl', 2388 '-ldl',
2378 '-lstdc++', 2389 '-lstdc++',
2379 '-lm', 2390 '-lm',
2380 ], 2391 ],
2381 'conditions': [ 2392 'conditions': [
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
3030 # settings in target dicts. SYMROOT is a special case, because many other 3041 # settings in target dicts. SYMROOT is a special case, because many other
3031 # Xcode variables depend on it, including variables such as 3042 # Xcode variables depend on it, including variables such as
3032 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3043 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3033 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3044 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3034 # files to appear (when present) in the UI as actual files and not red 3045 # files to appear (when present) in the UI as actual files and not red
3035 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3046 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3036 # and therefore SYMROOT, needs to be set at the project level. 3047 # and therefore SYMROOT, needs to be set at the project level.
3037 'SYMROOT': '<(DEPTH)/xcodebuild', 3048 'SYMROOT': '<(DEPTH)/xcodebuild',
3038 }, 3049 },
3039 } 3050 }
OLDNEW
« no previous file with comments | « build/android/envsetup.sh ('k') | skia/skia.gyp » ('j') | skia/skia.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698