blob: 5151d6277f9483f94d294c5437bed2579384876f [file] [log] [blame]
David Brazdil735b2cd2020-10-15 12:19:25 +00001// Copyright (C) 2020 The Android Open Source Project
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
Bob Badour2efc4762021-02-03 18:36:27 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
David Brazdil735b2cd2020-10-15 12:19:25 +000019cc_test {
20 name: "virt_hostside_tests_vsock_server",
21 srcs: ["server.cc"],
Jiyong Park978b1e32021-02-04 20:23:40 +090022 static_libs: [
23 // The existence of the library in the system partition is not guaranteed.
24 // Let's have our own copy of it.
Andrew Walbran3049fdf2020-12-23 12:46:30 +000025 "android.system.virtmanager-cpp",
Jiyong Park978b1e32021-02-04 20:23:40 +090026 ],
27 shared_libs: [
David Brazdil735b2cd2020-10-15 12:19:25 +000028 "libbase",
Andrew Walbran3049fdf2020-12-23 12:46:30 +000029 "libbinder",
David Brazdil735b2cd2020-10-15 12:19:25 +000030 "liblog",
Andrew Walbran3049fdf2020-12-23 12:46:30 +000031 "libutils",
David Brazdil735b2cd2020-10-15 12:19:25 +000032 ],
David Brazdil735b2cd2020-10-15 12:19:25 +000033 test_suites: ["device-tests"],
Jiyong Park978b1e32021-02-04 20:23:40 +090034 stem: "vsock_server",
David Brazdil735b2cd2020-10-15 12:19:25 +000035}
36
37cc_binary {
38 name: "virt_hostside_tests_vsock_client",
39 srcs: ["client.cc"],
40 static_libs: [
41 "libbase",
42 "liblog",
43 ],
44 static_executable: true,
45 installable: false,
Jiyong Park978b1e32021-02-04 20:23:40 +090046 stem: "vsock_client",
David Brazdil735b2cd2020-10-15 12:19:25 +000047}