aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jeff McGlynn <jwmcglynn@google.com>2019-01-23 16:03:11 -0800
committerGravatar Jeff McGlynn <jeff@jeffmcglynn.com>2019-01-23 17:55:54 -0800
commit63537d518790132eac86659169c256ac1bf247be (patch)
tree3a4f4185a363b10bb730fcf60877dec3401b4d7c
parente0904c84162a2a078a47b7966305f84f817d6247 (diff)
Update to build with the latest version of bazel
* http_archive and git_repository are now skylark rules, update to use them. * new_http_archive has been merged with http_archive, and takes a label for build_file instead of a path. Add an empty third_party/BUILD file so that we can reference the label. * Rename tools/bazel.rc to .bazelrc
-rw-r--r--.bazelrc (renamed from tools/bazel.rc)0
-rw-r--r--WORKSPACE7
-rw-r--r--third_party/BUILD0
3 files changed, 5 insertions, 2 deletions
diff --git a/tools/bazel.rc b/.bazelrc
index e47b006..e47b006 100644
--- a/tools/bazel.rc
+++ b/.bazelrc
diff --git a/WORKSPACE b/WORKSPACE
index 77d6a69..250f9ad 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -12,17 +12,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+
git_repository(
name = "gtest",
remote = "https://github.com/google/googletest.git",
commit = "ba96d0b1161f540656efdaed035b3c062b60e006",
)
-new_http_archive(
+http_archive(
name = "honggfuzz",
url = "https://github.com/google/honggfuzz/archive/1.6.zip",
sha256 = "c331ac5beebe526bced3043ed3012109e439315b7d74d72760b0aa6d08cc05d2",
- build_file = "third_party/honggfuzz.BUILD",
+ build_file = "//third_party:honggfuzz.BUILD",
strip_prefix = "honggfuzz-1.6",
)
diff --git a/third_party/BUILD b/third_party/BUILD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/third_party/BUILD