summaryrefslogtreecommitdiffstats
path: root/cppunit/makefile.mk
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/makefile.mk
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/makefile.mk')
-rw-r--r--cppunit/makefile.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/cppunit/makefile.mk b/cppunit/makefile.mk
index fe7f3f065e00..c4b7bba920cc 100644
--- a/cppunit/makefile.mk
+++ b/cppunit/makefile.mk
@@ -34,12 +34,16 @@ TARFILE_MD5=bd30e9cf5523cdfc019b94f5e1d7fd19
# from <https://sourceforge.net/projects/cppunit/files/cppunit/1.12.1/
# cppunit-1.12.1.tar.gz/download>
-PATCH_FILES = solarisfinite.patch warnings.patch windows.patch ldflags.patch aix.patch avoid-synthetised-destructor.patch android.patch ios.patch
+PATCH_FILES = solarisfinite.patch warnings.patch windows.patch ldflags.patch aix.patch avoid-synthetised-destructor.patch ios.patch
# solarisfinite.patch: see <https://sourceforge.net/tracker/?func=detail&
# aid=2912590&group_id=11795&atid=311795>
# warnings.patch: see <https://sourceforge.net/tracker/?func=detail&
# aid=2912630&group_id=11795&atid=311795>
+.IF "$(OS)" == "ANDROID"
+PATCH_FILES += android.patch
+.ENDIF
+
.IF "$(OS)" == "WNT"
.IF "$(COM)" == "MSC"
@@ -165,6 +169,8 @@ OUT2LIB = ooo-install/lib/libcppunit-1.12.a
OUT2LIB = ooo-install/lib/libcppunit-1.12.so.1.0
.ELIF "$(OS)" == "IOS"
OUT2LIB = ooo-install/lib/libcppunit.a
+.ELIF "$(OS)" == "ANDROID"
+OUT2LIB = ooo-install/lib/libcppunit-1.12.so
.ELSE
OUT2LIB = ooo-install/lib/libcppunit-1.12.so.1
.END