1 LOCAL_PATH:= $(call my-dir) 2 3 # Jpeg Streaming native 4 5 include $(CLEAR_VARS) 6 7 LOCAL_MODULE := libjni_jpegstream 8 9 LOCAL_NDK_STL_VARIANT := stlport_static 10 11 LOCAL_C_INCLUDES := $(LOCAL_PATH) \ 12 $(LOCAL_PATH)/src \ 13 external/jpeg 14 15 LOCAL_SHARED_LIBRARIES := libjpeg 16 17 LOCAL_SDK_VERSION := 9 18 LOCAL_ARM_MODE := arm 19 20 LOCAL_CFLAGS += -ffast-math -O3 -funroll-loops 21 LOCAL_CPPFLAGS += $(JNI_CFLAGS) 22 LOCAL_LDLIBS := -llog 23 24 LOCAL_CPP_EXTENSION := .cpp 25 LOCAL_SRC_FILES := \ 26 src/inputstream_wrapper.cpp \ 27 src/jpegstream.cpp \ 28 src/jerr_hook.cpp \ 29 src/jpeg_hook.cpp \ 30 src/jpeg_writer.cpp \ 31 src/jpeg_reader.cpp \ 32 src/outputstream_wrapper.cpp \ 33 src/stream_wrapper.cpp 34 35 36 include $(BUILD_SHARED_LIBRARY) 37