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