summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Lalonde <glalonde@google.com>2017-01-05 13:07:27 -0800
committerAndreas Schuh <andreas.schuh.84@gmail.com>2017-01-06 11:46:43 +0000
commit30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e (patch)
tree742b2d8262dd8125e8281572d91f87ff78eb8e29
parent8935ef4526a1006e0e0e3a809da19630eb1f77f8 (diff)
downloadgflags-30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e.tar.gz
gflags-30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e.tar.bz2
gflags-30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e.zip
Changed include directory in bazel build
-rw-r--r--bazel/gflags.bzl10
1 files changed, 5 insertions, 5 deletions
diff --git a/bazel/gflags.bzl b/bazel/gflags.bzl
index 6a89f88..cd0edad 100644
--- a/bazel/gflags.bzl
+++ b/bazel/gflags.bzl
@@ -10,7 +10,7 @@ def gflags_sources(namespace=["google", "gflags"]):
native.genrule(
name = "gflags_declare_h",
srcs = ["src/gflags_declare.h.in"],
- outs = ["gflags/gflags_declare.h"],
+ outs = ["include/gflags/gflags_declare.h"],
cmd = ("awk '{ " +
"gsub(/@GFLAGS_NAMESPACE@/, \"" + namespace[0] + "\"); " +
"gsub(/@(HAVE_STDINT_H|HAVE_SYS_TYPES_H|HAVE_INTTYPES_H|GFLAGS_INTTYPES_FORMAT_C99)@/, \"1\"); " +
@@ -23,7 +23,7 @@ def gflags_sources(namespace=["google", "gflags"]):
native.genrule(
name = gflags_ns_h_file.replace('.', '_'),
srcs = ["src/gflags_ns.h.in"],
- outs = ["gflags/" + gflags_ns_h_file],
+ outs = ["include/gflags/" + gflags_ns_h_file],
cmd = ("awk '{ " +
"gsub(/@ns@/, \"" + ns + "\"); " +
"gsub(/@NS@/, \"" + ns.upper() + "\"); " +
@@ -33,7 +33,7 @@ def gflags_sources(namespace=["google", "gflags"]):
native.genrule(
name = "gflags_h",
srcs = ["src/gflags.h.in"],
- outs = ["gflags/gflags.h"],
+ outs = ["include/gflags/gflags.h"],
cmd = ("awk '{ " +
"gsub(/@GFLAGS_ATTRIBUTE_UNUSED@/, \"\"); " +
"gsub(/@INCLUDE_GFLAGS_NS_H@/, \"" + '\n'.join(["#include \\\"gflags/{}\\\"".format(hdr) for hdr in gflags_ns_h_files]) + "\"); " +
@@ -42,7 +42,7 @@ def gflags_sources(namespace=["google", "gflags"]):
native.genrule(
name = "gflags_completions_h",
srcs = ["src/gflags_completions.h.in"],
- outs = ["gflags/gflags_completions.h"],
+ outs = ["include/gflags/gflags_completions.h"],
cmd = "awk '{ gsub(/@GFLAGS_NAMESPACE@/, \"" + namespace[0] + "\"); print; }' $(<) > $(@)"
)
hdrs = [":gflags_h", ":gflags_declare_h", ":gflags_completions_h"]
@@ -85,7 +85,7 @@ def gflags_library(hdrs=[], srcs=[], threads=1):
name = name,
hdrs = hdrs,
srcs = srcs,
- includes = ["$(GENDIR)"],
+ includes = ["include/"],
copts = copts,
linkopts = linkopts,
visibility = ["//visibility:public"]