• 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_library_static {
21    name: "libcuttlefish_webrtc",
22    srcs: [
23        "lib/audio_device.cpp",
24        "lib/audio_track_source_impl.cpp",
25        "lib/client_handler.cpp",
26        "lib/keyboard.cpp",
27        "lib/local_recorder.cpp",
28        "lib/port_range_socket_factory.cpp",
29        "lib/streamer.cpp",
30        "lib/utils.cpp",
31        "lib/video_track_source_impl.cpp",
32        "lib/vp8only_encoder_factory.cpp",
33        "lib/ws_connection.cpp",
34    ],
35    cflags: [
36        // libwebrtc headers need this
37        "-Wno-unused-parameter",
38        "-DWEBRTC_POSIX",
39        "-DWEBRTC_LINUX",
40    ],
41    header_libs: [
42        "webrtc_signaling_headers",
43        "libwebrtc_absl_headers",
44    ],
45    static_libs: [
46        "libsrtp2",
47        "libcuttlefish_host_config",
48        "libcuttlefish_screen_connector",
49        "libcuttlefish_wayland_server",
50        "libgflags",
51        "libdrm",
52        "libffi",
53        "libwayland_server",
54        "libwayland_extension_server_protocols",
55        "libwebsockets",
56        "libcap",
57        "libcuttlefish_utils",
58        "libwebrtc",
59        "libwebrtc_absl_base",
60        "libwebrtc_absl_types",
61    ],
62    shared_libs: [
63        "libssl",
64        "libbase",
65        "libcuttlefish_fs",
66        "libjsoncpp",
67        "libwebm_mkvmuxer",
68    ],
69    defaults: ["cuttlefish_buildhost_only"],
70}
71
72cc_binary_host {
73    name: "webRTC",
74    srcs: [
75        "adb_handler.cpp",
76        "audio_handler.cpp",
77        "bluetooth_handler.cpp",
78        "connection_observer.cpp",
79        "cvd_video_frame_buffer.cpp",
80        "display_handler.cpp",
81        "kernel_log_events_handler.cpp",
82        "main.cpp",
83    ],
84    header_libs: [
85        "webrtc_signaling_headers",
86        "libwebrtc_absl_headers",
87        "libcuttlefish_confui_host_headers",
88    ],
89    static_libs: [
90        "libwebrtc_absl_base",
91        "libwebrtc_absl_container",
92        "libwebrtc_absl_debugging",
93        "libwebrtc_absl_flags",
94        "libwebrtc_absl_hash",
95        "libwebrtc_absl_numeric",
96        "libwebrtc_absl_status",
97        "libwebrtc_absl_strings",
98        "libwebrtc_absl_synchronization",
99        "libwebrtc_absl_time",
100        "libwebrtc_absl_types",
101        "libaom",
102        "libcap",
103        "libcuttlefish_audio_connector",
104        "libcuttlefish_host_config",
105        "libcuttlefish_screen_connector",
106        "libcuttlefish_utils",
107        "libcuttlefish_wayland_server",
108        "libcuttlefish_confui",
109        "libcuttlefish_confui_host",
110        "libft2.nodep",
111        "libteeui",
112        "libteeui_localization",
113        "libdrm",
114        "libevent",
115        "libffi",
116        "libgflags",
117        "libopus",
118        "libsrtp2",
119        "libvpx",
120        "libwayland_extension_server_protocols",
121        "libwayland_server",
122        "libwebrtc",
123        "libcuttlefish_webrtc",
124        "libwebsockets",
125        "libyuv",
126    ],
127    shared_libs: [
128        "libbase",
129        "libcrypto",
130        "libcuttlefish_fs",
131        "libcuttlefish_kernel_log_monitor_utils",
132        "libjsoncpp",
133        "libopus",
134        "libssl",
135        "libvpx",
136        "libyuv",
137        "libwebm_mkvmuxer",
138    ],
139    defaults: ["cuttlefish_buildhost_only"],
140}
141