1// Copyright 2010 Google Inc. All rights reserved.
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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19cc_library_shared {
20    name: "librtp_jni",
21    srcs: [
22        "AudioCodec.cpp",
23        "AudioGroup.cpp",
24        "EchoSuppressor.cpp",
25        "RtpStream.cpp",
26        "util.cpp",
27        "rtp_jni.cpp",
28
29        "AmrCodec.cpp",
30        "G711Codec.cpp",
31        "GsmCodec.cpp",
32    ],
33    header_libs: [
34        "libmedia_headers",
35        "libmediametrics_headers",
36    ],
37
38    shared_libs: [
39        "libandroid_runtime",
40        "libaudioclient",
41        "libaudiofoundation",
42        "libbinder",
43        "libcutils",
44        "liblog",
45        "libnativehelper",
46        "libpermission",
47        "libstagefright_amrnb_common",
48        "libutils",
49    ],
50    static_libs: [
51        "libgsm",
52        "libpermission",
53        "libstagefright_amrnbdec",
54        "libstagefright_amrnbenc",
55    ],
56    cflags: [
57        "-fvisibility=hidden",
58        "-Wall",
59        "-Wextra",
60        //getInput() is deprecated but we want to continue to track the usage of it elsewhere
61        "-Wno-deprecated-declarations",
62        "-Werror",
63    ],
64}
65