Skip to content

Commit

Permalink
Add tinyxml2 module definition (#1105)
Browse files Browse the repository at this point in the history
  • Loading branch information
jondo2010 authored Nov 8, 2023
1 parent 4076a00 commit c9db8cc
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/tinyxml2/9.0.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module(
name = "tinyxml2",
version = "9.0.0",
compatibility_level = 1,
)
bazel_dep(name = "rules_cc", version = "0.0.9")
15 changes: 15 additions & 0 deletions modules/tinyxml2/9.0.0/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -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"],
+)
9 changes: 9 additions & 0 deletions modules/tinyxml2/9.0.0/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 = "tinyxml2",
+ version = "9.0.0",
+ compatibility_level = 1,
+)
+bazel_dep(name = "rules_cc", version = "0.0.9")
13 changes: 13 additions & 0 deletions modules/tinyxml2/9.0.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
- windows
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
build_targets:
- '@tinyxml2'
10 changes: 10 additions & 0 deletions modules/tinyxml2/9.0.0/source.json
Original file line number Diff line number Diff line change
@@ -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
}
11 changes: 11 additions & 0 deletions modules/tinyxml2/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"homepage": "https://github.com/leethomason/tinyxml2",
"maintainers": [],
"repository": [
"github:leethomason/tinyxml2"
],
"versions": [
"9.0.0"
],
"yanked_versions": {}
}

0 comments on commit c9db8cc

Please sign in to comment.