1//
2// Copyright (C) 2022 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
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_library {
21    name: "libcuttlefish_webrtc_common",
22    srcs: [
23        "audio_device.cpp",
24        "connection_controller.cpp",
25        "peer_connection_utils.cpp",
26        "port_range_socket_factory.cpp",
27        "utils.cpp",
28        "vp8only_encoder_factory.cpp",
29    ],
30    cflags: [
31        // libwebrtc headers need this
32        "-DWEBRTC_LINUX",
33        "-DWEBRTC_POSIX",
34        "-D_XOPEN_SOURCE",
35        "-Wno-unused-parameter",
36    ],
37    static_libs: [
38        "libabsl_host",
39        "libevent",
40        "libopus",
41        "libsrtp2",
42        "libvpx",
43        "libwebrtc",
44        "libyuv",
45    ],
46    shared_libs: [
47        "libbase",
48        "libcrypto",
49        "libcuttlefish_utils",
50        "libjsoncpp",
51        "libssl",
52    ],
53    defaults: ["cuttlefish_buildhost_only"],
54}
55