Skip to content

Commit

Permalink
Add bzlmod support to cc example
Browse files Browse the repository at this point in the history
  • Loading branch information
BalestraPatrick committed Jan 13, 2023
1 parent 9f59ea3 commit 30eea2f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/cc/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -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"
)
Empty file added examples/cc/WORKSPACE.bzlmod
Empty file.
7 changes: 7 additions & 0 deletions examples/cc/external/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 30eea2f

Please sign in to comment.