blob: 756549c5e880c7a4a511e29ca265eaf397e35675 [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
28
29cc_binary_host {
30 name: "protoc-gen-javastream",
31 srcs: [
32 "java/main.cpp",
Dan Willemsend3eac262017-09-08 22:47:47 -070033 ],
34
Yi Jin0473f88b2017-10-09 11:21:40 -070035 defaults: ["protoc-gen-stream-defaults"],
36 shared_libs: ["libprotoc"],
37}
38
39cc_binary_host {
40 name: "protoc-gen-cppstream",
41 srcs: [
42 "cpp/main.cpp",
43 ],
44
45 defaults: ["protoc-gen-stream-defaults"],
Dan Willemsend3eac262017-09-08 22:47:47 -070046 shared_libs: ["libprotoc"],
47}