blob: 90303cae03cb5c8ba31c61267fbcf275d095dc2f [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 \
Ying Wangaf0c5662014-04-14 16:32:40 -070029 enc/picture.c \
Vikas Arora33f74da2014-07-25 13:53:32 -070030 enc/picture_csp.c \
31 enc/picture_psnr.c \
32 enc/picture_rescale.c \
33 enc/picture_tools.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070034 enc/quant.c \
35 enc/syntax.c \
36 enc/tree.c \
37 enc/token.c \
38 enc/vp8l.c \
39 enc/webpenc.c \
Vikas Arora33f74da2014-07-25 13:53:32 -070040 dsp/alpha_processing.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070041 dsp/cpu.c \
42 dsp/cpu-features.c \
43 dsp/enc.c \
Vikas Arora33f74da2014-07-25 13:53:32 -070044 dsp/enc_avx2.c \
45 dsp/enc_mips32.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070046 dsp/enc_neon.c \
47 dsp/enc_sse2.c \
48 dsp/lossless.c \
Vikas Arora33f74da2014-07-25 13:53:32 -070049 dsp/lossless_mips32.c \
50 dsp/lossless_neon.c \
51 dsp/lossless_sse2.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070052 dsp/yuv.c \
Vikas Arora33f74da2014-07-25 13:53:32 -070053 dsp/yuv_sse2.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070054 utils/bit_writer.c \
55 utils/color_cache.c \
56 utils/filters.c \
57 utils/huffman.c \
58 utils/huffman_encode.c \
59 utils/quant_levels.c \
60 utils/random.c \
61 utils/rescaler.c \
62 utils/thread.c \
63 utils/utils.c
64
65LOCAL_CFLAGS := -DANDROID -DWEBP_SWAP_16BIT_CSP
66
67LOCAL_C_INCLUDES += \
68 $(LOCAL_PATH)/enc \
69 $(LOCAL_PATH)/../include
70
71LOCAL_MODULE := libwebp-encode
72
73LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
74
75include $(BUILD_STATIC_LIBRARY)
76
77###############################################
78
79include $(CLEAR_VARS)
80LOCAL_SRC_FILES := \
81 dec/alpha.c \
82 dec/buffer.c \
83 dec/frame.c \
84 dec/idec.c \
85 dec/io.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070086 dec/quant.c \
87 dec/tree.c \
88 dec/vp8.c \
89 dec/vp8l.c \
90 dec/webp.c \
Vikas Arora33f74da2014-07-25 13:53:32 -070091 dsp/alpha_processing.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070092 dsp/cpu.c \
93 dsp/cpu-features.c \
94 dsp/dec.c \
Vikas Arora33f74da2014-07-25 13:53:32 -070095 dsp/dec_clip_tables.c \
96 dsp/dec_mips32.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070097 dsp/dec_neon.c \
98 dsp/dec_sse2.c \
99 dsp/lossless.c \
Vikas Arora33f74da2014-07-25 13:53:32 -0700100 dsp/lossless_mips32.c \
101 dsp/lossless_neon.c \
102 dsp/lossless_sse2.c \
Ying Wangaf0c5662014-04-14 16:32:40 -0700103 dsp/upsampling.c \
104 dsp/upsampling_neon.c \
105 dsp/upsampling_sse2.c \
106 dsp/yuv.c \
Vikas Arora33f74da2014-07-25 13:53:32 -0700107 dsp/yuv_mips32.c \
108 dsp/yuv_sse2.c \
Ying Wangaf0c5662014-04-14 16:32:40 -0700109 demux/demux.c \
Ying Wangaf0c5662014-04-14 16:32:40 -0700110 utils/bit_reader.c \
111 utils/color_cache.c \
112 utils/filters.c \
113 utils/huffman.c \
114 utils/quant_levels_dec.c \
115 utils/random.c \
116 utils/rescaler.c \
117 utils/thread.c \
118 utils/utils.c
119
120LOCAL_CFLAGS := -DANDROID -DWEBP_SWAP_16BIT_CSP
121
122LOCAL_C_INCLUDES += \
123 $(LOCAL_PATH)/dec \
124 $(LOCAL_PATH)/../include
125
126LOCAL_SDK_VERSION := 9
127
128LOCAL_MODULE := libwebp-decode
129
130LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
131
132include $(BUILD_STATIC_LIBRARY)