diff --git a/modules/foxglove_websocket/1.3.0/MODULE.bazel b/modules/foxglove_websocket/1.3.0/MODULE.bazel new file mode 100644 index 00000000000..168e92c0239 --- /dev/null +++ b/modules/foxglove_websocket/1.3.0/MODULE.bazel @@ -0,0 +1,11 @@ +module( + name = "foxglove_websocket", + version = "1.3.0", + bazel_compatibility = [">=7.2.1"], + compatibility_level = 1, +) + +bazel_dep(name = "boringssl", version = "0.20240913.0") +bazel_dep(name = "nlohmann_json", version = "3.11.3") +bazel_dep(name = "rules_cc", version = "0.0.10") +bazel_dep(name = "websocketpp", version = "0.8.2.bcr.1") diff --git a/modules/foxglove_websocket/1.3.0/overlay/BUILD.bazel b/modules/foxglove_websocket/1.3.0/overlay/BUILD.bazel new file mode 100644 index 00000000000..5882da6e51a --- /dev/null +++ b/modules/foxglove_websocket/1.3.0/overlay/BUILD.bazel @@ -0,0 +1,15 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "foxglove_websocket", + srcs = glob(["cpp/foxglove-websocket/src/*.cpp"]), + hdrs = glob(["cpp/foxglove-websocket/include/foxglove/websocket/*.hpp"]), + includes = ["cpp/foxglove-websocket/include"], + deps = [ + "@boringssl//:ssl", + "@nlohmann_json//:json", + "@websocketpp", + ], +) diff --git a/modules/foxglove_websocket/1.3.0/overlay/MODULE.bazel b/modules/foxglove_websocket/1.3.0/overlay/MODULE.bazel new file mode 120000 index 00000000000..9b599e3ad9c --- /dev/null +++ b/modules/foxglove_websocket/1.3.0/overlay/MODULE.bazel @@ -0,0 +1 @@ +../MODULE.bazel \ No newline at end of file diff --git a/modules/foxglove_websocket/1.3.0/presubmit.yml b/modules/foxglove_websocket/1.3.0/presubmit.yml new file mode 100644 index 00000000000..5e2034fc92f --- /dev/null +++ b/modules/foxglove_websocket/1.3.0/presubmit.yml @@ -0,0 +1,18 @@ +matrix: + platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + bazel: [7.x] +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + build_flags: + - '--cxxopt=-std=c++17' + bazel: ${{ bazel }} + build_targets: + - '@foxglove_websocket//:foxglove_websocket' diff --git a/modules/foxglove_websocket/1.3.0/source.json b/modules/foxglove_websocket/1.3.0/source.json new file mode 100644 index 00000000000..69778c73d92 --- /dev/null +++ b/modules/foxglove_websocket/1.3.0/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-XB1M2mCom/Y17wFQ6M0vTaVp+SvrishVV5Xtf9R/KiE=", + "strip_prefix": "ws-protocol-releases-cpp-v1.3.0", + "url": "https://github.com/foxglove/ws-protocol/archive/refs/tags/releases/cpp/v1.3.0.tar.gz", + "patch_strip": 0, + "overlay": { + "MODULE.bazel": "sha256-+WFR78+V+VhVTcmOGYGe+0OzqGQmddHdMugWXEJZbK0=", + "BUILD.bazel": "sha256-IB4BkWQSCaNz8Nona7iraVafcL92Vj+1cSi/us7TNKk=" + } +} diff --git a/modules/foxglove_websocket/metadata.json b/modules/foxglove_websocket/metadata.json new file mode 100644 index 00000000000..f308daf99f0 --- /dev/null +++ b/modules/foxglove_websocket/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/foxglove/ws-protocol", + "maintainers": [ + { + "email": "daisuke.nishimatsu1021@gmail.com", + "github": "wep21", + "name": "Daisuke Nishimatsu" + } + ], + "repository": [ + "github:foxglove/ws-protocol" + ], + "versions": [ + "1.3.0" + ], + "yanked_versions": {} +}