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