From c9db8cc41071e5f8ad7fbcaa3185e9acb76f40ae Mon Sep 17 00:00:00 2001 From: John Hughes Date: Wed, 8 Nov 2023 16:48:25 +0100 Subject: [PATCH] Add tinyxml2 module definition (#1105) --- modules/tinyxml2/9.0.0/MODULE.bazel | 6 ++++++ .../tinyxml2/9.0.0/patches/add_build_file.patch | 15 +++++++++++++++ .../tinyxml2/9.0.0/patches/module_dot_bazel.patch | 9 +++++++++ modules/tinyxml2/9.0.0/presubmit.yml | 13 +++++++++++++ modules/tinyxml2/9.0.0/source.json | 10 ++++++++++ modules/tinyxml2/metadata.json | 11 +++++++++++ 6 files changed, 64 insertions(+) create mode 100644 modules/tinyxml2/9.0.0/MODULE.bazel create mode 100644 modules/tinyxml2/9.0.0/patches/add_build_file.patch create mode 100644 modules/tinyxml2/9.0.0/patches/module_dot_bazel.patch create mode 100644 modules/tinyxml2/9.0.0/presubmit.yml create mode 100644 modules/tinyxml2/9.0.0/source.json create mode 100644 modules/tinyxml2/metadata.json diff --git a/modules/tinyxml2/9.0.0/MODULE.bazel b/modules/tinyxml2/9.0.0/MODULE.bazel new file mode 100644 index 00000000000..09de6dbd85f --- /dev/null +++ b/modules/tinyxml2/9.0.0/MODULE.bazel @@ -0,0 +1,6 @@ +module( + name = "tinyxml2", + version = "9.0.0", + compatibility_level = 1, +) +bazel_dep(name = "rules_cc", version = "0.0.9") diff --git a/modules/tinyxml2/9.0.0/patches/add_build_file.patch b/modules/tinyxml2/9.0.0/patches/add_build_file.patch new file mode 100644 index 00000000000..2afbd467fd6 --- /dev/null +++ b/modules/tinyxml2/9.0.0/patches/add_build_file.patch @@ -0,0 +1,15 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,12 @@ ++""" Builds tinyxml2. ++""" ++ ++load("@rules_cc//cc:defs.bzl", "cc_library") ++ ++cc_library( ++ name = "tinyxml2", ++ srcs = ["tinyxml2.cpp"], ++ hdrs = ["tinyxml2.h"], ++ includes = ["."], ++ visibility = ["//visibility:public"], ++) diff --git a/modules/tinyxml2/9.0.0/patches/module_dot_bazel.patch b/modules/tinyxml2/9.0.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..5092c6a0ce2 --- /dev/null +++ b/modules/tinyxml2/9.0.0/patches/module_dot_bazel.patch @@ -0,0 +1,9 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,6 @@ ++module( ++ name = "tinyxml2", ++ version = "9.0.0", ++ compatibility_level = 1, ++) ++bazel_dep(name = "rules_cc", version = "0.0.9") diff --git a/modules/tinyxml2/9.0.0/presubmit.yml b/modules/tinyxml2/9.0.0/presubmit.yml new file mode 100644 index 00000000000..770721864d9 --- /dev/null +++ b/modules/tinyxml2/9.0.0/presubmit.yml @@ -0,0 +1,13 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + build_targets: + - '@tinyxml2' diff --git a/modules/tinyxml2/9.0.0/source.json b/modules/tinyxml2/9.0.0/source.json new file mode 100644 index 00000000000..205dd60eb66 --- /dev/null +++ b/modules/tinyxml2/9.0.0/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/leethomason/tinyxml2/archive/refs/tags/9.0.0.tar.gz", + "integrity": "sha256-zC8UF8MIsfasxU+I63B3Ggv2X3YoLOXEDlTP5SlScCw=", + "strip_prefix": "tinyxml2-9.0.0", + "patches": { + "add_build_file.patch": "sha256-5p5iDlTVSGqie/OOuyvVQ0/XpasKbr1TVVv94yQlNNk=", + "module_dot_bazel.patch": "sha256-br7DR6A3gWp74gZc0erwci1oRd1A7G922HPrbY/czVg=" + }, + "patch_strip": 0 +} diff --git a/modules/tinyxml2/metadata.json b/modules/tinyxml2/metadata.json new file mode 100644 index 00000000000..a3ec069286d --- /dev/null +++ b/modules/tinyxml2/metadata.json @@ -0,0 +1,11 @@ +{ + "homepage": "https://github.com/leethomason/tinyxml2", + "maintainers": [], + "repository": [ + "github:leethomason/tinyxml2" + ], + "versions": [ + "9.0.0" + ], + "yanked_versions": {} +}