go-libwebp

Experimental translation from libwebp to Go source.
Log | Files | Refs | README | LICENSE

Android.mk (1161B)


      1 # Ignore this file during non-NDK builds.
      2 ifdef NDK_ROOT
      3 LOCAL_PATH := $(call my-dir)
      4 
      5 ################################################################################
      6 # libimageio_util
      7 
      8 include $(CLEAR_VARS)
      9 
     10 LOCAL_SRC_FILES := \
     11     imageio_util.c \
     12 
     13 LOCAL_CFLAGS := $(WEBP_CFLAGS)
     14 LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src
     15 
     16 LOCAL_MODULE := imageio_util
     17 
     18 include $(BUILD_STATIC_LIBRARY)
     19 
     20 ################################################################################
     21 # libimagedec
     22 
     23 include $(CLEAR_VARS)
     24 
     25 LOCAL_SRC_FILES := \
     26     image_dec.c \
     27     jpegdec.c \
     28     metadata.c \
     29     pngdec.c \
     30     pnmdec.c \
     31     tiffdec.c \
     32     webpdec.c \
     33 
     34 LOCAL_CFLAGS := $(WEBP_CFLAGS)
     35 LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src
     36 LOCAL_STATIC_LIBRARIES := imageio_util
     37 
     38 LOCAL_MODULE := imagedec
     39 
     40 include $(BUILD_STATIC_LIBRARY)
     41 
     42 ################################################################################
     43 # libimageenc
     44 
     45 include $(CLEAR_VARS)
     46 
     47 LOCAL_SRC_FILES := \
     48     image_enc.c \
     49 
     50 LOCAL_CFLAGS := $(WEBP_CFLAGS)
     51 LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src
     52 LOCAL_STATIC_LIBRARIES := imageio_util
     53 
     54 LOCAL_MODULE := imageenc
     55 
     56 include $(BUILD_STATIC_LIBRARY)
     57 endif  # NDK_ROOT