go-libwebp

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

Android.mk (2123B)


      1 # Ignore this file during non-NDK builds.
      2 ifdef NDK_ROOT
      3 LOCAL_PATH := $(call my-dir)
      4 
      5 ################################################################################
      6 # libexample_util
      7 
      8 include $(CLEAR_VARS)
      9 
     10 LOCAL_SRC_FILES := \
     11     example_util.c \
     12 
     13 LOCAL_CFLAGS := $(WEBP_CFLAGS)
     14 LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src
     15 
     16 LOCAL_MODULE := example_util
     17 
     18 include $(BUILD_STATIC_LIBRARY)
     19 
     20 ################################################################################
     21 # cwebp
     22 
     23 include $(CLEAR_VARS)
     24 
     25 # Note: to enable jpeg/png encoding the sources from AOSP can be used with
     26 # minor modification to their Android.mk files.
     27 LOCAL_SRC_FILES := \
     28     cwebp.c \
     29 
     30 LOCAL_CFLAGS := $(WEBP_CFLAGS)
     31 LOCAL_STATIC_LIBRARIES := example_util imageio_util imagedec webpdemux webp
     32 
     33 LOCAL_MODULE := cwebp
     34 
     35 include $(BUILD_EXECUTABLE)
     36 
     37 ################################################################################
     38 # dwebp
     39 
     40 include $(CLEAR_VARS)
     41 
     42 LOCAL_SRC_FILES := \
     43     dwebp.c \
     44 
     45 LOCAL_CFLAGS := $(WEBP_CFLAGS)
     46 LOCAL_STATIC_LIBRARIES := example_util imagedec imageenc webpdemux webp
     47 LOCAL_MODULE := dwebp
     48 
     49 include $(BUILD_EXECUTABLE)
     50 
     51 ################################################################################
     52 # webpmux
     53 
     54 include $(CLEAR_VARS)
     55 
     56 LOCAL_SRC_FILES := \
     57     webpmux.c \
     58 
     59 LOCAL_CFLAGS := $(WEBP_CFLAGS)
     60 LOCAL_STATIC_LIBRARIES := example_util imageio_util webpmux webp
     61 
     62 LOCAL_MODULE := webpmux_example
     63 
     64 include $(BUILD_EXECUTABLE)
     65 
     66 ################################################################################
     67 # img2webp
     68 
     69 include $(CLEAR_VARS)
     70 
     71 LOCAL_SRC_FILES := \
     72     img2webp.c \
     73 
     74 LOCAL_CFLAGS := $(WEBP_CFLAGS)
     75 LOCAL_STATIC_LIBRARIES := example_util imageio_util imagedec webpmux webpdemux \
     76                           webp
     77 
     78 LOCAL_MODULE := img2webp_example
     79 
     80 include $(BUILD_EXECUTABLE)
     81 
     82 ################################################################################
     83 # webpinfo
     84 
     85 include $(CLEAR_VARS)
     86 
     87 LOCAL_SRC_FILES := \
     88     webpinfo.c \
     89 
     90 LOCAL_CFLAGS := $(WEBP_CFLAGS)
     91 LOCAL_STATIC_LIBRARIES := example_util imageio_util webp
     92 
     93 LOCAL_MODULE := webpinfo_example
     94 
     95 include $(BUILD_EXECUTABLE)
     96 endif  # NDK_ROOT