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", |
| 24 | "string_utils.cpp", |
Yi Jin | 0473f88b | 2017-10-09 11:21:40 -0700 | [diff] [blame] | 25 | ], |
| 26 | } |
| 27 | |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame^] | 28 | cc_library { |
| 29 | name: "streamingflags", |
| 30 | host_supported: true, |
| 31 | proto: { |
| 32 | export_proto_headers: true, |
| 33 | include_dirs: ["external/protobuf/src"], |
| 34 | }, |
| 35 | |
| 36 | target: { |
| 37 | host: { |
| 38 | proto: { |
| 39 | type: "full", |
| 40 | }, |
| 41 | srcs: [ |
| 42 | "stream.proto", |
| 43 | ], |
| 44 | }, |
| 45 | }, |
| 46 | } |
Yi Jin | 0473f88b | 2017-10-09 11:21:40 -0700 | [diff] [blame] | 47 | |
| 48 | cc_binary_host { |
| 49 | name: "protoc-gen-javastream", |
| 50 | srcs: [ |
| 51 | "java/main.cpp", |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 52 | ], |
| 53 | |
Yi Jin | 0473f88b | 2017-10-09 11:21:40 -0700 | [diff] [blame] | 54 | defaults: ["protoc-gen-stream-defaults"], |
| 55 | shared_libs: ["libprotoc"], |
| 56 | } |
| 57 | |
| 58 | cc_binary_host { |
| 59 | name: "protoc-gen-cppstream", |
| 60 | srcs: [ |
| 61 | "cpp/main.cpp", |
| 62 | ], |
| 63 | |
| 64 | defaults: ["protoc-gen-stream-defaults"], |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 65 | shared_libs: ["libprotoc"], |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame^] | 66 | static_libs: ["streamingflags"], |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 67 | } |