blob: 96e060d0fc26dc91c2d5cbaafbfde31ef6e555b4 [file] [log] [blame]
Dan Willemsend3eac262017-09-08 22:47:47 -07001//
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 Jin0473f88b2017-10-09 11:21:40 -070020cc_defaults {
21 name: "protoc-gen-stream-defaults",
Dan Willemsend3eac262017-09-08 22:47:47 -070022 srcs: [
23 "Errors.cpp",
24 "string_utils.cpp",
Yi Jin0473f88b2017-10-09 11:21:40 -070025 ],
26}
27
Yi Jin04625ad2017-10-17 18:29:33 -070028cc_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 Jin0473f88b2017-10-09 11:21:40 -070047
48cc_binary_host {
49 name: "protoc-gen-javastream",
50 srcs: [
51 "java/main.cpp",
Dan Willemsend3eac262017-09-08 22:47:47 -070052 ],
53
Yi Jin0473f88b2017-10-09 11:21:40 -070054 defaults: ["protoc-gen-stream-defaults"],
55 shared_libs: ["libprotoc"],
56}
57
58cc_binary_host {
59 name: "protoc-gen-cppstream",
60 srcs: [
61 "cpp/main.cpp",
62 ],
63
64 defaults: ["protoc-gen-stream-defaults"],
Dan Willemsend3eac262017-09-08 22:47:47 -070065 shared_libs: ["libprotoc"],
Yi Jin04625ad2017-10-17 18:29:33 -070066 static_libs: ["streamingflags"],
Dan Willemsend3eac262017-09-08 22:47:47 -070067}