diff --git a/modules/msgpack-c/6.1.0/MODULE.bazel b/modules/msgpack-c/6.1.0/MODULE.bazel new file mode 100644 index 00000000000..23ce1d01b61 --- /dev/null +++ b/modules/msgpack-c/6.1.0/MODULE.bazel @@ -0,0 +1,5 @@ +module( + name = "msgpack-c", + version = "6.1.0", + compatibility_level = 1, +) diff --git a/modules/msgpack-c/6.1.0/patches/add_build_file.patch b/modules/msgpack-c/6.1.0/patches/add_build_file.patch new file mode 100644 index 00000000000..ffed22b2bd9 --- /dev/null +++ b/modules/msgpack-c/6.1.0/patches/add_build_file.patch @@ -0,0 +1,13 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,10 @@ ++cc_library( ++ name = "msgpack", ++ hdrs = glob([ ++ "include/**/*.h", ++ "include/**/*.hpp", ++ ]), ++ defines = ["MSGPACK_NO_BOOST"], ++ includes = ["include"], ++ visibility = ["//visibility:public"], ++) diff --git a/modules/msgpack-c/6.1.0/patches/module_dot_bazel.patch b/modules/msgpack-c/6.1.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..41ba035580b --- /dev/null +++ b/modules/msgpack-c/6.1.0/patches/module_dot_bazel.patch @@ -0,0 +1,8 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,5 @@ ++module( ++ name = "msgpack-c", ++ version = "6.1.0", ++ compatibility_level = 1, ++) diff --git a/modules/msgpack-c/6.1.0/presubmit.yml b/modules/msgpack-c/6.1.0/presubmit.yml new file mode 100644 index 00000000000..d84a1297f46 --- /dev/null +++ b/modules/msgpack-c/6.1.0/presubmit.yml @@ -0,0 +1,17 @@ +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: + - '@msgpack-c//:msgpack' diff --git a/modules/msgpack-c/6.1.0/source.json b/modules/msgpack-c/6.1.0/source.json new file mode 100644 index 00000000000..0fde2606860 --- /dev/null +++ b/modules/msgpack-c/6.1.0/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/msgpack/msgpack-c/releases/download/cpp-6.1.0/msgpack-cxx-6.1.0.tar.gz", + "integrity": "sha256-I+3n6TyO/uNDrYxlFMKPNwggflEGrzs+SWmzqe1wOec=", + "strip_prefix": "msgpack-cxx-6.1.0", + "patches": { + "add_build_file.patch": "sha256-pMzY862FSfeA3HoyvVMJI4xpHzwCLMHE2QblM+rZSZQ=", + "module_dot_bazel.patch": "sha256-ST7je5jsqxG5KgO/chTAMcR9h/RB9xaIoF8Fh0QLgno=" + }, + "patch_strip": 0 +} diff --git a/modules/msgpack-c/metadata.json b/modules/msgpack-c/metadata.json new file mode 100644 index 00000000000..b07415e5dd9 --- /dev/null +++ b/modules/msgpack-c/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/msgpack/msgpack-c", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:msgpack/msgpack-c" + ], + "versions": [ + "6.1.0" + ], + "yanked_versions": {} +}