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 "location_handler.cpp", 27 "gpx_locations_handler.cpp", 28 "kml_locations_handler.cpp", 29 "client_server.cpp", 30 "connection_observer.cpp", 31 "cvd_video_frame_buffer.cpp", 32 "display_handler.cpp", 33 "kernel_log_events_handler.cpp", 34 "main.cpp", 35 ], 36 cflags: [ 37 // libwebrtc headers need this 38 "-Wno-unused-parameter", 39 "-D_XOPEN_SOURCE", 40 "-DWEBRTC_POSIX", 41 "-DWEBRTC_LINUX", 42 ], 43 header_libs: [ 44 "webrtc_signaling_headers", 45 "libwebrtc_absl_headers", 46 "libcuttlefish_confui_host_headers", 47 ], 48 static_libs: [ 49 "libaom", 50 "libcap", 51 "libcn-cbor", 52 "libcuttlefish_audio_connector", 53 "libcuttlefish_confui", 54 "libcuttlefish_confui_host", 55 "libcuttlefish_host_config", 56 "libcuttlefish_security", 57 "libcuttlefish_screen_connector", 58 "libcuttlefish_utils", 59 "libcuttlefish_wayland_server", 60 "libft2.nodep", 61 "libteeui", 62 "libteeui_localization", 63 "libdrm", 64 "libevent", 65 "libffi", 66 "libgflags", 67 "libopus", 68 "libsrtp2", 69 "libvpx", 70 "libwayland_crosvm_gpu_display_extension_server_protocols", 71 "libwayland_extension_server_protocols", 72 "libwayland_server", 73 "libwebrtc", 74 "libcuttlefish_webrtc_device", 75 "libcuttlefish_webrtc_common", 76 "libwebsockets", 77 "libyuv", 78 "libcvd_gnss_grpc_proxy", 79 "liblocation", 80 ], 81 shared_libs: [ 82 "libext2_blkid", 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