Use gflags with bazel the way it recommends
Also lets us remove the hand-generated headers which are now out of
date.
Change-Id: I8673300b6c8c4e7a32e68a07d48ac79cb59faa62
diff --git a/third_party/gflags/bazel/gflags.bzl b/third_party/gflags/bazel/gflags.bzl
index 5f2d20d..df34e4e 100644
--- a/third_party/gflags/bazel/gflags.bzl
+++ b/third_party/gflags/bazel/gflags.bzl
@@ -49,7 +49,7 @@
"src/mutex.h",
"src/util.h",
] + select({
- ":x64_windows": [
+ "//:x64_windows": [
"src/windows_port.cc",
"src/windows_port.h",
],
@@ -75,7 +75,7 @@
"-DHAVE_RWLOCK",
"-Wno-format-nonliteral",
] + select({
- ":x64_windows": [
+ "//:x64_windows": [
"-DOS_WINDOWS",
],
"//conditions:default": [
@@ -87,7 +87,7 @@
linkopts = []
if threads:
linkopts += select({
- ":x64_windows": [],
+ "//:x64_windows": [],
"//conditions:default": ["-lpthread"],
})
else: