From a900e82da574ec6d1a5102e4806b6cd75febb581 Mon Sep 17 00:00:00 2001 From: Carlos O'Ryan Date: Mon, 8 Jul 2024 16:04:38 +0000 Subject: [PATCH] fix(pugixml): add `includes` argument (#2374) Fixes #2350 --- modules/pugixml/1.14.bcr.1/MODULE.bazel | 6 ++++++ .../1.14.bcr.1/patches/add_build_file.patch | 18 ++++++++++++++++++ .../1.14.bcr.1/patches/module_dot_bazel.patch | 9 +++++++++ modules/pugixml/1.14.bcr.1/presubmit.yml | 10 ++++++++++ modules/pugixml/1.14.bcr.1/source.json | 10 ++++++++++ modules/pugixml/metadata.json | 3 ++- 6 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 modules/pugixml/1.14.bcr.1/MODULE.bazel create mode 100644 modules/pugixml/1.14.bcr.1/patches/add_build_file.patch create mode 100644 modules/pugixml/1.14.bcr.1/patches/module_dot_bazel.patch create mode 100644 modules/pugixml/1.14.bcr.1/presubmit.yml create mode 100644 modules/pugixml/1.14.bcr.1/source.json diff --git a/modules/pugixml/1.14.bcr.1/MODULE.bazel b/modules/pugixml/1.14.bcr.1/MODULE.bazel new file mode 100644 index 00000000000..06e19eec259 --- /dev/null +++ b/modules/pugixml/1.14.bcr.1/MODULE.bazel @@ -0,0 +1,6 @@ +module( + name = "pugixml", + version = "1.14.bcr.1", + compatibility_level = 1, +) +bazel_dep(name = "rules_cc", version = "0.0.9") diff --git a/modules/pugixml/1.14.bcr.1/patches/add_build_file.patch b/modules/pugixml/1.14.bcr.1/patches/add_build_file.patch new file mode 100644 index 00000000000..65435c08b0f --- /dev/null +++ b/modules/pugixml/1.14.bcr.1/patches/add_build_file.patch @@ -0,0 +1,18 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,15 @@ ++""" Builds pugixml. ++""" ++ ++load("@rules_cc//cc:defs.bzl", "cc_library") ++ ++cc_library( ++ name = "pugixml", ++ srcs = ["pugixml.cpp"], ++ hdrs = [ ++ "pugiconfig.hpp", ++ "pugixml.hpp", ++ ], ++ includes = ["."], ++ visibility = ["//visibility:public"], ++) diff --git a/modules/pugixml/1.14.bcr.1/patches/module_dot_bazel.patch b/modules/pugixml/1.14.bcr.1/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..859250a263f --- /dev/null +++ b/modules/pugixml/1.14.bcr.1/patches/module_dot_bazel.patch @@ -0,0 +1,9 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,6 @@ ++module( ++ name = "pugixml", ++ version = "1.14.bcr.1", ++ compatibility_level = 1, ++) ++bazel_dep(name = "rules_cc", version = "0.0.9") diff --git a/modules/pugixml/1.14.bcr.1/presubmit.yml b/modules/pugixml/1.14.bcr.1/presubmit.yml new file mode 100644 index 00000000000..005b8c0eb5a --- /dev/null +++ b/modules/pugixml/1.14.bcr.1/presubmit.yml @@ -0,0 +1,10 @@ +matrix: + platform: ["debian10", "ubuntu2004", "macos", "macos_arm64", "windows"] + bazel: ["7.x"] +tasks: + verify_targets: + name: Verify build targets + bazel: ${{ bazel }} + platform: ${{ platform }} + build_targets: + - '@pugixml' diff --git a/modules/pugixml/1.14.bcr.1/source.json b/modules/pugixml/1.14.bcr.1/source.json new file mode 100644 index 00000000000..9db711676e9 --- /dev/null +++ b/modules/pugixml/1.14.bcr.1/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/zeux/pugixml/releases/download/v1.14/pugixml-1.14.tar.gz", + "integrity": "sha256-LxDidocMZLHbaAkFCnXhGol6jXRWxL5cay41oRFooBU=", + "strip_prefix": "pugixml-1.14/src", + "patches": { + "add_build_file.patch": "sha256-G4BTgkVmpPFVxSudpzCzKX9j4q6ecn4s/pnq9xq8WPQ=", + "module_dot_bazel.patch": "sha256-koYokgnmPZ4opnO9z8Ilk9dCJP50JMh+piOXxdYG4ic=" + }, + "patch_strip": 0 +} diff --git a/modules/pugixml/metadata.json b/modules/pugixml/metadata.json index 848e69b6d86..a3a46824fad 100644 --- a/modules/pugixml/metadata.json +++ b/modules/pugixml/metadata.json @@ -10,7 +10,8 @@ "github:zeux/pugixml" ], "versions": [ - "1.14" + "1.14", + "1.14.bcr.1" ], "yanked_versions": {} }