David Brazdil | 735b2cd | 2020-10-15 12:19:25 +0000 | [diff] [blame] | 1 | // 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 Badour | 2efc476 | 2021-02-03 18:36:27 -0800 | [diff] [blame] | 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
David Brazdil | 735b2cd | 2020-10-15 12:19:25 +0000 | [diff] [blame] | 19 | cc_test { |
| 20 | name: "virt_hostside_tests_vsock_server", |
| 21 | srcs: ["server.cc"], |
Jiyong Park | 978b1e3 | 2021-02-04 20:23:40 +0900 | [diff] [blame] | 22 | 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 Walbran | 3049fdf | 2020-12-23 12:46:30 +0000 | [diff] [blame] | 25 | "android.system.virtmanager-cpp", |
Jiyong Park | 978b1e3 | 2021-02-04 20:23:40 +0900 | [diff] [blame] | 26 | ], |
| 27 | shared_libs: [ |
David Brazdil | 735b2cd | 2020-10-15 12:19:25 +0000 | [diff] [blame] | 28 | "libbase", |
Andrew Walbran | 3049fdf | 2020-12-23 12:46:30 +0000 | [diff] [blame] | 29 | "libbinder", |
David Brazdil | 735b2cd | 2020-10-15 12:19:25 +0000 | [diff] [blame] | 30 | "liblog", |
Andrew Walbran | 3049fdf | 2020-12-23 12:46:30 +0000 | [diff] [blame] | 31 | "libutils", |
David Brazdil | 735b2cd | 2020-10-15 12:19:25 +0000 | [diff] [blame] | 32 | ], |
David Brazdil | 735b2cd | 2020-10-15 12:19:25 +0000 | [diff] [blame] | 33 | test_suites: ["device-tests"], |
Jiyong Park | 978b1e3 | 2021-02-04 20:23:40 +0900 | [diff] [blame] | 34 | stem: "vsock_server", |
David Brazdil | 735b2cd | 2020-10-15 12:19:25 +0000 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | cc_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 Park | 978b1e3 | 2021-02-04 20:23:40 +0900 | [diff] [blame] | 46 | stem: "vsock_client", |
David Brazdil | 735b2cd | 2020-10-15 12:19:25 +0000 | [diff] [blame] | 47 | } |