summaryrefslogtreecommitdiffstats
path: root/jni_jpegstream/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'jni_jpegstream/Android.mk')
-rw-r--r--jni_jpegstream/Android.mk41
1 files changed, 41 insertions, 0 deletions
diff --git a/jni_jpegstream/Android.mk b/jni_jpegstream/Android.mk
new file mode 100644
index 0000000..de11733
--- /dev/null
+++ b/jni_jpegstream/Android.mk
@@ -0,0 +1,41 @@
+LOCAL_PATH:= $(call my-dir)
+
+# Jpeg Streaming native
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libjni_jpegstream
+
+LOCAL_NDK_STL_VARIANT := stlport_static
+
+LOCAL_C_INCLUDES := $(LOCAL_PATH) \
+ $(LOCAL_PATH)/src \
+ external/jpeg
+
+LOCAL_SHARED_LIBRARIES := libjpeg
+ifeq (,$(TARGET_BUILD_APPS))
+ # platform build
+ LOCAL_SHARED_LIBRARIES := libcutils
+endif
+
+LOCAL_LDFLAGS := -llog
+LOCAL_SDK_VERSION := 9
+LOCAL_ARM_MODE := arm
+
+LOCAL_CFLAGS += -ffast-math -O3 -funroll-loops
+LOCAL_CPPFLAGS += $(JNI_CFLAGS)
+
+
+LOCAL_CPP_EXTENSION := .cpp
+LOCAL_SRC_FILES := \
+ src/inputstream_wrapper.cpp \
+ src/jpegstream.cpp \
+ src/jerr_hook.cpp \
+ src/jpeg_hook.cpp \
+ src/jpeg_writer.cpp \
+ src/jpeg_reader.cpp \
+ src/outputstream_wrapper.cpp \
+ src/stream_wrapper.cpp
+
+
+include $(BUILD_SHARED_LIBRARY)