diff --git a/Android.mk b/Android.mk index 469057f0..426bc449 100644 --- a/Android.mk +++ b/Android.mk @@ -99,18 +99,6 @@ else include $(BUILD_STATIC_LIBRARY) endif -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := \ - examples/dwebp.c \ - examples/example_util.c \ - -LOCAL_CFLAGS := $(WEBP_CFLAGS) -LOCAL_C_INCLUDES := $(LOCAL_PATH)/src -LOCAL_STATIC_LIBRARIES := webp - -LOCAL_MODULE := dwebp - -include $(BUILD_EXECUTABLE) +include $(LOCAL_PATH)/examples/Android.mk $(call import-module,android/cpufeatures) diff --git a/examples/Android.mk b/examples/Android.mk new file mode 100644 index 00000000..fa8a9a6b --- /dev/null +++ b/examples/Android.mk @@ -0,0 +1,26 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := \ + example_util.c \ + +LOCAL_CFLAGS := $(WEBP_CFLAGS) +LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src + +LOCAL_MODULE := example_util + +include $(BUILD_STATIC_LIBRARY) + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := \ + dwebp.c \ + +LOCAL_CFLAGS := $(WEBP_CFLAGS) +LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src +LOCAL_STATIC_LIBRARIES := example_util webp + +LOCAL_MODULE := dwebp + +include $(BUILD_EXECUTABLE)