From 61c98f34644b02ff449d84b8573a2c3b350f0122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 7 Jun 2021 22:50:19 +0300 Subject: [PATCH] bring back some things from the old repo --- .bazelrc | 12 ++---------- .gitignore | 9 +++++++-- WORKSPACE | 20 ++++++++++++++++++-- 3 files changed, 27 insertions(+), 14 deletions(-) diff --git a/.bazelrc b/.bazelrc index 4d17dd2..889a983 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,15 +1,7 @@ -build --symlink_prefix=dist/ +build --verbose_failures +test --sandbox_default_allow_network=false test --test_output=errors -test:debug --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results --define=VERBOSE_LOGS=1 -run:debug --define=VERBOSE_LOGS=1 -- --node_options=--inspect-brk -build:debug --compilation_mode=dbg -build --nolegacy_external_runfiles -build --incompatible_strict_action_env -run --incompatible_strict_action_env -try-import %workspace%/.bazelrc.user build --worker_sandboxing build --incompatible_enable_cc_toolchain_resolution build --incompatible_use_cc_configure_from_rules_cc build --incompatible_use_platforms_repo_for_constraints - -build --javabase=@bazel_tools//tools/jdk:remote_jdk11 diff --git a/.gitignore b/.gitignore index 95983ea..4542d01 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,7 @@ -bazel-out -dist +*~ +*.sw[op] + +/bazel-bin +/bazel-bazel-zig-cc +/bazel-out +/bazel-testlogs diff --git a/WORKSPACE b/WORKSPACE index fea59cc..3d4acd2 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -2,7 +2,7 @@ workspace( name = "zig-cc-bazel", ) -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "io_bazel_rules_go", @@ -30,7 +30,23 @@ go_rules_dependencies() go_register_toolchains(version = "1.16") -gazelle_dependencies() +gazelle_dependencies(go_repository_default_config = "@//:WORKSPACE") + +http_archive( + name = "com_google_protobuf", + sha256 = "bf0e5070b4b99240183b29df78155eee335885e53a8af8683964579c214ad301", + strip_prefix = "protobuf-3.14.0", + urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.14.0.zip"], +) + +load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") +protobuf_deps() + +http_archive( + name = "com_github_bazelbuild_buildtools", + strip_prefix = "buildtools-master", + url = "https://github.com/bazelbuild/buildtools/archive/master.zip", +) load("//zig-toolchains:defs.bzl", zig_register_all_toolchains = "register_all_toolchains",