blob: 694e4b7358c239ca637712d651db19ca23d8502f [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 := \
Vikas Arora33f74da2014-07-25 13:53:32 -070020 dsp/alpha_processing.c \
Vikas Arora8c098652015-01-28 14:08:58 -080021 dsp/alpha_processing_sse2.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070022 dsp/cpu-features.c \
James Zern9e80ee92015-03-17 18:54:21 -070023 dsp/cpu.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070024 dsp/enc.c \
Vikas Arora33f74da2014-07-25 13:53:32 -070025 dsp/enc_avx2.c \
26 dsp/enc_mips32.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070027 dsp/enc_neon.c \
28 dsp/enc_sse2.c \
29 dsp/lossless.c \
Vikas Arora33f74da2014-07-25 13:53:32 -070030 dsp/lossless_mips32.c \
31 dsp/lossless_neon.c \
32 dsp/lossless_sse2.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070033 dsp/yuv.c \
James Zern9e80ee92015-03-17 18:54:21 -070034 enc/alpha.c \
35 enc/analysis.c \
36 enc/backward_references.c \
37 enc/config.c \
38 enc/cost.c \
39 enc/filter.c \
40 enc/frame.c \
41 enc/histogram.c \
42 enc/iterator.c \
43 enc/picture.c \
44 enc/picture_csp.c \
45 enc/picture_psnr.c \
46 enc/picture_rescale.c \
47 enc/picture_tools.c \
48 enc/quant.c \
49 enc/syntax.c \
50 enc/token.c \
51 enc/tree.c \
52 enc/vp8l.c \
53 enc/webpenc.c \
54 utils/bit_reader.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070055 utils/bit_writer.c \
56 utils/color_cache.c \
57 utils/filters.c \
58 utils/huffman.c \
59 utils/huffman_encode.c \
60 utils/quant_levels.c \
61 utils/random.c \
62 utils/rescaler.c \
63 utils/thread.c \
64 utils/utils.c
65
66LOCAL_CFLAGS := -DANDROID -DWEBP_SWAP_16BIT_CSP
67
68LOCAL_C_INCLUDES += \
69 $(LOCAL_PATH)/enc \
70 $(LOCAL_PATH)/../include
71
72LOCAL_MODULE := libwebp-encode
73
74LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
75
76include $(BUILD_STATIC_LIBRARY)
77
78###############################################
79
80include $(CLEAR_VARS)
81LOCAL_SRC_FILES := \
82 dec/alpha.c \
83 dec/buffer.c \
84 dec/frame.c \
85 dec/idec.c \
86 dec/io.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070087 dec/quant.c \
88 dec/tree.c \
89 dec/vp8.c \
90 dec/vp8l.c \
91 dec/webp.c \
James Zern9e80ee92015-03-17 18:54:21 -070092 demux/demux.c \
Vikas Arora33f74da2014-07-25 13:53:32 -070093 dsp/alpha_processing.c \
Vikas Arora8c098652015-01-28 14:08:58 -080094 dsp/alpha_processing_sse2.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070095 dsp/cpu-features.c \
James Zern9e80ee92015-03-17 18:54:21 -070096 dsp/cpu.c \
Ying Wangaf0c5662014-04-14 16:32:40 -070097 dsp/dec.c \
Vikas Arora33f74da2014-07-25 13:53:32 -070098 dsp/dec_clip_tables.c \
99 dsp/dec_mips32.c \
Ying Wangaf0c5662014-04-14 16:32:40 -0700100 dsp/dec_neon.c \
101 dsp/dec_sse2.c \
102 dsp/lossless.c \
Vikas Arora33f74da2014-07-25 13:53:32 -0700103 dsp/lossless_mips32.c \
104 dsp/lossless_neon.c \
105 dsp/lossless_sse2.c \
Ying Wangaf0c5662014-04-14 16:32:40 -0700106 dsp/upsampling.c \
107 dsp/upsampling_neon.c \
108 dsp/upsampling_sse2.c \
109 dsp/yuv.c \
Vikas Arora33f74da2014-07-25 13:53:32 -0700110 dsp/yuv_mips32.c \
111 dsp/yuv_sse2.c \
Ying Wangaf0c5662014-04-14 16:32:40 -0700112 utils/bit_reader.c \
113 utils/color_cache.c \
114 utils/filters.c \
115 utils/huffman.c \
116 utils/quant_levels_dec.c \
117 utils/random.c \
118 utils/rescaler.c \
119 utils/thread.c \
120 utils/utils.c
121
122LOCAL_CFLAGS := -DANDROID -DWEBP_SWAP_16BIT_CSP
123
124LOCAL_C_INCLUDES += \
125 $(LOCAL_PATH)/dec \
126 $(LOCAL_PATH)/../include
127
128LOCAL_SDK_VERSION := 9
129
130LOCAL_MODULE := libwebp-decode
131
132LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
133
134include $(BUILD_STATIC_LIBRARY)