blob: 6e1705bc88e12c1e9b9998649c53828bf033820f [file] [log] [blame]
Ying Wangaf0c5662014-04-14 16:32:40 -07001# Copyright 2010 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH:= $(call my-dir)
16
17###############################################
18include $(CLEAR_VARS)
19LOCAL_SRC_FILES := \
20 enc/alpha.c \
21 enc/analysis.c \
22 enc/backward_references.c \
23 enc/config.c \
24 enc/cost.c \
25 enc/filter.c \
26 enc/frame.c\
27 enc/histogram.c \
28 enc/iterator.c \
29 enc/layer.c \
30 enc/picture.c \
31 enc/quant.c \
32 enc/syntax.c \
33 enc/tree.c \
34 enc/token.c \
35 enc/vp8l.c \
36 enc/webpenc.c \
37 dsp/cpu.c \
38 dsp/cpu-features.c \
39 dsp/enc.c \
40 dsp/enc_neon.c \
41 dsp/enc_sse2.c \
42 dsp/lossless.c \
43 dsp/yuv.c \
44 utils/alpha_processing.c \
45 utils/bit_writer.c \
46 utils/color_cache.c \
47 utils/filters.c \
48 utils/huffman.c \
49 utils/huffman_encode.c \
50 utils/quant_levels.c \
51 utils/random.c \
52 utils/rescaler.c \
53 utils/thread.c \
54 utils/utils.c
55
56LOCAL_CFLAGS := -DANDROID -DWEBP_SWAP_16BIT_CSP
57
58LOCAL_C_INCLUDES += \
59 $(LOCAL_PATH)/enc \
60 $(LOCAL_PATH)/../include
61
62LOCAL_MODULE := libwebp-encode
63
64LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
65
66include $(BUILD_STATIC_LIBRARY)
67
68###############################################
69
70include $(CLEAR_VARS)
71LOCAL_SRC_FILES := \
72 dec/alpha.c \
73 dec/buffer.c \
74 dec/frame.c \
75 dec/idec.c \
76 dec/io.c \
77 dec/layer.c \
78 dec/quant.c \
79 dec/tree.c \
80 dec/vp8.c \
81 dec/vp8l.c \
82 dec/webp.c \
83 dsp/cpu.c \
84 dsp/cpu-features.c \
85 dsp/dec.c \
86 dsp/dec_neon.c \
87 dsp/dec_sse2.c \
88 dsp/lossless.c \
89 dsp/upsampling.c \
90 dsp/upsampling_neon.c \
91 dsp/upsampling_sse2.c \
92 dsp/yuv.c \
93 demux/demux.c \
94 utils/alpha_processing.c \
95 utils/bit_reader.c \
96 utils/color_cache.c \
97 utils/filters.c \
98 utils/huffman.c \
99 utils/quant_levels_dec.c \
100 utils/random.c \
101 utils/rescaler.c \
102 utils/thread.c \
103 utils/utils.c
104
105LOCAL_CFLAGS := -DANDROID -DWEBP_SWAP_16BIT_CSP
106
107LOCAL_C_INCLUDES += \
108 $(LOCAL_PATH)/dec \
109 $(LOCAL_PATH)/../include
110
111LOCAL_SDK_VERSION := 9
112
113LOCAL_MODULE := libwebp-decode
114
115LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
116
117include $(BUILD_STATIC_LIBRARY)