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_LDFLAGS := -llog 18 LOCAL_SDK_VERSION := 9 19 LOCAL_ARM_MODE := arm 20 21 LOCAL_CFLAGS += -ffast-math -O3 -funroll-loops 22 LOCAL_CPPFLAGS += $(JNI_CFLAGS) 23 24 25 LOCAL_CPP_EXTENSION := .cpp 26 LOCAL_SRC_FILES := \ 27 src/inputstream_wrapper.cpp \ 28 src/jpegstream.cpp \ 29 src/jerr_hook.cpp \ 30 src/jpeg_hook.cpp \ 31 src/jpeg_writer.cpp \ 32 src/jpeg_reader.cpp \ 33 src/outputstream_wrapper.cpp \ 34 src/stream_wrapper.cpp 35 36 37 include $(BUILD_SHARED_LIBRARY) 38