Home | History | Annotate | Download | only in src
      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 //##############################################
     16 cc_library_static {
     17     name: "libwebp-encode",
     18     srcs: [
     19         "dsp/alpha_processing.c",
     20         "dsp/alpha_processing_mips_dsp_r2.c",
     21         "dsp/alpha_processing_neon.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_msa.c",
     38         "dsp/enc_neon.c",
     39         "dsp/enc_sse2.c",
     40         "dsp/enc_sse41.c",
     41         "dsp/lossless_enc.c",
     42         "dsp/lossless_enc_mips32.c",
     43         "dsp/lossless_enc_mips_dsp_r2.c",
     44         "dsp/lossless_enc_msa.c",
     45         "dsp/lossless_enc_neon.c",
     46         "dsp/lossless_enc_sse2.c",
     47         "dsp/lossless_enc_sse41.c",
     48         "enc/alpha_enc.c",
     49         "enc/analysis_enc.c",
     50         "enc/backward_references_enc.c",
     51         "enc/config_enc.c",
     52         "enc/cost_enc.c",
     53         "enc/delta_palettization_enc.c",
     54         "enc/filter_enc.c",
     55         "enc/frame_enc.c",
     56         "enc/histogram_enc.c",
     57         "enc/iterator_enc.c",
     58         "enc/near_lossless_enc.c",
     59         "enc/picture_csp_enc.c",
     60         "enc/picture_enc.c",
     61         "enc/picture_psnr_enc.c",
     62         "enc/picture_rescale_enc.c",
     63         "enc/picture_tools_enc.c",
     64         "enc/predictor_enc.c",
     65         "enc/quant_enc.c",
     66         "enc/syntax_enc.c",
     67         "enc/token_enc.c",
     68         "enc/tree_enc.c",
     69         "enc/vp8l_enc.c",
     70         "enc/webp_enc.c",
     71         "mux/anim_encode.c",
     72         "mux/muxedit.c",
     73         "mux/muxinternal.c",
     74         "mux/muxread.c",
     75         "utils/bit_reader_utils.c",
     76         "utils/bit_writer_utils.c",
     77         "utils/color_cache_utils.c",
     78         "utils/filters_utils.c",
     79         "utils/huffman_encode_utils.c",
     80         "utils/huffman_utils.c",
     81         "utils/quant_levels_utils.c",
     82         "utils/random_utils.c",
     83         "utils/rescaler_utils.c",
     84         "utils/thread_utils.c",
     85         "utils/utils.c",
     86     ],
     87 
     88     arch: {
     89         arm: {
     90             instruction_set: "arm",
     91         },
     92     },
     93     cflags: [
     94         "-O2",
     95         "-DANDROID",
     96         "-DWEBP_SWAP_16BIT_CSP",
     97     ],
     98 
     99     local_include_dirs: ["enc"],
    100     static_libs: ["webp-headers"],
    101     export_static_lib_headers: ["webp-headers"],
    102 }
    103 
    104 //##############################################
    105 
    106 cc_library_static {
    107     name: "libwebp-decode",
    108     srcs: [
    109         "dec/alpha_dec.c",
    110         "dec/buffer_dec.c",
    111         "dec/frame_dec.c",
    112         "dec/idec_dec.c",
    113         "dec/io_dec.c",
    114         "dec/quant_dec.c",
    115         "dec/tree_dec.c",
    116         "dec/vp8_dec.c",
    117         "dec/vp8l_dec.c",
    118         "dec/webp_dec.c",
    119         "demux/demux.c",
    120         "dsp/alpha_processing.c",
    121         "dsp/alpha_processing_mips_dsp_r2.c",
    122         "dsp/alpha_processing_sse2.c",
    123         "dsp/alpha_processing_sse41.c",
    124         "dsp/cpu-features.c",
    125         "dsp/cpu.c",
    126         "dsp/dec.c",
    127         "dsp/dec_clip_tables.c",
    128         "dsp/dec_mips32.c",
    129         "dsp/dec_mips_dsp_r2.c",
    130         "dsp/dec_msa.c",
    131         "dsp/dec_neon.c",
    132         "dsp/dec_sse2.c",
    133         "dsp/dec_sse41.c",
    134         "dsp/filters.c",
    135         "dsp/filters_mips_dsp_r2.c",
    136         "dsp/filters_msa.c",
    137         "dsp/filters_neon.c",
    138         "dsp/filters_sse2.c",
    139         "dsp/lossless.c",
    140         "dsp/lossless_mips_dsp_r2.c",
    141         "dsp/lossless_msa.c",
    142         "dsp/lossless_neon.c",
    143         "dsp/lossless_sse2.c",
    144         "dsp/rescaler.c",
    145         "dsp/rescaler_mips32.c",
    146         "dsp/rescaler_mips_dsp_r2.c",
    147         "dsp/rescaler_msa.c",
    148         "dsp/rescaler_neon.c",
    149         "dsp/rescaler_sse2.c",
    150         "dsp/upsampling.c",
    151         "dsp/upsampling_mips_dsp_r2.c",
    152         "dsp/upsampling_msa.c",
    153         "dsp/upsampling_neon.c",
    154         "dsp/upsampling_sse2.c",
    155         "dsp/yuv.c",
    156         "dsp/yuv_mips32.c",
    157         "dsp/yuv_mips_dsp_r2.c",
    158         "dsp/yuv_sse2.c",
    159         "utils/bit_reader_utils.c",
    160         "utils/color_cache_utils.c",
    161         "utils/filters_utils.c",
    162         "utils/huffman_utils.c",
    163         "utils/quant_levels_dec_utils.c",
    164         "utils/random_utils.c",
    165         "utils/rescaler_utils.c",
    166         "utils/thread_utils.c",
    167         "utils/utils.c",
    168     ],
    169 
    170     arch: {
    171         arm: {
    172             instruction_set: "arm",
    173         },
    174     },
    175     cflags: [
    176         "-O2",
    177         "-DANDROID",
    178         "-DWEBP_SWAP_16BIT_CSP",
    179     ],
    180 
    181     local_include_dirs: ["dec"],
    182     static_libs: ["webp-headers"],
    183     export_static_lib_headers: ["webp-headers"],
    184 
    185     sdk_version: "9",
    186 }
    187