summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-01-18 02:58:10 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-01-23 13:57:04 +0100
commit13788c56859fcd8a8e4999d7553a0864c0176a10 (patch)
tree723d934bb4fde202f3b4513eb3b8d3dd5960c21e /Makefile
parentad6807ba2a3fbd1c276ad5797a27ec771aeaf59b (diff)
downloadmupdf-13788c56859fcd8a8e4999d7553a0864c0176a10.tar.xz
android: Add ndk-build makefile to build JNI library for android viewers.
Run 'make android' to invoke ndk-build with the proper arguments. The results are placed in build/android.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c3ff2482..8b423144 100644
--- a/Makefile
+++ b/Makefile
@@ -422,6 +422,10 @@ debug:
$(MAKE) build=debug
android: generate
- $(MAKE) -C platform/android/viewer
+ ndk-build -j8 \
+ APP_BUILD_SCRIPT=platform/java/Android.mk \
+ APP_PROJECT_PATH=build/android \
+ APP_PLATFORM=android-16 \
+ APP_OPTIM=$(build)
.PHONY: all clean nuke install third libs apps generate