diff --git a/modules/hessian2-codec/0.0.0-20231212-d5d1202/MODULE.bazel b/modules/hessian2-codec/0.0.0-20231212-d5d1202/MODULE.bazel new file mode 100644 index 00000000000..6a36360e5e0 --- /dev/null +++ b/modules/hessian2-codec/0.0.0-20231212-d5d1202/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", +) diff --git a/modules/hessian2-codec/0.0.0-20231212-d5d1202/patches/hessian2-codec.patch b/modules/hessian2-codec/0.0.0-20231212-d5d1202/patches/hessian2-codec.patch new file mode 100644 index 00000000000..27d260742ff --- /dev/null +++ b/modules/hessian2-codec/0.0.0-20231212-d5d1202/patches/hessian2-codec.patch @@ -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"]) + diff --git a/modules/hessian2-codec/0.0.0-20231212-d5d1202/patches/module_dot_bazel.patch b/modules/hessian2-codec/0.0.0-20231212-d5d1202/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..28d156e8d74 --- /dev/null +++ b/modules/hessian2-codec/0.0.0-20231212-d5d1202/patches/module_dot_bazel.patch @@ -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", ++) diff --git a/modules/hessian2-codec/0.0.0-20231212-d5d1202/presubmit.yml b/modules/hessian2-codec/0.0.0-20231212-d5d1202/presubmit.yml new file mode 100644 index 00000000000..2e2cf79b154 --- /dev/null +++ b/modules/hessian2-codec/0.0.0-20231212-d5d1202/presubmit.yml @@ -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: + - //... diff --git a/modules/hessian2-codec/0.0.0-20231212-d5d1202/source.json b/modules/hessian2-codec/0.0.0-20231212-d5d1202/source.json new file mode 100644 index 00000000000..2fb8eab8900 --- /dev/null +++ b/modules/hessian2-codec/0.0.0-20231212-d5d1202/source.json @@ -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 +} diff --git a/modules/hessian2-codec/metadata.json b/modules/hessian2-codec/metadata.json new file mode 100644 index 00000000000..1e3fa167646 --- /dev/null +++ b/modules/hessian2-codec/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/alibaba/hessian2-codec", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:alibaba/hessian2-codec" + ], + "versions": [ + "0.0.0-20231212-d5d1202" + ], + "yanked_versions": {} +}