• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2020 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_binary_host {
21    name: "webRTC",
22    srcs: [
23        "adb_handler.cpp",
24        "audio_handler.cpp",
25        "bluetooth_handler.cpp",
26        "sensors_handler.cpp",
27        "sensors_simulator.cpp",
28        "location_handler.cpp",
29        "gpx_locations_handler.cpp",
30        "kml_locations_handler.cpp",
31        "client_server.cpp",
32        "connection_observer.cpp",
33        "cvd_video_frame_buffer.cpp",
34        "display_handler.cpp",
35        "kernel_log_events_handler.cpp",
36        "main.cpp",
37    ],
38    cflags: [
39        // libwebrtc headers need this
40        "-Wno-unused-parameter",
41        "-D_XOPEN_SOURCE",
42        "-DWEBRTC_POSIX",
43        "-DWEBRTC_LINUX",
44    ],
45    header_libs: [
46        "webrtc_signaling_headers",
47        "libdrm_headers",
48        "libwebrtc_absl_headers",
49        "libeigen",
50    ],
51    static_libs: [
52        "libaom",
53        "libcap",
54        "libcn-cbor",
55        "libcuttlefish_audio_connector",
56        "libcuttlefish_host_config",
57        "libcuttlefish_input_connector",
58        "libcuttlefish_security",
59        "libcuttlefish_utils",
60        "libcuttlefish_wayland_server",
61        "libft2.nodep",
62        "libteeui",
63        "libteeui_localization",
64        "libdrm",
65        "libevent",
66        "libffi",
67        "libgflags",
68        "libopus",
69        "libsrtp2",
70        "libvpx",
71        "libwayland_crosvm_gpu_display_extension_server_protocols",
72        "libwayland_extension_server_protocols",
73        "libwayland_server",
74        "libwebrtc",
75        "libcuttlefish_webrtc_device",
76        "libcuttlefish_webrtc_common",
77        "libwebsockets",
78        "libyuv",
79        "libcvd_gnss_grpc_proxy",
80        "liblocation",
81    ],
82    shared_libs: [
83        "android.hardware.keymaster@4.0",
84        "libbase",
85        "libcrypto",
86        "libcuttlefish_fs",
87        "libcuttlefish_kernel_log_monitor_utils",
88        "libjsoncpp",
89        "libfruit",
90        "libopus",
91        "libssl",
92        "libvpx",
93        "libyuv",
94        "libwebm_mkvmuxer",
95        "libprotobuf-cpp-full",
96        "libgrpc++_unsecure",
97        "libxml2",
98    ],
99    defaults: ["cuttlefish_buildhost_only"],
100}
101
102