summaryrefslogtreecommitdiffstats
path: root/cppunit/android.patch
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2011-11-10 00:19:09 +0200
committerTor Lillqvist <tlillqvist@suse.com>2011-11-10 01:23:45 +0200
commitaafe4bd7f63ff59b9cde725701ccd0d8868a68bc (patch)
treed57a0851fb1241deb1642eb318601b3fb1ceaaf1 /cppunit/android.patch
parentTiny edit (diff)
downloadcore-aafe4bd7f63ff59b9cde725701ccd0d8868a68bc.tar.gz
core-aafe4bd7f63ff59b9cde725701ccd0d8868a68bc.zip
We want Android shared objects to have names ending in .so
The silly apkbuilder tool doesn't add extra native libs to an .apk package unless their name ends with .so. It just silently ignores them. So, force libtool to avoid versioning suffix for Android. Yeah, unclear whether apkbuilder is what we will end up using to construct the APKs of actual LO code using Android apps. But at this stage when just trying to build a unit testing app, it seems to be the simplest way to get the .apk properly signed and all to just use a normal Ant project, and let Ant run apkbuilder.
Diffstat (limited to 'cppunit/android.patch')
-rw-r--r--cppunit/android.patch16
1 files changed, 15 insertions, 1 deletions
diff --git a/cppunit/android.patch b/cppunit/android.patch
index e7a188c811aa..7d88a82cfbef 100644
--- a/cppunit/android.patch
+++ b/cppunit/android.patch
@@ -18,4 +18,18 @@
| -uxpv* | -beos* | -mpeix* | -udk* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
- \ No newline at end of file
+--- misc/cppunit-1.12.1/config/ltmain.sh
++++ misc/build/cppunit-1.12.1/config/ltmain.sh
+@@ -3228,6 +3228,12 @@
+ fi
+ else
+
++ # Force no versioning suffix for Android thanks to silly
++ # apkbuilder which doesn't add extra native libs unless their
++ # name ends with .so
++
++ version_type=none
++
+ # Parse the version information argument.
+ save_ifs="$IFS"; IFS=':'
+ set dummy $vinfo 0 0 0