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 15 LOCAL_PATH:= $(call my-dir) 16 17 ############################################### 18 include $(CLEAR_VARS) 19 LOCAL_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/picture.c \ 30 enc/picture_csp.c \ 31 enc/picture_psnr.c \ 32 enc/picture_rescale.c \ 33 enc/picture_tools.c \ 34 enc/quant.c \ 35 enc/syntax.c \ 36 enc/tree.c \ 37 enc/token.c \ 38 enc/vp8l.c \ 39 enc/webpenc.c \ 40 dsp/alpha_processing.c \ 41 dsp/cpu.c \ 42 dsp/cpu-features.c \ 43 dsp/enc.c \ 44 dsp/enc_avx2.c \ 45 dsp/enc_mips32.c \ 46 dsp/enc_neon.c \ 47 dsp/enc_sse2.c \ 48 dsp/lossless.c \ 49 dsp/lossless_mips32.c \ 50 dsp/lossless_neon.c \ 51 dsp/lossless_sse2.c \ 52 dsp/yuv.c \ 53 dsp/yuv_sse2.c \ 54 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 65 LOCAL_CFLAGS := -DANDROID -DWEBP_SWAP_16BIT_CSP 66 67 LOCAL_C_INCLUDES += \ 68 $(LOCAL_PATH)/enc \ 69 $(LOCAL_PATH)/../include 70 71 LOCAL_MODULE := libwebp-encode 72 73 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 74 75 include $(BUILD_STATIC_LIBRARY) 76 77 ############################################### 78 79 include $(CLEAR_VARS) 80 LOCAL_SRC_FILES := \ 81 dec/alpha.c \ 82 dec/buffer.c \ 83 dec/frame.c \ 84 dec/idec.c \ 85 dec/io.c \ 86 dec/quant.c \ 87 dec/tree.c \ 88 dec/vp8.c \ 89 dec/vp8l.c \ 90 dec/webp.c \ 91 dsp/alpha_processing.c \ 92 dsp/cpu.c \ 93 dsp/cpu-features.c \ 94 dsp/dec.c \ 95 dsp/dec_clip_tables.c \ 96 dsp/dec_mips32.c \ 97 dsp/dec_neon.c \ 98 dsp/dec_sse2.c \ 99 dsp/lossless.c \ 100 dsp/lossless_mips32.c \ 101 dsp/lossless_neon.c \ 102 dsp/lossless_sse2.c \ 103 dsp/upsampling.c \ 104 dsp/upsampling_neon.c \ 105 dsp/upsampling_sse2.c \ 106 dsp/yuv.c \ 107 dsp/yuv_mips32.c \ 108 dsp/yuv_sse2.c \ 109 demux/demux.c \ 110 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 120 LOCAL_CFLAGS := -DANDROID -DWEBP_SWAP_16BIT_CSP 121 122 LOCAL_C_INCLUDES += \ 123 $(LOCAL_PATH)/dec \ 124 $(LOCAL_PATH)/../include 125 126 LOCAL_SDK_VERSION := 9 127 128 LOCAL_MODULE := libwebp-decode 129 130 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 131 132 include $(BUILD_STATIC_LIBRARY) 133