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

Unified Diff: mojo/mojo_public.gypi

Issue 147533004: Remove unneeded JNI registrations. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Use link_settings in JNI generator .gypis to provide linker exports list. Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: mojo/mojo_public.gypi
diff --git a/mojo/mojo_public.gypi b/mojo/mojo_public.gypi
index 118e1f1d76faa5f7e56d30851d31360b7cc618c4..f61e5d0131823d195a24ac2113211e3bb1fbbf17 100644
--- a/mojo/mojo_public.gypi
+++ b/mojo/mojo_public.gypi
@@ -66,6 +66,16 @@
'public/gles2/gles2_private.h',
],
'conditions': [
+ ['OS=="android"', {
+ 'ldflags!': [
+ # Remove default export list because this lib has different exports.
+ '-Wl,--version-script=<(android_linker_script)',
+ ],
+ 'ldflags': [
+ # Don't export symbols from statically linked libraries.
+ '-Wl,--exclude-libs=ALL',
+ ],
+ }],
['OS=="mac"', {
'xcode_settings': {
# Make it a run-path dependent library.
@@ -95,6 +105,16 @@
'public/tests/test_support_private.h',
],
'conditions': [
+ ['OS=="android"', {
+ 'ldflags!': [
+ # Remove default export list because this lib has different exports.
+ '-Wl,--version-script=<(android_linker_script)',
+ ],
+ 'ldflags': [
+ # Don't export symbols from statically linked libraries.
+ '-Wl,--exclude-libs=ALL',
+ ],
+ }],
['OS=="mac"', {
'xcode_settings': {
# Make it a run-path dependent library.
« build/common.gypi ('K') | « build/linker_script_copy.gyp ('k') | mojo/mojo_services.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698