Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2015 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 | // ========================================================== |
| 18 | // Build the host executable: protoc-gen-javastream |
| 19 | // ========================================================== |
Yi Jin | 0473f88b | 2017-10-09 11:21:40 -0700 | [diff] [blame] | 20 | cc_defaults { |
| 21 | name: "protoc-gen-stream-defaults", |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 22 | srcs: [ |
| 23 | "Errors.cpp", |
Yi Jin | f9ed04b | 2017-10-20 16:17:58 -0700 | [diff] [blame] | 24 | "stream_proto_utils.cpp", |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 25 | "string_utils.cpp", |
Yi Jin | 0473f88b | 2017-10-09 11:21:40 -0700 | [diff] [blame] | 26 | ], |
Chih-Hung Hsieh | 548fdbd | 2017-12-05 10:11:02 -0800 | [diff] [blame] | 27 | cflags: [ |
| 28 | "-Wall", |
| 29 | "-Werror", |
| 30 | ], |
Yi Jin | f9ed04b | 2017-10-20 16:17:58 -0700 | [diff] [blame] | 31 | |
Ryan Mitchell | 055e618 | 2019-10-14 09:25:39 -0700 | [diff] [blame^] | 32 | static_libs: ["libprotoc"], |
Yi Jin | 0473f88b | 2017-10-09 11:21:40 -0700 | [diff] [blame] | 33 | } |
| 34 | |
Yi Jin | 0473f88b | 2017-10-09 11:21:40 -0700 | [diff] [blame] | 35 | cc_binary_host { |
| 36 | name: "protoc-gen-javastream", |
| 37 | srcs: [ |
| 38 | "java/main.cpp", |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 39 | ], |
| 40 | |
Yi Jin | 0473f88b | 2017-10-09 11:21:40 -0700 | [diff] [blame] | 41 | defaults: ["protoc-gen-stream-defaults"], |
Yi Jin | 0473f88b | 2017-10-09 11:21:40 -0700 | [diff] [blame] | 42 | } |
| 43 | |
| 44 | cc_binary_host { |
| 45 | name: "protoc-gen-cppstream", |
| 46 | srcs: [ |
| 47 | "cpp/main.cpp", |
| 48 | ], |
| 49 | |
| 50 | defaults: ["protoc-gen-stream-defaults"], |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 51 | } |
Colin Cross | 45c0d71 | 2019-03-28 22:31:35 -0700 | [diff] [blame] | 52 | |
| 53 | // ========================================================== |
| 54 | // Build the java test |
| 55 | // ========================================================== |
| 56 | java_library { |
| 57 | name: "StreamingProtoTest", |
| 58 | srcs: [ |
| 59 | "test/**/*.java", |
| 60 | "test/**/*.proto", |
| 61 | ], |
| 62 | proto: { |
| 63 | plugin: "javastream", |
| 64 | }, |
| 65 | static_libs: ["libprotobuf-java-lite"], |
| 66 | } |