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

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: Rebaes, added native_exports switch, don't remove empty RegisterNatives. Created 6 years, 8 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
« build/android/android_exports.lst ('K') | « build/jni_generator.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/mojo_public.gypi
diff --git a/mojo/mojo_public.gypi b/mojo/mojo_public.gypi
index 261170a9822d2bb461de9e11eb3423e132bbf66e..3d415b50d03bdddee25e7a2f77a5802ff60aa037 100644
--- a/mojo/mojo_public.gypi
+++ b/mojo/mojo_public.gypi
@@ -23,6 +23,16 @@
'public/system/core_private.h',
],
'conditions': [
+ ['OS=="android"', {
+ 'ldflags!': [
+ # Remove default export list because this lib has different exports.
+ '-Wl,--version-script="../../build/android/android_exports.lst"',
+ ],
+ 'ldflags': [
+ # Don't export symbols from statically linked libraries.
+ '-Wl,--exclude-libs=ALL',
+ ],
+ }],
['OS=="mac"', {
'xcode_settings': {
# Make it a run-path dependent library.
@@ -65,6 +75,16 @@
'public/gles2/gles2_private.h',
],
'conditions': [
+ ['OS=="android"', {
+ 'ldflags!': [
+ # Remove default export list because this lib has different exports.
+ '-Wl,--version-script="../../build/android/android_exports.lst"',
+ ],
+ 'ldflags': [
+ # Don't export symbols from statically linked libraries.
+ '-Wl,--exclude-libs=ALL',
+ ],
+ }],
['OS=="mac"', {
'xcode_settings': {
# Make it a run-path dependent library.
@@ -100,6 +120,16 @@
'public/tests/test_support_private.h',
],
'conditions': [
+ ['OS=="android"', {
+ 'ldflags!': [
+ # Remove default export list because this lib has different exports.
+ '-Wl,--version-script="../../build/android/android_exports.lst"',
+ ],
+ '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/android/android_exports.lst ('K') | « build/jni_generator.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698