diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-09 00:06:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-09 00:06:44 +0000 |
commit | 44cf8ec67278bd1ab6c7f83a9993f7a5686a9541 (patch) | |
tree | 5eec4b0d1a3f163d279c3c27c03324ba49fa235a /android/jni/Android.mk | |
parent | Initial commit. (diff) | |
download | zbar-44cf8ec67278bd1ab6c7f83a9993f7a5686a9541.tar.xz zbar-44cf8ec67278bd1ab6c7f83a9993f7a5686a9541.zip |
Adding upstream version 0.23.93.upstream/0.23.93upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'android/jni/Android.mk')
-rw-r--r-- | android/jni/Android.mk | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/android/jni/Android.mk b/android/jni/Android.mk new file mode 100644 index 0000000..14f91b7 --- /dev/null +++ b/android/jni/Android.mk @@ -0,0 +1,76 @@ +# +# Android NDK makefile +# +# build - <ndk path>/ndk-build ICONV_SRC=<iconv library src> +# clean - <ndk path>/ndk-build clean +# +MY_LOCAL_PATH := $(call my-dir) + +# libiconv +include $(CLEAR_VARS) +LOCAL_PATH := $(ICONV_SRC) + +LOCAL_MODULE := libiconv + +LOCAL_CFLAGS := \ + -Wno-multichar \ + -D_ANDROID \ + -DLIBDIR="c" \ + -DBUILDING_LIBICONV \ + -DBUILDING_LIBCHARSET \ + -DIN_LIBRARY + +LOCAL_SRC_FILES := \ + lib/iconv.c \ + libcharset/lib/localcharset.c \ + lib/relocatable.c + +LOCAL_C_INCLUDES := \ + $(ICONV_SRC)/include \ + $(ICONV_SRC)/libcharset \ + $(ICONV_SRC)/libcharset/include + +include $(BUILD_SHARED_LIBRARY) + +LOCAL_LDLIBS := -llog -lcharset + +# libzbarjni +include $(CLEAR_VARS) + +LOCAL_PATH := $(MY_LOCAL_PATH) +LOCAL_MODULE := zbarjni +LOCAL_SRC_FILES := ../../java/zbarjni.c \ + ../../zbar/img_scanner.c \ + ../../zbar/decoder.c \ + ../../zbar/image.c \ + ../../zbar/symbol.c \ + ../../zbar/convert.c \ + ../../zbar/config.c \ + ../../zbar/scanner.c \ + ../../zbar/error.c \ + ../../zbar/refcnt.c \ + ../../zbar/video.c \ + ../../zbar/video/null.c \ + ../../zbar/decoder/code128.c \ + ../../zbar/decoder/code39.c \ + ../../zbar/decoder/code93.c \ + ../../zbar/decoder/codabar.c \ + ../../zbar/decoder/databar.c \ + ../../zbar/decoder/ean.c \ + ../../zbar/decoder/i25.c \ + ../../zbar/decoder/qr_finder.c \ + ../../zbar/qrcode/bch15_5.c \ + ../../zbar/qrcode/binarize.c \ + ../../zbar/qrcode/isaac.c \ + ../../zbar/qrcode/qrdec.c \ + ../../zbar/qrcode/qrdectxt.c \ + ../../zbar/qrcode/rs.c \ + ../../zbar/qrcode/util.c + +LOCAL_C_INCLUDES := ../include \ + ../zbar \ + $(ICONV_SRC)/include + +LOCAL_SHARED_LIBRARIES := libiconv + +include $(BUILD_SHARED_LIBRARY) |