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