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

Side by Side Diff: build/common.gypi

Issue 9693042: Chrome on Android: fix cross-compilation setup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix re-gyp Created 8 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
« build/android/envsetup.sh ('K') | « build/android/envsetup.sh ('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 2261 matching lines...) Expand 10 before | Expand all | Expand 10 after
2272 'ldflags': [ 2272 'ldflags': [
2273 '-nostdlib', 2273 '-nostdlib',
2274 '-Wl,--no-undefined', 2274 '-Wl,--no-undefined',
2275 '-Wl,--icf=safe', # Enable identical code folding to reduce size 2275 '-Wl,--icf=safe', # Enable identical code folding to reduce size
2276 # Don't export symbols from statically linked libraries. 2276 # Don't export symbols from statically linked libraries.
2277 '-Wl,--exclude-libs=ALL', 2277 '-Wl,--exclude-libs=ALL',
2278 ], 2278 ],
2279 'libraries': [ 2279 'libraries': [
2280 '-l<(android_stlport_library)', 2280 '-l<(android_stlport_library)',
2281 # Manually link the libgcc.a that the cross compiler uses. 2281 # Manually link the libgcc.a that the cross compiler uses.
2282 '<!($CROSS_CC -print-libgcc-file-name)', 2282 '<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)',
2283 '-lc', 2283 '-lc',
2284 '-ldl', 2284 '-ldl',
2285 '-lstdc++', 2285 '-lstdc++',
2286 '-lm', 2286 '-lm',
2287 ], 2287 ],
2288 'conditions': [ 2288 'conditions': [
2289 ['android_build_type==0', { 2289 ['android_build_type==0', {
2290 'ldflags': [ 2290 'ldflags': [
2291 '--sysroot=<(android_ndk_sysroot)', 2291 '--sysroot=<(android_ndk_sysroot)',
2292 ], 2292 ],
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
2878 }, 2878 },
2879 }, 2879 },
2880 }], 2880 }],
2881 ['enable_new_npdevice_api==1', { 2881 ['enable_new_npdevice_api==1', {
2882 'target_defaults': { 2882 'target_defaults': {
2883 'defines': [ 2883 'defines': [
2884 'ENABLE_NEW_NPDEVICE_API', 2884 'ENABLE_NEW_NPDEVICE_API',
2885 ], 2885 ],
2886 }, 2886 },
2887 }], 2887 }],
2888 ['clang==1', { 2888 ['clang==1 and OS!="android"', {
2889 'make_global_settings': [ 2889 'make_global_settings': [
2890 ['CC', '<(make_clang_dir)/bin/clang'], 2890 ['CC', '<(make_clang_dir)/bin/clang'],
2891 ['CXX', '<(make_clang_dir)/bin/clang++'], 2891 ['CXX', '<(make_clang_dir)/bin/clang++'],
2892 ['LINK', '$(CXX)'], 2892 ['LINK', '$(CXX)'],
2893 ['CC.host', '$(CC)'], 2893 ['CC.host', '$(CC)'],
2894 ['CXX.host', '$(CXX)'], 2894 ['CXX.host', '$(CXX)'],
2895 ['LINK.host', '$(LINK)'], 2895 ['LINK.host', '$(LINK)'],
2896 ], 2896 ],
2897 }], 2897 }],
2898 ['OS=="android" and "<(GENERATOR)"!="ninja"', {
2899 # Hardcode the compiler names in the Makefile so that
2900 # it won't depend on the environment at make time.
2901 'make_global_settings': [
2902 ['CC', '<!(/bin/echo -n ${GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*-gcc)'],
2903 ['CXX', '<!(/bin/echo -n ${GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*-g++)'],
2904 ['LINK', '<!(/bin/echo -n ${GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*-gcc)'],
2905 ['CC.host', '<!(which gcc)'],
2906 ['CXX.host', '<!(which g++)'],
2907 ['LINK.host', '<!(which g++)'],
2908 ],
2909 }],
2898 ], 2910 ],
2899 'xcode_settings': { 2911 'xcode_settings': {
2900 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! 2912 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT!
2901 # This block adds *project-wide* configuration settings to each project 2913 # This block adds *project-wide* configuration settings to each project
2902 # file. It's almost always wrong to put things here. Specify your 2914 # file. It's almost always wrong to put things here. Specify your
2903 # custom xcode_settings in target_defaults to add them to targets instead. 2915 # custom xcode_settings in target_defaults to add them to targets instead.
2904 2916
2905 # In an Xcode Project Info window, the "Base SDK for All Configurations" 2917 # In an Xcode Project Info window, the "Base SDK for All Configurations"
2906 # setting sets the SDK on a project-wide basis. In order to get the 2918 # setting sets the SDK on a project-wide basis. In order to get the
2907 # configured SDK to show properly in the Xcode UI, SDKROOT must be set 2919 # configured SDK to show properly in the Xcode UI, SDKROOT must be set
2908 # here at the project level. 2920 # here at the project level.
2909 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot 2921 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot
2910 2922
2911 # The Xcode generator will look for an xcode_settings section at the root 2923 # The Xcode generator will look for an xcode_settings section at the root
2912 # of each dict and use it to apply settings on a file-wide basis. Most 2924 # of each dict and use it to apply settings on a file-wide basis. Most
2913 # settings should not be here, they should be in target-specific 2925 # settings should not be here, they should be in target-specific
2914 # xcode_settings sections, or better yet, should use non-Xcode-specific 2926 # xcode_settings sections, or better yet, should use non-Xcode-specific
2915 # settings in target dicts. SYMROOT is a special case, because many other 2927 # settings in target dicts. SYMROOT is a special case, because many other
2916 # Xcode variables depend on it, including variables such as 2928 # Xcode variables depend on it, including variables such as
2917 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 2929 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
2918 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 2930 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
2919 # files to appear (when present) in the UI as actual files and not red 2931 # files to appear (when present) in the UI as actual files and not red
2920 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 2932 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
2921 # and therefore SYMROOT, needs to be set at the project level. 2933 # and therefore SYMROOT, needs to be set at the project level.
2922 'SYMROOT': '<(DEPTH)/xcodebuild', 2934 'SYMROOT': '<(DEPTH)/xcodebuild',
2923 }, 2935 },
2924 } 2936 }
OLDNEW
« build/android/envsetup.sh ('K') | « build/android/envsetup.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698