-
Notifications
You must be signed in to change notification settings - Fork 362
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
216 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
modules/hessian2-codec/0.0.0-20231212-d5d1202/MODULE.bazel
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,40 @@ | ||
module( | ||
name = "hessian2-codec", | ||
version = "0.0.0-20231212-d5d1202", | ||
repo_name = "com_alibaba_hessian2_codec", | ||
) | ||
|
||
bazel_dep( | ||
name = "bazel_skylib", | ||
version = "1.4.1", | ||
) | ||
bazel_dep( | ||
name = "abseil-cpp", | ||
version = "20220623.1", | ||
repo_name = "com_google_absl", | ||
) | ||
bazel_dep( | ||
name = "fmt", | ||
version = "8.1.1", | ||
repo_name = "com_github_fmtlib_fmt", | ||
) | ||
bazel_dep( | ||
name = "googletest", | ||
version = "1.11.0", | ||
repo_name = "com_google_googletest", | ||
) | ||
bazel_dep( | ||
name = "hedron_compile_commands", | ||
dev_dependency = True, | ||
) | ||
bazel_dep( | ||
name = "platforms", | ||
version = "0.0.8", | ||
) | ||
# -- bazel_dep definitions -- # | ||
|
||
git_override( | ||
module_name = "hedron_compile_commands", | ||
commit = "5bcb0bd8a917b2b48fb5dc55818515f4be3b63ff", | ||
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git", | ||
) |
71 changes: 71 additions & 0 deletions
71
modules/hessian2-codec/0.0.0-20231212-d5d1202/patches/hessian2-codec.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,71 @@ | ||
diff --git a/common/BUILD b/common/BUILD | ||
index 095a7ca..2f3b06e 100644 | ||
--- a/common/BUILD | ||
+++ b/common/BUILD | ||
@@ -33,7 +33,7 @@ cc_library( | ||
], | ||
copts = DEFAULT_COPTS, | ||
deps = [ | ||
- "@com_github_fmtlib_fmt//:fmtlib", | ||
+ "@com_github_fmtlib_fmt//:fmt", | ||
"@com_google_absl//absl/strings", | ||
], | ||
) | ||
diff --git a/demo/BUILD b/demo/BUILD | ||
index 899d3fa..3abbd57 100644 | ||
--- a/demo/BUILD | ||
+++ b/demo/BUILD | ||
@@ -1,15 +1,6 @@ | ||
load( | ||
"@com_google_absl//absl:copts/GENERATED_copts.bzl", | ||
- "ABSL_GCC_EXCEPTIONS_FLAGS", | ||
"ABSL_GCC_FLAGS", | ||
- "ABSL_GCC_TEST_FLAGS", | ||
- "ABSL_LLVM_EXCEPTIONS_FLAGS", | ||
- "ABSL_LLVM_FLAGS", | ||
- "ABSL_LLVM_TEST_FLAGS", | ||
- "ABSL_MSVC_EXCEPTIONS_FLAGS", | ||
- "ABSL_MSVC_FLAGS", | ||
- "ABSL_MSVC_LINKOPTS", | ||
- "ABSL_MSVC_TEST_FLAGS", | ||
) | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
diff --git a/demo/MODULE.bazel b/demo/MODULE.bazel | ||
new file mode 100644 | ||
index 0000000..157593e | ||
--- /dev/null | ||
+++ b/demo/MODULE.bazel | ||
@@ -0,0 +1,21 @@ | ||
+module( | ||
+ name = "com_alibaba_hessian2_codec_demo", | ||
+ version = "0.0.0-20231212-d5d1202", | ||
+) | ||
+ | ||
+bazel_dep( | ||
+ name = "hessian2-codec", | ||
+ version = "0.0.0-20231212-d5d1202", | ||
+ repo_name = "com_alibaba_hessian2_codec", | ||
+) | ||
+bazel_dep( | ||
+ name = "abseil-cpp", | ||
+ version = "20220623.1", | ||
+ repo_name = "com_google_absl", | ||
+) | ||
+# -- bazel_dep definitions -- # | ||
+ | ||
+local_path_override( | ||
+ module_name = "hessian2-codec", | ||
+ path = "..", | ||
+) | ||
\ No newline at end of file | ||
diff --git a/example/BUILD b/example/BUILD | ||
index 0dbd652..a9f7bdd 100644 | ||
--- a/example/BUILD | ||
+++ b/example/BUILD | ||
@@ -1,4 +1,4 @@ | ||
-load("//:copts.bzl", "DEFAULT_COPTS", "TEST_COPTS") | ||
+load("//:copts.bzl", "DEFAULT_COPTS") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
43 changes: 43 additions & 0 deletions
43
modules/hessian2-codec/0.0.0-20231212-d5d1202/patches/module_dot_bazel.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,43 @@ | ||
--- a/MODULE.bazel | ||
+++ a/MODULE.bazel | ||
@@ -0,0 +1,40 @@ | ||
+module( | ||
+ name = "hessian2-codec", | ||
+ version = "0.0.0-20231212-d5d1202", | ||
+ repo_name = "com_alibaba_hessian2_codec", | ||
+) | ||
+ | ||
+bazel_dep( | ||
+ name = "bazel_skylib", | ||
+ version = "1.4.1", | ||
+) | ||
+bazel_dep( | ||
+ name = "abseil-cpp", | ||
+ version = "20220623.1", | ||
+ repo_name = "com_google_absl", | ||
+) | ||
+bazel_dep( | ||
+ name = "fmt", | ||
+ version = "8.1.1", | ||
+ repo_name = "com_github_fmtlib_fmt", | ||
+) | ||
+bazel_dep( | ||
+ name = "googletest", | ||
+ version = "1.11.0", | ||
+ repo_name = "com_google_googletest", | ||
+) | ||
+bazel_dep( | ||
+ name = "hedron_compile_commands", | ||
+ dev_dependency = True, | ||
+) | ||
+bazel_dep( | ||
+ name = "platforms", | ||
+ version = "0.0.8", | ||
+) | ||
+# -- bazel_dep definitions -- # | ||
+ | ||
+git_override( | ||
+ module_name = "hedron_compile_commands", | ||
+ commit = "5bcb0bd8a917b2b48fb5dc55818515f4be3b63ff", | ||
+ remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git", | ||
+) |
36 changes: 36 additions & 0 deletions
36
modules/hessian2-codec/0.0.0-20231212-d5d1202/presubmit.yml
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,36 @@ | ||
matrix: | ||
platform: | ||
- debian10 | ||
- ubuntu2004 | ||
- macos | ||
- macos_arm64 | ||
- windows | ||
bazel: | ||
- 7.x | ||
- 6.x | ||
tasks: | ||
verify_targets: | ||
name: Verify build targets | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_targets: | ||
- '@hessian2-codec//hessian2/...' | ||
bcr_test_module: | ||
module_path: demo | ||
matrix: | ||
platform: | ||
- debian10 | ||
- ubuntu2004 | ||
- macos | ||
- macos_arm64 | ||
- windows | ||
bazel: | ||
- 7.x | ||
- 6.x | ||
tasks: | ||
run_test_module: | ||
name: Run test module | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
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/alibaba/hessian2-codec/archive/d5d120221999c41926456b588a8a2b474ca26b69.tar.gz", | ||
"integrity": "sha256-0wmGMpo7f5bQNn2K/qWS6F5QzjZRKLi/BbIpNcu8j5Q=", | ||
"strip_prefix": "hessian2-codec-d5d120221999c41926456b588a8a2b474ca26b69", | ||
"patches": { | ||
"hessian2-codec.patch": "sha256-mos333303Lh1e7u3zCJIVyRlbx11vX4zZUeOfMWXlPY=", | ||
"module_dot_bazel.patch": "sha256-9aAHBHFopbDOHld4yKCKAfIuYHKPZ/YMclzmy2ff1So=" | ||
}, | ||
"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/alibaba/hessian2-codec", | ||
"maintainers": [ | ||
{ | ||
"email": "[email protected]", | ||
"name": "No Maintainer Specified" | ||
} | ||
], | ||
"repository": [ | ||
"github:alibaba/hessian2-codec" | ||
], | ||
"versions": [ | ||
"0.0.0-20231212-d5d1202" | ||
], | ||
"yanked_versions": {} | ||
} |