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

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 according to the review comments 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
« no previous file with comments | « build/android/envsetup.sh ('k') | skia/skia.gyp » ('j') | 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 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 ['(branding=="Chrome" and buildtype=="Official")', { 801 ['(branding=="Chrome" and buildtype=="Official")', {
802 'linux_dump_symbols%': 1, 802 'linux_dump_symbols%': 1,
803 }], 803 }],
804 ], 804 ],
805 }], # os_posix==1 and OS!="mac" and OS!="android" 805 }], # os_posix==1 and OS!="mac" and OS!="android"
806 ['OS=="android"', { 806 ['OS=="android"', {
807 # Location of Android NDK. 807 # Location of Android NDK.
808 'variables': { 808 'variables': {
809 'variables': { 809 'variables': {
810 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)', 810 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)',
811 'target_arch%': 'arm', # target_arch in android terms. 811 'conditions': [
812 ['target_arch == "ia32"', {
813 'target_arch': 'x86',
Paweł Hajdan Jr. 2012/04/27 09:40:06 My comments that it is a hack still apply. Please
Wei James 2012/04/27 10:00:28 fixed. thanks
814 }],
815 ],
812 816
813 # Switch between different build types, currently only '0' is 817 # Switch between different build types, currently only '0' is
814 # supported. 818 # supported.
815 'android_build_type%': 0, 819 'android_build_type%': 0,
816 }, 820 },
817 'android_ndk_root%': '<(android_ndk_root)', 821 'android_ndk_root%': '<(android_ndk_root)',
818 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-< (target_arch)', 822 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-< (target_arch)',
819 'android_build_type%': '<(android_build_type)', 823 'android_build_type%': '<(android_build_type)',
820 }, 824 },
821 'android_ndk_root%': '<(android_ndk_root)', 825 'android_ndk_root%': '<(android_ndk_root)',
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 'secure_atl%': 1, 960 'secure_atl%': 1,
957 }], 961 }],
958 ], 962 ],
959 'nacl_win64_defines': [ 963 'nacl_win64_defines': [
960 # This flag is used to minimize dependencies when building 964 # This flag is used to minimize dependencies when building
961 # Native Client loader for 64-bit Windows. 965 # Native Client loader for 64-bit Windows.
962 'NACL_WIN64', 966 'NACL_WIN64',
963 ], 967 ],
964 }], 968 }],
965 969
966 ['os_posix==1 and chromeos==0 and target_arch!="arm"', { 970 ['os_posix==1 and chromeos==0 and OS!="android"', {
967 'use_cups%': 1, 971 'use_cups%': 1,
968 }, { 972 }, {
969 'use_cups%': 0, 973 'use_cups%': 0,
970 }], 974 }],
971 975
972 # Set the relative path from this file to the GYP file of the JPEG 976 # Set the relative path from this file to the GYP file of the JPEG
973 # library used by Chromium. 977 # library used by Chromium.
974 ['use_libjpeg_turbo==1', { 978 ['use_libjpeg_turbo==1', {
975 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp', 979 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp',
976 }, { 980 }, {
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after
2359 'HAVE_OFF64_T', 2363 'HAVE_OFF64_T',
2360 'HAVE_SYS_UIO_H', 2364 'HAVE_SYS_UIO_H',
2361 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize . 2365 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize .
2362 ], 2366 ],
2363 'ldflags!': [ 2367 'ldflags!': [
2364 '-pthread', # Not supported by Android toolchain. 2368 '-pthread', # Not supported by Android toolchain.
2365 ], 2369 ],
2366 'ldflags': [ 2370 'ldflags': [
2367 '-nostdlib', 2371 '-nostdlib',
2368 '-Wl,--no-undefined', 2372 '-Wl,--no-undefined',
2369 '-Wl,--icf=safe', # Enable identical code folding to reduce size
2370 # Don't export symbols from statically linked libraries. 2373 # Don't export symbols from statically linked libraries.
2371 '-Wl,--exclude-libs=ALL', 2374 '-Wl,--exclude-libs=ALL',
2372 ], 2375 ],
2376 'conditions': [
2377 ['target_arch == "arm"', {
2378 'ldflags': [
2379 # Enable identical code folding to reduce size.
2380 '-Wl,--icf=safe',
2381 ],
2382 }],
2383 ],
2373 'libraries': [ 2384 'libraries': [
2374 '-l<(android_stlport_library)', 2385 '-l<(android_stlport_library)',
2375 # Manually link the libgcc.a that the cross compiler uses. 2386 # Manually link the libgcc.a that the cross compiler uses.
2376 '<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)', 2387 '<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)',
2377 '-lc', 2388 '-lc',
2378 '-ldl', 2389 '-ldl',
2379 '-lstdc++', 2390 '-lstdc++',
2380 '-lm', 2391 '-lm',
2381 ], 2392 ],
2382 'conditions': [ 2393 'conditions': [
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
3033 # settings in target dicts. SYMROOT is a special case, because many other 3044 # settings in target dicts. SYMROOT is a special case, because many other
3034 # Xcode variables depend on it, including variables such as 3045 # Xcode variables depend on it, including variables such as
3035 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3046 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3036 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3047 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3037 # files to appear (when present) in the UI as actual files and not red 3048 # files to appear (when present) in the UI as actual files and not red
3038 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3049 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3039 # and therefore SYMROOT, needs to be set at the project level. 3050 # and therefore SYMROOT, needs to be set at the project level.
3040 'SYMROOT': '<(DEPTH)/xcodebuild', 3051 'SYMROOT': '<(DEPTH)/xcodebuild',
3041 }, 3052 },
3042 } 3053 }
OLDNEW
« no previous file with comments | « build/android/envsetup.sh ('k') | skia/skia.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698