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

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 expansion 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 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after
2261 'ldflags': [ 2261 'ldflags': [
2262 '-nostdlib', 2262 '-nostdlib',
2263 '-Wl,--no-undefined', 2263 '-Wl,--no-undefined',
2264 '-Wl,--icf=safe', # Enable identical code folding to reduce size 2264 '-Wl,--icf=safe', # Enable identical code folding to reduce size
2265 # Don't export symbols from statically linked libraries. 2265 # Don't export symbols from statically linked libraries.
2266 '-Wl,--exclude-libs=ALL', 2266 '-Wl,--exclude-libs=ALL',
2267 ], 2267 ],
2268 'libraries': [ 2268 'libraries': [
2269 '-l<(android_stlport_library)', 2269 '-l<(android_stlport_library)',
2270 # Manually link the libgcc.a that the cross compiler uses. 2270 # Manually link the libgcc.a that the cross compiler uses.
2271 '<!($CROSS_CC -print-libgcc-file-name)', 2271 '<!(/bin/echo -n $LIBGCC_FILE_NAME)',
2272 '-lc', 2272 '-lc',
2273 '-ldl', 2273 '-ldl',
2274 '-lstdc++', 2274 '-lstdc++',
2275 '-lm', 2275 '-lm',
2276 ], 2276 ],
2277 'conditions': [ 2277 'conditions': [
2278 ['android_build_type==0', { 2278 ['android_build_type==0', {
2279 'ldflags': [ 2279 'ldflags': [
2280 '--sysroot=<(android_ndk_sysroot)', 2280 '--sysroot=<(android_ndk_sysroot)',
2281 ], 2281 ],
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
2867 }, 2867 },
2868 }, 2868 },
2869 }], 2869 }],
2870 ['enable_new_npdevice_api==1', { 2870 ['enable_new_npdevice_api==1', {
2871 'target_defaults': { 2871 'target_defaults': {
2872 'defines': [ 2872 'defines': [
2873 'ENABLE_NEW_NPDEVICE_API', 2873 'ENABLE_NEW_NPDEVICE_API',
2874 ], 2874 ],
2875 }, 2875 },
2876 }], 2876 }],
2877 ['clang==1', { 2877 ['clang==1 and OS!="android"', {
2878 'make_global_settings': [ 2878 'make_global_settings': [
2879 ['CC', '<(make_clang_dir)/bin/clang'], 2879 ['CC', '<(make_clang_dir)/bin/clang'],
2880 ['CXX', '<(make_clang_dir)/bin/clang++'], 2880 ['CXX', '<(make_clang_dir)/bin/clang++'],
2881 ['LINK', '$(CXX)'], 2881 ['LINK', '$(CXX)'],
2882 ['CC.host', '$(CC)'], 2882 ['CC.host', '$(CC)'],
2883 ['CXX.host', '$(CXX)'], 2883 ['CXX.host', '$(CXX)'],
2884 ['LINK.host', '$(LINK)'], 2884 ['LINK.host', '$(LINK)'],
2885 ], 2885 ],
2886 }], 2886 }],
2887 ['OS=="android" and "<(GENERATOR)"!="ninja"', {
2888 # make generator needs these variables at gyp time
Ami GONE FROM CHROMIUM 2012/03/14 17:13:18 This is incorrect. The generated Makefile will ta
bulach 2012/03/14 17:36:43 sorry, the comment wasn't clear. we're doing this
2889 # in order to hardcode the compiler names into the Makefile.
2890 'make_global_settings': [
2891 ['CC', '<!(/bin/echo -n $CROSS_CC)'],
2892 ['CXX', '<!(/bin/echo -n $CROSS_CXX)'],
2893 ['LINK', '<!(/bin/echo -n $CROSS_LINK)'],
2894 ['CC.host', '<!(/bin/echo -n $HOST_CC)'],
2895 ['CXX.host', '<!(/bin/echo -n $HOST_CXX)'],
2896 ['LINK.host', '<!(/bin/echo -n $HOST_LINK)'],
2897 ],
2898 }],
2887 ], 2899 ],
2888 'xcode_settings': { 2900 'xcode_settings': {
2889 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! 2901 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT!
2890 # This block adds *project-wide* configuration settings to each project 2902 # This block adds *project-wide* configuration settings to each project
2891 # file. It's almost always wrong to put things here. Specify your 2903 # file. It's almost always wrong to put things here. Specify your
2892 # custom xcode_settings in target_defaults to add them to targets instead. 2904 # custom xcode_settings in target_defaults to add them to targets instead.
2893 2905
2894 # In an Xcode Project Info window, the "Base SDK for All Configurations" 2906 # In an Xcode Project Info window, the "Base SDK for All Configurations"
2895 # setting sets the SDK on a project-wide basis. In order to get the 2907 # setting sets the SDK on a project-wide basis. In order to get the
2896 # configured SDK to show properly in the Xcode UI, SDKROOT must be set 2908 # configured SDK to show properly in the Xcode UI, SDKROOT must be set
2897 # here at the project level. 2909 # here at the project level.
2898 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot 2910 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot
2899 2911
2900 # The Xcode generator will look for an xcode_settings section at the root 2912 # The Xcode generator will look for an xcode_settings section at the root
2901 # of each dict and use it to apply settings on a file-wide basis. Most 2913 # of each dict and use it to apply settings on a file-wide basis. Most
2902 # settings should not be here, they should be in target-specific 2914 # settings should not be here, they should be in target-specific
2903 # xcode_settings sections, or better yet, should use non-Xcode-specific 2915 # xcode_settings sections, or better yet, should use non-Xcode-specific
2904 # settings in target dicts. SYMROOT is a special case, because many other 2916 # settings in target dicts. SYMROOT is a special case, because many other
2905 # Xcode variables depend on it, including variables such as 2917 # Xcode variables depend on it, including variables such as
2906 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 2918 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
2907 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 2919 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
2908 # files to appear (when present) in the UI as actual files and not red 2920 # files to appear (when present) in the UI as actual files and not red
2909 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 2921 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
2910 # and therefore SYMROOT, needs to be set at the project level. 2922 # and therefore SYMROOT, needs to be set at the project level.
2911 'SYMROOT': '<(DEPTH)/xcodebuild', 2923 'SYMROOT': '<(DEPTH)/xcodebuild',
2912 }, 2924 },
2913 } 2925 }
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