Skip to content

Commit

Permalink
fix(pugixml): add includes argument (#2374)
Browse files Browse the repository at this point in the history
Fixes #2350
  • Loading branch information
coryan authored Jul 8, 2024
1 parent 7294131 commit a900e82
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 1 deletion.
6 changes: 6 additions & 0 deletions modules/pugixml/1.14.bcr.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module(
name = "pugixml",
version = "1.14.bcr.1",
compatibility_level = 1,
)
bazel_dep(name = "rules_cc", version = "0.0.9")
18 changes: 18 additions & 0 deletions modules/pugixml/1.14.bcr.1/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -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"],
+)
9 changes: 9 additions & 0 deletions modules/pugixml/1.14.bcr.1/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -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")
10 changes: 10 additions & 0 deletions modules/pugixml/1.14.bcr.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -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'
10 changes: 10 additions & 0 deletions modules/pugixml/1.14.bcr.1/source.json
Original file line number Diff line number Diff line change
@@ -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
}
3 changes: 2 additions & 1 deletion modules/pugixml/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"github:zeux/pugixml"
],
"versions": [
"1.14"
"1.14",
"1.14.bcr.1"
],
"yanked_versions": {}
}

0 comments on commit a900e82

Please sign in to comment.