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

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: patch updated to address review issues 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 'conditions': [
806 ['target_arch == "ia32"', {
Paweł Hajdan Jr. 2012/04/27 06:56:19 Wait, target_arch is our (Chromium) thing, so it s
Wei James 2012/04/27 08:59:05 fixed with target_arch. thanks
807 'platform_arch%': 'x86',
Nico 2012/04/27 05:29:22 Remove trailing %
Wei James 2012/04/27 08:59:05 changed to target_arch and removed %. thanks
808 }, {
Paweł Hajdan Jr. 2012/04/27 06:56:19 I don't think the assumption that non-ia32 is an a
Wei James 2012/04/27 08:59:05 use target_arch and only change "ia32" to "x86" wh
809 'platform_arch%': 'arm',
Nico 2012/04/27 05:29:22 Remove trailing %
Wei James 2012/04/27 08:59:05 fixed. thanks
810 }],
811 ],
806 812
807 # Switch between different build types, currently only '0' is 813 # Switch between different build types, currently only '0' is
808 # supported. 814 # supported.
809 'android_build_type%': 0, 815 'android_build_type%': 0,
810 }, 816 },
811 'android_ndk_root%': '<(android_ndk_root)', 817 'android_ndk_root%': '<(android_ndk_root)',
812 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-< (target_arch)', 818 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-< (platform_arch)',
813 'android_build_type%': '<(android_build_type)', 819 'android_build_type%': '<(android_build_type)',
814 }, 820 },
815 'android_ndk_root%': '<(android_ndk_root)', 821 'android_ndk_root%': '<(android_ndk_root)',
816 'android_ndk_sysroot': '<(android_ndk_sysroot)', 822 'android_ndk_sysroot': '<(android_ndk_sysroot)',
817 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', 823 'android_ndk_include': '<(android_ndk_sysroot)/usr/include',
818 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', 824 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib',
819 825
820 # Uses Android's crash report system 826 # Uses Android's crash report system
821 'linux_breakpad%': 0, 827 'linux_breakpad%': 0,
822 828
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 'secure_atl%': 1, 956 'secure_atl%': 1,
951 }], 957 }],
952 ], 958 ],
953 'nacl_win64_defines': [ 959 'nacl_win64_defines': [
954 # This flag is used to minimize dependencies when building 960 # This flag is used to minimize dependencies when building
955 # Native Client loader for 64-bit Windows. 961 # Native Client loader for 64-bit Windows.
956 'NACL_WIN64', 962 'NACL_WIN64',
957 ], 963 ],
958 }], 964 }],
959 965
960 ['os_posix==1 and chromeos==0 and target_arch!="arm"', { 966 ['os_posix==1 and chromeos==0 and OS!="android"', {
961 'use_cups%': 1, 967 'use_cups%': 1,
962 }, { 968 }, {
963 'use_cups%': 0, 969 'use_cups%': 0,
964 }], 970 }],
965 971
966 # Set the relative path from this file to the GYP file of the JPEG 972 # Set the relative path from this file to the GYP file of the JPEG
967 # library used by Chromium. 973 # library used by Chromium.
968 ['use_libjpeg_turbo==1', { 974 ['use_libjpeg_turbo==1', {
969 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp', 975 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp',
970 }, { 976 }, {
(...skipping 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after
2358 'HAVE_OFF64_T', 2364 'HAVE_OFF64_T',
2359 'HAVE_SYS_UIO_H', 2365 'HAVE_SYS_UIO_H',
2360 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize . 2366 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize .
2361 ], 2367 ],
2362 'ldflags!': [ 2368 'ldflags!': [
2363 '-pthread', # Not supported by Android toolchain. 2369 '-pthread', # Not supported by Android toolchain.
2364 ], 2370 ],
2365 'ldflags': [ 2371 'ldflags': [
2366 '-nostdlib', 2372 '-nostdlib',
2367 '-Wl,--no-undefined', 2373 '-Wl,--no-undefined',
2368 '-Wl,--icf=safe', # Enable identical code folding to reduce size
2369 # Don't export symbols from statically linked libraries. 2374 # Don't export symbols from statically linked libraries.
2370 '-Wl,--exclude-libs=ALL', 2375 '-Wl,--exclude-libs=ALL',
2371 ], 2376 ],
2377 'conditions': [
2378 ['target_arch == "arm"', {
2379 'ldflags': [
2380 # Enable identical code folding to reduce size.
2381 '-Wl, --icf=safe',
Paweł Hajdan Jr. 2012/04/27 06:56:19 nit: Are you sure there should be a space between
Wei James 2012/04/27 08:59:05 fixed. thanks
2382 ],
2383 }],
2384 ],
2372 'libraries': [ 2385 'libraries': [
2373 '-l<(android_stlport_library)', 2386 '-l<(android_stlport_library)',
2374 # Manually link the libgcc.a that the cross compiler uses. 2387 # Manually link the libgcc.a that the cross compiler uses.
2375 '<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)', 2388 '<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)',
2376 '-lc', 2389 '-lc',
2377 '-ldl', 2390 '-ldl',
2378 '-lstdc++', 2391 '-lstdc++',
2379 '-lm', 2392 '-lm',
2380 ], 2393 ],
2381 'conditions': [ 2394 '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 3043 # settings in target dicts. SYMROOT is a special case, because many other
3031 # Xcode variables depend on it, including variables such as 3044 # Xcode variables depend on it, including variables such as
3032 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3045 # 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 3046 # 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 3047 # 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, 3048 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3036 # and therefore SYMROOT, needs to be set at the project level. 3049 # and therefore SYMROOT, needs to be set at the project level.
3037 'SYMROOT': '<(DEPTH)/xcodebuild', 3050 'SYMROOT': '<(DEPTH)/xcodebuild',
3038 }, 3051 },
3039 } 3052 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698