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 dsp/alpha_processing.c \ 21 dsp/alpha_processing_mips_dsp_r2.c \ 22 dsp/alpha_processing_sse2.c \ 23 dsp/alpha_processing_sse41.c \ 24 dsp/argb.c \ 25 dsp/argb_mips_dsp_r2.c \ 26 dsp/argb_sse2.c \ 27 dsp/cost.c \ 28 dsp/cost_mips32.c \ 29 dsp/cost_mips_dsp_r2.c \ 30 dsp/cost_sse2.c \ 31 dsp/cpu-features.c \ 32 dsp/cpu.c \ 33 dsp/enc.c \ 34 dsp/enc_avx2.c \ 35 dsp/enc_mips32.c \ 36 dsp/enc_mips_dsp_r2.c \ 37 dsp/enc_neon.c \ 38 dsp/enc_sse2.c \ 39 dsp/enc_sse41.c \ 40 dsp/lossless_enc.c \ 41 dsp/lossless_enc_mips32.c \ 42 dsp/lossless_enc_mips_dsp_r2.c \ 43 dsp/lossless_enc_neon.c \ 44 dsp/lossless_enc_sse2.c \ 45 dsp/lossless_enc_sse41.c \ 46 enc/alpha.c \ 47 enc/analysis.c \ 48 enc/backward_references.c \ 49 enc/config.c \ 50 enc/cost.c \ 51 enc/delta_palettization.c \ 52 enc/filter.c \ 53 enc/frame.c \ 54 enc/histogram.c \ 55 enc/iterator.c \ 56 enc/near_lossless.c \ 57 enc/picture.c \ 58 enc/picture_csp.c \ 59 enc/picture_psnr.c \ 60 enc/picture_rescale.c \ 61 enc/picture_tools.c \ 62 enc/quant.c \ 63 enc/syntax.c \ 64 enc/token.c \ 65 enc/tree.c \ 66 enc/vp8l.c \ 67 enc/webpenc.c \ 68 utils/bit_reader.c \ 69 utils/bit_writer.c \ 70 utils/color_cache.c \ 71 utils/filters.c \ 72 utils/huffman.c \ 73 utils/huffman_encode.c \ 74 utils/quant_levels.c \ 75 utils/random.c \ 76 utils/rescaler.c \ 77 utils/thread.c \ 78 utils/utils.c 79 80 LOCAL_ARM_MODE := arm 81 LOCAL_CFLAGS := -O2 -DANDROID -DWEBP_SWAP_16BIT_CSP 82 83 LOCAL_C_INCLUDES += \ 84 $(LOCAL_PATH)/enc \ 85 $(LOCAL_PATH)/../include 86 87 LOCAL_MODULE := libwebp-encode 88 89 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 90 91 include $(BUILD_STATIC_LIBRARY) 92 93 ############################################### 94 95 include $(CLEAR_VARS) 96 LOCAL_SRC_FILES := \ 97 dec/alpha.c \ 98 dec/buffer.c \ 99 dec/frame.c \ 100 dec/idec.c \ 101 dec/io.c \ 102 dec/quant.c \ 103 dec/tree.c \ 104 dec/vp8.c \ 105 dec/vp8l.c \ 106 dec/webp.c \ 107 demux/demux.c \ 108 dsp/alpha_processing.c \ 109 dsp/alpha_processing_mips_dsp_r2.c \ 110 dsp/alpha_processing_sse2.c \ 111 dsp/alpha_processing_sse41.c \ 112 dsp/cpu-features.c \ 113 dsp/cpu.c \ 114 dsp/dec.c \ 115 dsp/dec_clip_tables.c \ 116 dsp/dec_mips32.c \ 117 dsp/dec_mips_dsp_r2.c \ 118 dsp/dec_neon.c \ 119 dsp/dec_sse2.c \ 120 dsp/dec_sse41.c \ 121 dsp/filters.c \ 122 dsp/filters_mips_dsp_r2.c \ 123 dsp/filters_sse2.c \ 124 dsp/lossless.c \ 125 dsp/lossless_mips_dsp_r2.c \ 126 dsp/lossless_neon.c \ 127 dsp/lossless_sse2.c \ 128 dsp/rescaler.c \ 129 dsp/rescaler_mips32.c \ 130 dsp/rescaler_mips_dsp_r2.c \ 131 dsp/rescaler_neon.c \ 132 dsp/rescaler_sse2.c \ 133 dsp/upsampling.c \ 134 dsp/upsampling_mips_dsp_r2.c \ 135 dsp/upsampling_neon.c \ 136 dsp/upsampling_sse2.c \ 137 dsp/yuv.c \ 138 dsp/yuv_mips32.c \ 139 dsp/yuv_mips_dsp_r2.c \ 140 dsp/yuv_sse2.c \ 141 utils/bit_reader.c \ 142 utils/color_cache.c \ 143 utils/filters.c \ 144 utils/huffman.c \ 145 utils/quant_levels_dec.c \ 146 utils/random.c \ 147 utils/rescaler.c \ 148 utils/thread.c \ 149 utils/utils.c 150 151 LOCAL_ARM_MODE := arm 152 LOCAL_CFLAGS := -O2 -DANDROID -DWEBP_SWAP_16BIT_CSP 153 154 LOCAL_C_INCLUDES += \ 155 $(LOCAL_PATH)/dec \ 156 $(LOCAL_PATH)/../include 157 158 LOCAL_SDK_VERSION := 9 159 160 LOCAL_MODULE := libwebp-decode 161 162 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 163 164 include $(BUILD_STATIC_LIBRARY) 165