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 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1724 # When building as part of the Android system, use system libraries | 1724 # When building as part of the Android system, use system libraries |
1725 # where possible to reduce ROM size. | 1725 # where possible to reduce ROM size. |
1726 # TODO(steveblock): Investigate using the system version of sqlite. | 1726 # TODO(steveblock): Investigate using the system version of sqlite. |
1727 'use_system_sqlite%': 0, # '<(android_webview_build)', | 1727 'use_system_sqlite%': 0, # '<(android_webview_build)', |
1728 'use_system_expat%': '<(android_webview_build)', | 1728 'use_system_expat%': '<(android_webview_build)', |
1729 'use_system_icu%': '<(android_webview_build)', | 1729 'use_system_icu%': '<(android_webview_build)', |
1730 'use_system_stlport%': '<(android_webview_build)', | 1730 'use_system_stlport%': '<(android_webview_build)', |
1731 | 1731 |
1732 # Copy it out one scope. | 1732 # Copy it out one scope. |
1733 'android_webview_build%': '<(android_webview_build)', | 1733 'android_webview_build%': '<(android_webview_build)', |
1734 | |
1735 # Default android linker script for shared library exports. | |
1736 'android_linker_script%': '<!(cd <(DEPTH) && pwd -P)/build/android/andro
id_exports.lst', | |
1737 }], # OS=="android" | 1734 }], # OS=="android" |
1738 ['android_webview_build==1', { | 1735 ['android_webview_build==1', { |
1739 # When building the WebView in the Android tree, jarjar will remap all | 1736 # When building the WebView in the Android tree, jarjar will remap all |
1740 # the class names, so the JNI generator needs to know this. | 1737 # the class names, so the JNI generator needs to know this. |
1741 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt'
, | 1738 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt'
, |
1742 }], | 1739 }], |
1743 ['OS=="mac"', { | 1740 ['OS=="mac"', { |
1744 'conditions': [ | 1741 'conditions': [ |
1745 # All Chrome builds have breakpad symbols, but only process the | 1742 # All Chrome builds have breakpad symbols, but only process the |
1746 # symbols from official builds. | 1743 # symbols from official builds. |
(...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4146 # versions with the same name (e.g. skia, icu). | 4143 # versions with the same name (e.g. skia, icu). |
4147 ['component=="shared_library"', { | 4144 ['component=="shared_library"', { |
4148 'android_product_extension': 'cr.so', | 4145 'android_product_extension': 'cr.so', |
4149 }, { | 4146 }, { |
4150 'android_product_extension': 'so', | 4147 'android_product_extension': 'so', |
4151 } ], | 4148 } ], |
4152 ], | 4149 ], |
4153 }, | 4150 }, |
4154 'target_conditions': [ | 4151 'target_conditions': [ |
4155 ['_type=="shared_library"', { | 4152 ['_type=="shared_library"', { |
4156 'product_extension': '<(android_product_extension)', | 4153 'product_extension': '<(android_product_extension)', |
4157 }], | |
4158 ['_toolset=="target" and component=="static_library" and _type=="share
d_library"', { | |
4159 'ldflags': [ | |
4160 # Only export symbols that are specified in version script. | |
4161 '-Wl,--version-script=<(android_linker_script)', | |
4162 ], | |
4163 }], | 4154 }], |
4164 | 4155 |
4165 # Settings for building device targets using Android's toolchain. | 4156 # Settings for building device targets using Android's toolchain. |
4166 # These are based on the setup.mk file from the Android NDK. | 4157 # These are based on the setup.mk file from the Android NDK. |
4167 # | 4158 # |
4168 # The NDK Android executable link step looks as follows: | 4159 # The NDK Android executable link step looks as follows: |
4169 # $LDFLAGS | 4160 # $LDFLAGS |
4170 # $(TARGET_CRTBEGIN_DYNAMIC_O) <-- crtbegin.o | 4161 # $(TARGET_CRTBEGIN_DYNAMIC_O) <-- crtbegin.o |
4171 # $(PRIVATE_OBJECTS) <-- The .o that we built | 4162 # $(PRIVATE_OBJECTS) <-- The .o that we built |
4172 # $(PRIVATE_STATIC_LIBRARIES) <-- The .a that we built | 4163 # $(PRIVATE_STATIC_LIBRARIES) <-- The .a that we built |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4218 'USE_STLPORT=1', | 4209 'USE_STLPORT=1', |
4219 '_STLP_USE_PTR_SPECIALIZATIONS=1', | 4210 '_STLP_USE_PTR_SPECIALIZATIONS=1', |
4220 'CHROME_BUILD_ID="<(chrome_build_id)"', | 4211 'CHROME_BUILD_ID="<(chrome_build_id)"', |
4221 ], | 4212 ], |
4222 'ldflags!': [ | 4213 'ldflags!': [ |
4223 '-pthread', # Not supported by Android toolchain. | 4214 '-pthread', # Not supported by Android toolchain. |
4224 ], | 4215 ], |
4225 'ldflags': [ | 4216 'ldflags': [ |
4226 '-nostdlib', | 4217 '-nostdlib', |
4227 '-Wl,--no-undefined', | 4218 '-Wl,--no-undefined', |
4228 | 4219 # Don't export symbols from statically linked libraries. |
| 4220 '-Wl,--exclude-libs=ALL', |
4229 ], | 4221 ], |
4230 'libraries': [ | 4222 'libraries': [ |
4231 '-l<(android_stlport_library)', | 4223 '-l<(android_stlport_library)', |
4232 # Manually link the libgcc.a that the cross compiler uses. | 4224 # Manually link the libgcc.a that the cross compiler uses. |
4233 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)', | 4225 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)', |
4234 '-lc', | 4226 '-lc', |
4235 '-ldl', | 4227 '-ldl', |
4236 '-lm', | 4228 '-lm', |
4237 ], | 4229 ], |
4238 'conditions': [ | 4230 'conditions': [ |
| 4231 ['component=="shared_library"', { |
| 4232 'ldflags!': [ |
| 4233 '-Wl,--exclude-libs=ALL', |
| 4234 ], |
| 4235 }], |
4239 ['clang==1', { | 4236 ['clang==1', { |
4240 'cflags': [ | 4237 'cflags': [ |
4241 # Work around incompatibilities between bionic and clang | 4238 # Work around incompatibilities between bionic and clang |
4242 # headers. | 4239 # headers. |
4243 '-D__compiler_offsetof=__builtin_offsetof', | 4240 '-D__compiler_offsetof=__builtin_offsetof', |
4244 '-Dnan=__builtin_nan', | 4241 '-Dnan=__builtin_nan', |
4245 ], | 4242 ], |
4246 'conditions': [ | 4243 'conditions': [ |
4247 ['target_arch=="arm"', { | 4244 ['target_arch=="arm"', { |
4248 'cflags': [ | 4245 'cflags': [ |
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5432 # settings in target dicts. SYMROOT is a special case, because many other | 5429 # settings in target dicts. SYMROOT is a special case, because many other |
5433 # Xcode variables depend on it, including variables such as | 5430 # Xcode variables depend on it, including variables such as |
5434 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5431 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5435 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5432 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5436 # files to appear (when present) in the UI as actual files and not red | 5433 # files to appear (when present) in the UI as actual files and not red |
5437 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5434 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5438 # and therefore SYMROOT, needs to be set at the project level. | 5435 # and therefore SYMROOT, needs to be set at the project level. |
5439 'SYMROOT': '<(DEPTH)/xcodebuild', | 5436 'SYMROOT': '<(DEPTH)/xcodebuild', |
5440 }, | 5437 }, |
5441 } | 5438 } |
OLD | NEW |