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

Side by Side Diff: build/common.gypi

Issue 10331008: Revert 135087 - This patch is to enable x86 android build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 ['(branding=="Chrome" and buildtype=="Official")', { 816 ['(branding=="Chrome" and buildtype=="Official")', {
817 'linux_dump_symbols%': 1, 817 'linux_dump_symbols%': 1,
818 }], 818 }],
819 ], 819 ],
820 }], # os_posix==1 and OS!="mac" and OS!="android" 820 }], # os_posix==1 and OS!="mac" and OS!="android"
821 ['OS=="android"', { 821 ['OS=="android"', {
822 # Location of Android NDK. 822 # Location of Android NDK.
823 'variables': { 823 'variables': {
824 'variables': { 824 'variables': {
825 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)', 825 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)',
826 # Android uses x86 instead of ia32 for their target_arch 826 'target_arch%': 'arm', # target_arch in android terms.
827 # designation.
828 # TODO(wistoch): Adjust the target_arch naming scheme to avoid
829 # confusion.
830 # http://crbug.com/125329
831 'conditions': [
832 ['target_arch == "ia32"', {
833 'target_arch': 'x86',
834 }],
835 ],
836 827
837 # Switch between different build types, currently only '0' is 828 # Switch between different build types, currently only '0' is
838 # supported. 829 # supported.
839 'android_build_type%': 0, 830 'android_build_type%': 0,
840 }, 831 },
841 'android_ndk_root%': '<(android_ndk_root)', 832 'android_ndk_root%': '<(android_ndk_root)',
842 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-< (target_arch)', 833 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-< (target_arch)',
843 'android_build_type%': '<(android_build_type)', 834 'android_build_type%': '<(android_build_type)',
844 }, 835 },
845 'android_ndk_root%': '<(android_ndk_root)', 836 'android_ndk_root%': '<(android_ndk_root)',
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 'secure_atl%': 1, 971 'secure_atl%': 1,
981 }], 972 }],
982 ], 973 ],
983 'nacl_win64_defines': [ 974 'nacl_win64_defines': [
984 # This flag is used to minimize dependencies when building 975 # This flag is used to minimize dependencies when building
985 # Native Client loader for 64-bit Windows. 976 # Native Client loader for 64-bit Windows.
986 'NACL_WIN64', 977 'NACL_WIN64',
987 ], 978 ],
988 }], 979 }],
989 980
990 ['os_posix==1 and chromeos==0 and OS!="android"', { 981 ['os_posix==1 and chromeos==0 and target_arch!="arm"', {
991 'use_cups%': 1, 982 'use_cups%': 1,
992 }, { 983 }, {
993 'use_cups%': 0, 984 'use_cups%': 0,
994 }], 985 }],
995 986
996 # Set the relative path from this file to the GYP file of the JPEG 987 # Set the relative path from this file to the GYP file of the JPEG
997 # library used by Chromium. 988 # library used by Chromium.
998 ['use_libjpeg_turbo==1', { 989 ['use_libjpeg_turbo==1', {
999 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp', 990 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp',
1000 }, { 991 }, {
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after
2383 'HAVE_OFF64_T', 2374 'HAVE_OFF64_T',
2384 'HAVE_SYS_UIO_H', 2375 'HAVE_SYS_UIO_H',
2385 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize . 2376 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize .
2386 ], 2377 ],
2387 'ldflags!': [ 2378 'ldflags!': [
2388 '-pthread', # Not supported by Android toolchain. 2379 '-pthread', # Not supported by Android toolchain.
2389 ], 2380 ],
2390 'ldflags': [ 2381 'ldflags': [
2391 '-nostdlib', 2382 '-nostdlib',
2392 '-Wl,--no-undefined', 2383 '-Wl,--no-undefined',
2384 '-Wl,--icf=safe', # Enable identical code folding to reduce size
2393 # Don't export symbols from statically linked libraries. 2385 # Don't export symbols from statically linked libraries.
2394 '-Wl,--exclude-libs=ALL', 2386 '-Wl,--exclude-libs=ALL',
2395 ], 2387 ],
2396 'conditions': [
2397 ['target_arch == "arm"', {
2398 'ldflags': [
2399 # Enable identical code folding to reduce size.
2400 '-Wl,--icf=safe',
2401 ],
2402 }],
2403 ],
2404 'libraries': [ 2388 'libraries': [
2405 '-l<(android_stlport_library)', 2389 '-l<(android_stlport_library)',
2406 # Manually link the libgcc.a that the cross compiler uses. 2390 # Manually link the libgcc.a that the cross compiler uses.
2407 '<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)', 2391 '<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)',
2408 '-lc', 2392 '-lc',
2409 '-ldl', 2393 '-ldl',
2410 '-lstdc++', 2394 '-lstdc++',
2411 '-lm', 2395 '-lm',
2412 ], 2396 ],
2413 'conditions': [ 2397 'conditions': [
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
3064 # settings in target dicts. SYMROOT is a special case, because many other 3048 # settings in target dicts. SYMROOT is a special case, because many other
3065 # Xcode variables depend on it, including variables such as 3049 # Xcode variables depend on it, including variables such as
3066 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3050 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3067 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3051 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3068 # files to appear (when present) in the UI as actual files and not red 3052 # files to appear (when present) in the UI as actual files and not red
3069 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3053 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3070 # and therefore SYMROOT, needs to be set at the project level. 3054 # and therefore SYMROOT, needs to be set at the project level.
3071 'SYMROOT': '<(DEPTH)/xcodebuild', 3055 'SYMROOT': '<(DEPTH)/xcodebuild',
3072 }, 3056 },
3073 } 3057 }
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