From 24263c3f7a3b04f073712e40376829e47772d7db Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 11 Jan 2017 01:03:09 +0100 Subject: Fixing a few items with the new Bazel BUILD system: -) Fixing Bazel 0.4.x breakage -) Adding helloworld BUILD examples -) Fixing grpc++ missing files. -) Adding helloworld example as a test for Bazel basic. --- bazel/generate_cc.bzl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bazel/generate_cc.bzl') diff --git a/bazel/generate_cc.bzl b/bazel/generate_cc.bzl index 3665733681..d49cbe8d72 100644 --- a/bazel/generate_cc.bzl +++ b/bazel/generate_cc.bzl @@ -24,13 +24,15 @@ def generate_cc_impl(ctx): if ctx.executable.plugin: arguments += ["--plugin=protoc-gen-PLUGIN=" + ctx.executable.plugin.path] arguments += ["--PLUGIN_out=" + ",".join(ctx.attr.flags) + ":" + dir_out] + additional_input = [ctx.executable.plugin] else: arguments += ["--cpp_out=" + ",".join(ctx.attr.flags) + ":" + dir_out] + additional_input = [] arguments += ["-I{0}={0}".format(include.path) for include in includes] arguments += [proto.path for proto in protos] ctx.action( - inputs = protos + includes, + inputs = protos + includes + additional_input, outputs = out_files, executable = ctx.executable._protoc, arguments = arguments, -- cgit v1.2.3