Home | History | Annotate | Download | only in speex
      1 //
      2 // Copyright (C) 2010 The Android Open Source Project
      3 //
      4 // Licensed under the Apache License, Version 2.0 (the "License");
      5 // you may not use this file except in compliance with the License.
      6 // You may obtain a copy of the License at
      7 //
      8 //      http://www.apache.org/licenses/LICENSE-2.0
      9 //
     10 // Unless required by applicable law or agreed to in writing, software
     11 // distributed under the License is distributed on an "AS IS" BASIS,
     12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 // See the License for the specific language governing permissions and
     14 // limitations under the License.
     15 //
     16 
     17 cc_library_static {
     18     name: "libspeex",
     19 
     20     arch: {
     21         arm: {
     22             instruction_set: "arm",
     23         },
     24     },
     25 
     26     srcs: [
     27         "libspeex/mdf.c",
     28         "libspeex/preprocess.c",
     29         "libspeex/filterbank.c",
     30         "libspeex/fftwrap.c",
     31         "libspeex/smallft.c",
     32     ],
     33 
     34     cflags: [
     35         "-DEXPORT=",
     36         "-DFLOATING_POINT",
     37         "-DUSE_SMALLFT",
     38         "-DVAR_ARRAYS",
     39         "-O3",
     40         "-fstrict-aliasing",
     41         "-fprefetch-loop-arrays",
     42         "-Wno-unused-parameter",
     43     ],
     44 
     45     local_include_dirs: ["include"],
     46     export_include_dirs: ["include"],
     47 }
     48 
     49 cc_library_shared {
     50     name: "libspeexresampler",
     51 
     52     vendor_available: true,
     53 
     54     arch: {
     55         arm: {
     56             instruction_set: "arm",
     57 
     58             armv7_a_neon: {
     59                 cflags: ["-D_USE_NEON"],
     60             },
     61         },
     62     },
     63     srcs: ["libspeex/resample.c"],
     64 
     65     cflags: [
     66         "-DEXPORT=",
     67         "-DFIXED_POINT",
     68         "-DRESAMPLE_FORCE_FULL_SINC_TABLE",
     69         "-O3",
     70         "-fstrict-aliasing",
     71         "-fprefetch-loop-arrays",
     72     ],
     73 
     74     local_include_dirs: ["include"],
     75     export_include_dirs: ["include"],
     76 }
     77 
     78 cc_library_static {
     79     name: "libspeex_googletts",
     80 
     81     arch: {
     82         arm: {
     83             instruction_set: "arm",
     84         },
     85     },
     86 
     87     srcs: [
     88         "libspeex/bits.c",
     89         "libspeex/cb_search.c",
     90         "libspeex/exc_10_16_table.c",
     91         "libspeex/exc_10_32_table.c",
     92         "libspeex/exc_20_32_table.c",
     93         "libspeex/exc_5_256_table.c",
     94         "libspeex/exc_5_64_table.c",
     95         "libspeex/exc_8_128_table.c",
     96         "libspeex/fftwrap.c",
     97         "libspeex/filterbank.c",
     98         "libspeex/filters.c",
     99         "libspeex/gain_table.c",
    100         "libspeex/gain_table_lbr.c",
    101         "libspeex/hexc_10_32_table.c",
    102         "libspeex/hexc_table.c",
    103         "libspeex/high_lsp_tables.c",
    104         "libspeex/kiss_fft.c",
    105         "libspeex/kiss_fftr.c",
    106         "libspeex/lpc.c",
    107         "libspeex/lsp.c",
    108         "libspeex/lsp_tables_nb.c",
    109         "libspeex/ltp.c",
    110         "libspeex/mdf.c",
    111         "libspeex/modes.c",
    112         "libspeex/modes_wb.c",
    113         "libspeex/nb_celp.c",
    114         "libspeex/preprocess.c",
    115         "libspeex/quant_lsp.c",
    116         "libspeex/sb_celp.c",
    117         "libspeex/smallft.c",
    118         "libspeex/speex.c",
    119         "libspeex/speex_callbacks.c",
    120         "libspeex/speex_header.c",
    121         "libspeex/vbr.c",
    122         "libspeex/vq.c",
    123         "libspeex/window.c",
    124         "libspeex/buffer.c",
    125         "libspeex/resample.c",
    126         "libspeex/scal.c",
    127     ],
    128 
    129     sdk_version: "14",
    130 
    131     cflags: [
    132         "-DEXPORT=",
    133         "-DFLOATING_POINT",
    134         "-DUSE_SMALLFT",
    135         "-DVAR_ARRAYS",
    136 
    137         "-O3",
    138         "-fstrict-aliasing",
    139         "-fprefetch-loop-arrays",
    140         "-Wno-unused-parameter",
    141         "-Werror",
    142     ],
    143 
    144     local_include_dirs: ["include"],
    145     export_include_dirs: ["include"],
    146 }
    147