mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
6fc1a9f96e
This simplifies integration with the Android platform and avoids the files from being used when a non-NDK build is performed. In that case Android.bp is preferred. Change-Id: I6e334cf8b05a19da8452405f5f448f9e4b6e4a40
58 lines
1.1 KiB
Makefile
58 lines
1.1 KiB
Makefile
# Ignore this file during non-NDK builds.
|
|
ifdef NDK_ROOT
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
################################################################################
|
|
# libimageio_util
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
imageio_util.c \
|
|
|
|
LOCAL_CFLAGS := $(WEBP_CFLAGS)
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src
|
|
|
|
LOCAL_MODULE := imageio_util
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
################################################################################
|
|
# libimagedec
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
image_dec.c \
|
|
jpegdec.c \
|
|
metadata.c \
|
|
pngdec.c \
|
|
pnmdec.c \
|
|
tiffdec.c \
|
|
webpdec.c \
|
|
|
|
LOCAL_CFLAGS := $(WEBP_CFLAGS)
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src
|
|
LOCAL_STATIC_LIBRARIES := imageio_util
|
|
|
|
LOCAL_MODULE := imagedec
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
################################################################################
|
|
# libimageenc
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
image_enc.c \
|
|
|
|
LOCAL_CFLAGS := $(WEBP_CFLAGS)
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src
|
|
LOCAL_STATIC_LIBRARIES := imageio_util
|
|
|
|
LOCAL_MODULE := imageenc
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
endif # NDK_ROOT
|