From 30eea2fceba5b049bed5f7122daf5e8ebd836d34 Mon Sep 17 00:00:00 2001 From: Patrick Balestra Date: Sun, 8 Jan 2023 21:53:28 +0100 Subject: [PATCH] Add bzlmod support to cc example --- examples/cc/MODULE.bazel | 15 +++++++++++++++ examples/cc/WORKSPACE.bzlmod | 0 examples/cc/external/MODULE.bazel | 7 +++++++ 3 files changed, 22 insertions(+) create mode 100644 examples/cc/MODULE.bazel create mode 100644 examples/cc/WORKSPACE.bzlmod create mode 100644 examples/cc/external/MODULE.bazel diff --git a/examples/cc/MODULE.bazel b/examples/cc/MODULE.bazel new file mode 100644 index 0000000000..e1e4ce2a24 --- /dev/null +++ b/examples/cc/MODULE.bazel @@ -0,0 +1,15 @@ +bazel_dep(name = "rules_apple", repo_name = "build_bazel_rules_apple", version = "2.0.0") +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep(name = "rules_xcodeproj", repo_name = "com_github_buildbuddy_io_rules_xcodeproj", version = "0.0.0") +bazel_dep(name = "rules_swift", repo_name = "build_bazel_rules_swift", version = "1.5.1") +bazel_dep(name = "examples_cc_external", version = "0.0.1") + +local_path_override( + module_name = "rules_xcodeproj", + path = "../.." +) + +local_path_override( + module_name = "examples_cc_external", + path = "external" +) diff --git a/examples/cc/WORKSPACE.bzlmod b/examples/cc/WORKSPACE.bzlmod new file mode 100644 index 0000000000..e69de29bb2 diff --git a/examples/cc/external/MODULE.bazel b/examples/cc/external/MODULE.bazel new file mode 100644 index 0000000000..7d64b00681 --- /dev/null +++ b/examples/cc/external/MODULE.bazel @@ -0,0 +1,7 @@ +module( + name = "examples_cc_external", + version = "0.0.1", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.3.0")