1# 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 dsp/alpha_processing.c \ 21 dsp/alpha_processing_sse2.c \ 22 dsp/cpu-features.c \ 23 dsp/cpu.c \ 24 dsp/enc.c \ 25 dsp/enc_avx2.c \ 26 dsp/enc_mips32.c \ 27 dsp/enc_neon.c \ 28 dsp/enc_sse2.c \ 29 dsp/lossless.c \ 30 dsp/lossless_mips32.c \ 31 dsp/lossless_neon.c \ 32 dsp/lossless_sse2.c \ 33 dsp/yuv.c \ 34 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 \ 55 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 \ 87 dec/quant.c \ 88 dec/tree.c \ 89 dec/vp8.c \ 90 dec/vp8l.c \ 91 dec/webp.c \ 92 demux/demux.c \ 93 dsp/alpha_processing.c \ 94 dsp/alpha_processing_sse2.c \ 95 dsp/cpu-features.c \ 96 dsp/cpu.c \ 97 dsp/dec.c \ 98 dsp/dec_clip_tables.c \ 99 dsp/dec_mips32.c \ 100 dsp/dec_neon.c \ 101 dsp/dec_sse2.c \ 102 dsp/lossless.c \ 103 dsp/lossless_mips32.c \ 104 dsp/lossless_neon.c \ 105 dsp/lossless_sse2.c \ 106 dsp/upsampling.c \ 107 dsp/upsampling_neon.c \ 108 dsp/upsampling_sse2.c \ 109 dsp/yuv.c \ 110 dsp/yuv_mips32.c \ 111 dsp/yuv_sse2.c \ 112 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) 135