Home | History | Annotate | Download | only in webp
      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 
     17 cc_library_static {
     18     name: "webp-headers",
     19     host_supported: true,
     20     export_include_dirs: ["include"],
     21     sdk_version: "9",
     22     target: {
     23         windows: {
     24             enabled: true,
     25         },
     26     },
     27 }
     28 
     29 //##############################################
     30 
     31 cc_library_static {
     32     name: "libwebp-encode",
     33     host_supported: true,
     34     srcs: [
     35         "src/dsp/alpha_processing.c",
     36         "src/dsp/alpha_processing_mips_dsp_r2.c",
     37         "src/dsp/alpha_processing_neon.c",
     38         "src/dsp/alpha_processing_sse2.c",
     39         "src/dsp/alpha_processing_sse41.c",
     40         "src/dsp/cost.c",
     41         "src/dsp/cost_mips32.c",
     42         "src/dsp/cost_mips_dsp_r2.c",
     43         "src/dsp/cost_neon.c",
     44         "src/dsp/cost_sse2.c",
     45         "src/dsp/cpu.c",
     46         "src/dsp/enc.c",
     47         "src/dsp/enc_mips32.c",
     48         "src/dsp/enc_mips_dsp_r2.c",
     49         "src/dsp/enc_msa.c",
     50         "src/dsp/enc_neon.c",
     51         "src/dsp/enc_sse2.c",
     52         "src/dsp/enc_sse41.c",
     53         "src/dsp/lossless_enc.c",
     54         "src/dsp/lossless_enc_mips32.c",
     55         "src/dsp/lossless_enc_mips_dsp_r2.c",
     56         "src/dsp/lossless_enc_msa.c",
     57         "src/dsp/lossless_enc_neon.c",
     58         "src/dsp/lossless_enc_sse2.c",
     59         "src/dsp/lossless_enc_sse41.c",
     60         "src/dsp/ssim.c",
     61         "src/dsp/ssim_sse2.c",
     62         "src/enc/alpha_enc.c",
     63         "src/enc/analysis_enc.c",
     64         "src/enc/backward_references_cost_enc.c",
     65         "src/enc/backward_references_enc.c",
     66         "src/enc/config_enc.c",
     67         "src/enc/cost_enc.c",
     68         "src/enc/filter_enc.c",
     69         "src/enc/frame_enc.c",
     70         "src/enc/histogram_enc.c",
     71         "src/enc/iterator_enc.c",
     72         "src/enc/near_lossless_enc.c",
     73         "src/enc/picture_csp_enc.c",
     74         "src/enc/picture_enc.c",
     75         "src/enc/picture_psnr_enc.c",
     76         "src/enc/picture_rescale_enc.c",
     77         "src/enc/picture_tools_enc.c",
     78         "src/enc/predictor_enc.c",
     79         "src/enc/quant_enc.c",
     80         "src/enc/syntax_enc.c",
     81         "src/enc/token_enc.c",
     82         "src/enc/tree_enc.c",
     83         "src/enc/vp8l_enc.c",
     84         "src/enc/webp_enc.c",
     85         "src/mux/anim_encode.c",
     86         "src/mux/muxedit.c",
     87         "src/mux/muxinternal.c",
     88         "src/mux/muxread.c",
     89         "src/utils/bit_reader_utils.c",
     90         "src/utils/bit_writer_utils.c",
     91         "src/utils/color_cache_utils.c",
     92         "src/utils/filters_utils.c",
     93         "src/utils/huffman_encode_utils.c",
     94         "src/utils/huffman_utils.c",
     95         "src/utils/quant_levels_utils.c",
     96         "src/utils/random_utils.c",
     97         "src/utils/rescaler_utils.c",
     98         "src/utils/thread_utils.c",
     99         "src/utils/utils.c",
    100     ],
    101 
    102     arch: {
    103         arm: {
    104             instruction_set: "arm",
    105         },
    106     },
    107 
    108     cflags: [
    109         "-O2",
    110         "-DANDROID",
    111         "-DWEBP_SWAP_16BIT_CSP",
    112         "-Wall",
    113         "-Werror",
    114     ],
    115 
    116     local_include_dirs: ["."],
    117     static_libs: ["webp-headers"],
    118     export_static_lib_headers: ["webp-headers"],
    119 
    120     sdk_version: "9",
    121 
    122     target: {
    123         windows: {
    124             enabled: true,
    125         },
    126     },
    127 }
    128 
    129 //##############################################
    130 
    131 cc_library_static {
    132     name: "libwebp-decode",
    133     host_supported: true,
    134     srcs: [
    135         "src/dec/alpha_dec.c",
    136         "src/dec/buffer_dec.c",
    137         "src/dec/frame_dec.c",
    138         "src/dec/idec_dec.c",
    139         "src/dec/io_dec.c",
    140         "src/dec/quant_dec.c",
    141         "src/dec/tree_dec.c",
    142         "src/dec/vp8_dec.c",
    143         "src/dec/vp8l_dec.c",
    144         "src/dec/webp_dec.c",
    145         "src/demux/demux.c",
    146         "src/dsp/alpha_processing.c",
    147         "src/dsp/alpha_processing_mips_dsp_r2.c",
    148         "src/dsp/alpha_processing_sse2.c",
    149         "src/dsp/alpha_processing_sse41.c",
    150         "src/dsp/cpu.c",
    151         "src/dsp/dec.c",
    152         "src/dsp/dec_clip_tables.c",
    153         "src/dsp/dec_mips32.c",
    154         "src/dsp/dec_mips_dsp_r2.c",
    155         "src/dsp/dec_msa.c",
    156         "src/dsp/dec_neon.c",
    157         "src/dsp/dec_sse2.c",
    158         "src/dsp/dec_sse41.c",
    159         "src/dsp/filters.c",
    160         "src/dsp/filters_mips_dsp_r2.c",
    161         "src/dsp/filters_msa.c",
    162         "src/dsp/filters_neon.c",
    163         "src/dsp/filters_sse2.c",
    164         "src/dsp/lossless.c",
    165         "src/dsp/lossless_mips_dsp_r2.c",
    166         "src/dsp/lossless_msa.c",
    167         "src/dsp/lossless_neon.c",
    168         "src/dsp/lossless_sse2.c",
    169         "src/dsp/rescaler.c",
    170         "src/dsp/rescaler_mips32.c",
    171         "src/dsp/rescaler_mips_dsp_r2.c",
    172         "src/dsp/rescaler_msa.c",
    173         "src/dsp/rescaler_neon.c",
    174         "src/dsp/rescaler_sse2.c",
    175         "src/dsp/upsampling.c",
    176         "src/dsp/upsampling_mips_dsp_r2.c",
    177         "src/dsp/upsampling_msa.c",
    178         "src/dsp/upsampling_neon.c",
    179         "src/dsp/upsampling_sse2.c",
    180         "src/dsp/upsampling_sse41.c",
    181         "src/dsp/yuv.c",
    182         "src/dsp/yuv_mips32.c",
    183         "src/dsp/yuv_mips_dsp_r2.c",
    184         "src/dsp/yuv_neon.c",
    185         "src/dsp/yuv_sse2.c",
    186         "src/dsp/yuv_sse41.c",
    187         "src/utils/bit_reader_utils.c",
    188         "src/utils/color_cache_utils.c",
    189         "src/utils/filters_utils.c",
    190         "src/utils/huffman_utils.c",
    191         "src/utils/quant_levels_dec_utils.c",
    192         "src/utils/random_utils.c",
    193         "src/utils/rescaler_utils.c",
    194         "src/utils/thread_utils.c",
    195         "src/utils/utils.c",
    196     ],
    197 
    198     arch: {
    199         arm: {
    200             instruction_set: "arm",
    201         },
    202     },
    203 
    204     cflags: [
    205         "-O2",
    206         "-DANDROID",
    207         "-DWEBP_SWAP_16BIT_CSP",
    208         "-Wall",
    209         "-Werror",
    210     ],
    211 
    212     local_include_dirs: ["."],
    213     static_libs: ["webp-headers"],
    214     export_static_lib_headers: ["webp-headers"],
    215 
    216     sdk_version: "9",
    217 
    218     target: {
    219         windows: {
    220             enabled: true,
    221         },
    222     },
    223 }
    224