Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 149b1b87e562a02ec576f355e367f9a9fcfe291f..34c350c7865e7981a0579f567c3bf13e7d1b2b4e 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -3141,9 +3141,22 @@ |
'target_defaults': { |
'variables': { |
'release_extra_cflags%': '', |
+ 'conditions': [ |
+ # If we're using the components build, append "cr" to all shared |
+ # libraries to avoid naming collisions with android system library |
+ # versions with the same name (e.g. skia, icu). |
+ ['component=="shared_library"', { |
+ 'android_product_extension': 'cr.so', |
+ }, { |
+ 'android_product_extension': 'so', |
+ } ], |
+ ], |
}, |
- |
'target_conditions': [ |
+ ['_type=="shared_library"', { |
+ 'product_extension': '<(android_product_extension)', |
+ }], |
+ |
# Settings for building device targets using Android's toolchain. |
# These are based on the setup.mk file from the Android NDK. |
# |