Zhuoyao Zhang | 25a007f | 2016-11-02 15:15:24 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2016 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 | // |
| 16 | |
| 17 | cc_library_shared { |
| 18 | |
| 19 | name: "libvts_multidevice_proto", |
Zhuoyao Zhang | b9b0bfd | 2016-11-03 13:09:12 -0700 | [diff] [blame] | 20 | host_supported: true, |
Zhuoyao Zhang | 25a007f | 2016-11-02 15:15:24 -0700 | [diff] [blame] | 21 | |
| 22 | srcs: [ |
| 23 | "AndroidSystemControlMessage.proto", |
| 24 | "ComponentSpecificationMessage.proto", |
Zhuoyao Zhang | d2b5660 | 2016-11-21 10:51:27 -0800 | [diff] [blame] | 25 | "VtsProfilingMessage.proto", |
Zhuoyao Zhang | c721a6a | 2017-04-11 15:38:08 -0700 | [diff] [blame] | 26 | "VtsReportMessage.proto", |
Hans Chen | 9c2639b | 2018-06-22 16:58:45 -0700 | [diff] [blame] | 27 | "VtsResourceControllerMessage.proto", |
Zhuoyao Zhang | 25a007f | 2016-11-02 15:15:24 -0700 | [diff] [blame] | 28 | ], |
| 29 | |
Dan Willemsen | 311a7b0 | 2019-05-07 17:35:15 -0700 | [diff] [blame] | 30 | cflags: [ |
| 31 | "-Wall", |
| 32 | "-Werror", |
| 33 | ], |
Chih-Hung Hsieh | 6866a0b | 2017-10-03 13:59:52 -0700 | [diff] [blame] | 34 | |
Zhuoyao Zhang | 25a007f | 2016-11-02 15:15:24 -0700 | [diff] [blame] | 35 | proto: { |
| 36 | export_proto_headers: true, |
Zhuoyao Zhang | b9b0bfd | 2016-11-03 13:09:12 -0700 | [diff] [blame] | 37 | type: "full", |
Zhuoyao Zhang | 25a007f | 2016-11-02 15:15:24 -0700 | [diff] [blame] | 38 | }, |
| 39 | |
Zhuoyao Zhang | b9b0bfd | 2016-11-03 13:09:12 -0700 | [diff] [blame] | 40 | target: { |
| 41 | android: { |
| 42 | srcs: ["VtsDriverControlMessage.proto"], |
| 43 | }, |
| 44 | host: { |
| 45 | cflags: [ |
| 46 | "-Wno-unused-parameter", |
| 47 | "-Werror", |
| 48 | ], |
| 49 | }, |
| 50 | }, |
Tri Vo | 58d68d9 | 2017-05-08 13:56:39 -0700 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | cc_library_shared { |
| 54 | name: "libvts_proto_fuzzer_proto", |
| 55 | proto: { |
| 56 | export_proto_headers: true, |
| 57 | type: "full", |
| 58 | }, |
| 59 | srcs: [ |
| 60 | "ExecutionSpecificationMessage.proto", |
| 61 | ], |
| 62 | shared_libs: [ |
| 63 | "libprotobuf-cpp-full", |
| 64 | "libvts_multidevice_proto", |
| 65 | ], |
| 66 | cflags: [ |
Chih-Hung Hsieh | 6866a0b | 2017-10-03 13:59:52 -0700 | [diff] [blame] | 67 | "-Wall", |
| 68 | "-Werror", |
Tri Vo | 58d68d9 | 2017-05-08 13:56:39 -0700 | [diff] [blame] | 69 | "-Wno-unused-parameter", |
| 70 | ], |
| 71 | } |
Dan Willemsen | 311a7b0 | 2019-05-07 17:35:15 -0700 | [diff] [blame] | 72 | |
| 73 | java_library_host { |
| 74 | name: "libvts_protos_host", |
| 75 | srcs: ["**/*.proto"], |
| 76 | proto: { |
| 77 | type: "full", |
| 78 | }, |
| 79 | } |