-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
228 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
module( | ||
name = "flatbuffers", | ||
version = "24.3.7", | ||
compatibility_level = 1, | ||
repo_name = "com_github_google_flatbuffers", | ||
) | ||
|
||
bazel_dep( | ||
name = "aspect_bazel_lib", | ||
version = "1.40.0", | ||
) | ||
bazel_dep( | ||
name = "aspect_rules_esbuild", | ||
version = "0.15.0", | ||
) | ||
bazel_dep( | ||
name = "aspect_rules_js", | ||
version = "1.34.1", | ||
) | ||
bazel_dep( | ||
name = "aspect_rules_ts", | ||
version = "1.4.5", | ||
) | ||
bazel_dep( | ||
name = "grpc", | ||
version = "1.48.1", | ||
repo_name = "com_github_grpc_grpc", | ||
) | ||
bazel_dep( | ||
name = "platforms", | ||
version = "0.0.7", | ||
) | ||
bazel_dep( | ||
name = "rules_cc", | ||
version = "0.0.9", | ||
) | ||
bazel_dep( | ||
name = "rules_go", | ||
version = "0.41.0", | ||
repo_name = "io_bazel_rules_go", | ||
) | ||
bazel_dep( | ||
name = "rules_nodejs", | ||
version = "5.8.3", | ||
) | ||
bazel_dep( | ||
name = "rules_swift", | ||
version = "1.2.0", | ||
repo_name = "build_bazel_rules_swift", | ||
) | ||
# -- bazel_dep definitions -- # | ||
|
||
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm") | ||
npm.npm_translate_lock( | ||
name = "npm", | ||
npmrc = "//:.npmrc", | ||
pnpm_lock = "//:pnpm-lock.yaml", | ||
verify_node_modules_ignored = "//:.bazelignore", | ||
) | ||
use_repo(npm, "npm") | ||
|
||
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") | ||
use_repo(node, "nodejs_linux_amd64") | ||
|
||
rules_ts_ext = use_extension("@aspect_rules_ts//ts:extensions.bzl", "ext", dev_dependency = True) | ||
rules_ts_ext.deps() | ||
use_repo(rules_ts_ext, "npm_typescript") | ||
|
||
non_module_dependencies = use_extension("//:extensions.bzl", "non_module_dependencies") | ||
use_repo( | ||
non_module_dependencies, | ||
"bazel_linux_x86_64", | ||
) |
22 changes: 22 additions & 0 deletions
22
modules/flatbuffers/24.3.7/patches/extensions_dot_bzl.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/extensions.bzl b/extensions.bzl | ||
new file mode 100644 | ||
index 00000000..6805b9d8 | ||
--- /dev/null | ||
+++ b/extensions.bzl | ||
@@ -0,0 +1,16 @@ | ||
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") | ||
+ | ||
+def _non_module_dependencies_impl(_ctx): | ||
+ http_file( | ||
+ name = "bazel_linux_x86_64", | ||
+ downloaded_file_path = "bazel", | ||
+ executable = True, | ||
+ sha256 = "e78fc3394deae5408d6f49a15c7b1e615901969ecf6e50d55ef899996b0b8458", | ||
+ urls = [ | ||
+ "https://github.com/bazelbuild/bazel/releases/download/6.3.2/bazel-6.3.2-linux-x86_64", | ||
+ ], | ||
+ ) | ||
+ | ||
+non_module_dependencies = module_extension( | ||
+ implementation = _non_module_dependencies_impl, | ||
+) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- a/MODULE.bazel | ||
+++ a/MODULE.bazel | ||
@@ -0,0 +1,73 @@ | ||
+module( | ||
+ name = "flatbuffers", | ||
+ version = "24.3.7", | ||
+ compatibility_level = 1, | ||
+ repo_name = "com_github_google_flatbuffers", | ||
+) | ||
+ | ||
+bazel_dep( | ||
+ name = "aspect_bazel_lib", | ||
+ version = "1.40.0", | ||
+) | ||
+bazel_dep( | ||
+ name = "aspect_rules_esbuild", | ||
+ version = "0.15.0", | ||
+) | ||
+bazel_dep( | ||
+ name = "aspect_rules_js", | ||
+ version = "1.34.1", | ||
+) | ||
+bazel_dep( | ||
+ name = "aspect_rules_ts", | ||
+ version = "1.4.5", | ||
+) | ||
+bazel_dep( | ||
+ name = "grpc", | ||
+ version = "1.48.1", | ||
+ repo_name = "com_github_grpc_grpc", | ||
+) | ||
+bazel_dep( | ||
+ name = "platforms", | ||
+ version = "0.0.7", | ||
+) | ||
+bazel_dep( | ||
+ name = "rules_cc", | ||
+ version = "0.0.9", | ||
+) | ||
+bazel_dep( | ||
+ name = "rules_go", | ||
+ version = "0.41.0", | ||
+ repo_name = "io_bazel_rules_go", | ||
+) | ||
+bazel_dep( | ||
+ name = "rules_nodejs", | ||
+ version = "5.8.3", | ||
+) | ||
+bazel_dep( | ||
+ name = "rules_swift", | ||
+ version = "1.2.0", | ||
+ repo_name = "build_bazel_rules_swift", | ||
+) | ||
+# -- bazel_dep definitions -- # | ||
+ | ||
+npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm") | ||
+npm.npm_translate_lock( | ||
+ name = "npm", | ||
+ npmrc = "//:.npmrc", | ||
+ pnpm_lock = "//:pnpm-lock.yaml", | ||
+ verify_node_modules_ignored = "//:.bazelignore", | ||
+) | ||
+use_repo(npm, "npm") | ||
+ | ||
+node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") | ||
+use_repo(node, "nodejs_linux_amd64") | ||
+ | ||
+rules_ts_ext = use_extension("@aspect_rules_ts//ts:extensions.bzl", "ext", dev_dependency = True) | ||
+rules_ts_ext.deps() | ||
+use_repo(rules_ts_ext, "npm_typescript") | ||
+ | ||
+non_module_dependencies = use_extension("//:extensions.bzl", "non_module_dependencies") | ||
+use_repo( | ||
+ non_module_dependencies, | ||
+ "bazel_linux_x86_64", | ||
+) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
buildifier: latest | ||
bazel: 6.4.0 | ||
platforms: | ||
ubuntu1804: | ||
environment: | ||
CC: clang | ||
SWIFT_VERSION: "5.5.3" | ||
SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION" | ||
PATH: "$PATH:$SWIFT_HOME/usr/bin" | ||
shell_commands: | ||
- "echo --- Downloading and extracting Swift $SWIFT_VERSION to $SWIFT_HOME" | ||
- "mkdir $SWIFT_HOME" | ||
- "curl https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu1804/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu18.04.tar.gz | tar xvz --strip-components=1 -C $SWIFT_HOME" | ||
build_targets: | ||
- "//..." | ||
ubuntu2004: | ||
environment: | ||
CC: clang | ||
SWIFT_VERSION: "5.5.3" | ||
SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION" | ||
PATH: "$PATH:$SWIFT_HOME/usr/bin" | ||
shell_commands: | ||
- "echo --- Downloading and extracting Swift $SWIFT_VERSION to $SWIFT_HOME" | ||
- "mkdir $SWIFT_HOME" | ||
- "curl https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu2004/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu20.04.tar.gz | tar xvz --strip-components=1 -C $SWIFT_HOME" | ||
build_targets: | ||
- "//..." | ||
macos: | ||
build_targets: | ||
- "//..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"url": "https://github.com/google/flatbuffers/archive/refs/tags/v24.3.7.tar.gz", | ||
"integrity": "sha256-v/+dIVD8/4j4ROjGCLArKg6UySrqObBMBiR4NGQwR4Q=", | ||
"strip_prefix": "flatbuffers-24.3.7", | ||
"patches": { | ||
"extensions_dot_bzl.patch": "sha256-JwLc+G7gQu2A+xJVjxwCDX8BwJdyspLLeVpnoklWYdM=", | ||
"module_dot_bazel.patch": "sha256-JQP8naja7Is+y1/V/pmz6Mm7Q7z0HxLNAUpSAoROiNA=" | ||
}, | ||
"patch_strip": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"homepage": "https://github.com/google/flatbuffers", | ||
"maintainers": [ | ||
{ | ||
"email": "[email protected]", | ||
"name": "No Maintainer Specified" | ||
} | ||
], | ||
"repository": [ | ||
"github:google/flatbuffers" | ||
], | ||
"versions": [ | ||
"24.3.7" | ||
], | ||
"yanked_versions": {} | ||
} |