Ying Wang | af0c566 | 2014-04-14 16:32:40 -0700 | [diff] [blame] | 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 := \ |
Vikas Arora | 33f74da | 2014-07-25 13:53:32 -0700 | [diff] [blame] | 20 | dsp/alpha_processing.c \ |
Vikas Arora | 8c09865 | 2015-01-28 14:08:58 -0800 | [diff] [blame] | 21 | dsp/alpha_processing_sse2.c \ |
Ying Wang | af0c566 | 2014-04-14 16:32:40 -0700 | [diff] [blame] | 22 | dsp/cpu-features.c \ |
James Zern | 9e80ee9 | 2015-03-17 18:54:21 -0700 | [diff] [blame] | 23 | dsp/cpu.c \ |
Ying Wang | af0c566 | 2014-04-14 16:32:40 -0700 | [diff] [blame] | 24 | dsp/enc.c \ |
Vikas Arora | 33f74da | 2014-07-25 13:53:32 -0700 | [diff] [blame] | 25 | dsp/enc_avx2.c \ |
| 26 | dsp/enc_mips32.c \ |
Ying Wang | af0c566 | 2014-04-14 16:32:40 -0700 | [diff] [blame] | 27 | dsp/enc_neon.c \ |
| 28 | dsp/enc_sse2.c \ |
| 29 | dsp/lossless.c \ |
Vikas Arora | 33f74da | 2014-07-25 13:53:32 -0700 | [diff] [blame] | 30 | dsp/lossless_mips32.c \ |
| 31 | dsp/lossless_neon.c \ |
| 32 | dsp/lossless_sse2.c \ |
Ying Wang | af0c566 | 2014-04-14 16:32:40 -0700 | [diff] [blame] | 33 | dsp/yuv.c \ |
James Zern | 9e80ee9 | 2015-03-17 18:54:21 -0700 | [diff] [blame] | 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 \ |
Ying Wang | af0c566 | 2014-04-14 16:32:40 -0700 | [diff] [blame] | 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 | |
| 66 | LOCAL_CFLAGS := -DANDROID -DWEBP_SWAP_16BIT_CSP |
| 67 | |
| 68 | LOCAL_C_INCLUDES += \ |
| 69 | $(LOCAL_PATH)/enc \ |
| 70 | $(LOCAL_PATH)/../include |
| 71 | |
| 72 | LOCAL_MODULE := libwebp-encode |
| 73 | |
| 74 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 75 | |
| 76 | include $(BUILD_STATIC_LIBRARY) |
| 77 | |
| 78 | ############################################### |
| 79 | |
| 80 | include $(CLEAR_VARS) |
| 81 | LOCAL_SRC_FILES := \ |
| 82 | dec/alpha.c \ |
| 83 | dec/buffer.c \ |
| 84 | dec/frame.c \ |
| 85 | dec/idec.c \ |
| 86 | dec/io.c \ |
Ying Wang | af0c566 | 2014-04-14 16:32:40 -0700 | [diff] [blame] | 87 | dec/quant.c \ |
| 88 | dec/tree.c \ |
| 89 | dec/vp8.c \ |
| 90 | dec/vp8l.c \ |
| 91 | dec/webp.c \ |
James Zern | 9e80ee9 | 2015-03-17 18:54:21 -0700 | [diff] [blame] | 92 | demux/demux.c \ |
Vikas Arora | 33f74da | 2014-07-25 13:53:32 -0700 | [diff] [blame] | 93 | dsp/alpha_processing.c \ |
Vikas Arora | 8c09865 | 2015-01-28 14:08:58 -0800 | [diff] [blame] | 94 | dsp/alpha_processing_sse2.c \ |
Ying Wang | af0c566 | 2014-04-14 16:32:40 -0700 | [diff] [blame] | 95 | dsp/cpu-features.c \ |
James Zern | 9e80ee9 | 2015-03-17 18:54:21 -0700 | [diff] [blame] | 96 | dsp/cpu.c \ |
Ying Wang | af0c566 | 2014-04-14 16:32:40 -0700 | [diff] [blame] | 97 | dsp/dec.c \ |
Vikas Arora | 33f74da | 2014-07-25 13:53:32 -0700 | [diff] [blame] | 98 | dsp/dec_clip_tables.c \ |
| 99 | dsp/dec_mips32.c \ |
Ying Wang | af0c566 | 2014-04-14 16:32:40 -0700 | [diff] [blame] | 100 | dsp/dec_neon.c \ |
| 101 | dsp/dec_sse2.c \ |
| 102 | dsp/lossless.c \ |
Vikas Arora | 33f74da | 2014-07-25 13:53:32 -0700 | [diff] [blame] | 103 | dsp/lossless_mips32.c \ |
| 104 | dsp/lossless_neon.c \ |
| 105 | dsp/lossless_sse2.c \ |
Ying Wang | af0c566 | 2014-04-14 16:32:40 -0700 | [diff] [blame] | 106 | dsp/upsampling.c \ |
| 107 | dsp/upsampling_neon.c \ |
| 108 | dsp/upsampling_sse2.c \ |
| 109 | dsp/yuv.c \ |
Vikas Arora | 33f74da | 2014-07-25 13:53:32 -0700 | [diff] [blame] | 110 | dsp/yuv_mips32.c \ |
| 111 | dsp/yuv_sse2.c \ |
Ying Wang | af0c566 | 2014-04-14 16:32:40 -0700 | [diff] [blame] | 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 | |
| 122 | LOCAL_CFLAGS := -DANDROID -DWEBP_SWAP_16BIT_CSP |
| 123 | |
| 124 | LOCAL_C_INCLUDES += \ |
| 125 | $(LOCAL_PATH)/dec \ |
| 126 | $(LOCAL_PATH)/../include |
| 127 | |
| 128 | LOCAL_SDK_VERSION := 9 |
| 129 | |
| 130 | LOCAL_MODULE := libwebp-decode |
| 131 | |
| 132 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 133 | |
| 134 | include $(BUILD_STATIC_LIBRARY) |