Skip to content

Commit

Permalink
Add aexml (#2677)
Browse files Browse the repository at this point in the history
Using the generated source archive here. I will submit Bazel module
support to the upstream project and request a static archive for the
next release.
  • Loading branch information
ileitch authored Aug 25, 2024
1 parent 2e87b09 commit 3abc4e5
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/aexml/4.7.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module(
name = "aexml",
version = "4.7.0",
compatibility_level = 1,
)

bazel_dep(name = "rules_swift", version = "2.1.1")
bazel_dep(name = "apple_support", version = "1.16.0")
11 changes: 11 additions & 0 deletions modules/aexml/4.7.0/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,8 @@
+load("@rules_swift//swift:swift.bzl", "swift_library")
+
+swift_library(
+ name = "AEXML",
+ srcs = glob(["Sources/**/*.swift"]),
+ module_name = "AEXML",
+ visibility = ["//visibility:public"],
+)
11 changes: 11 additions & 0 deletions modules/aexml/4.7.0/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,8 @@
+module(
+ name = "aexml",
+ version = "4.7.0",
+ compatibility_level = 1,
+)
+
+bazel_dep(name = "rules_swift", version = "2.1.1")
+bazel_dep(name = "apple_support", version = "1.16.0")
9 changes: 9 additions & 0 deletions modules/aexml/4.7.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tasks:
verify_targets:
name: Verify build targets
bazel: 7.x
platform: macos
build_targets:
- '@aexml//:AEXML'
build_flags:
- "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1"
10 changes: 10 additions & 0 deletions modules/aexml/4.7.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/tadija/AEXML/archive/refs/tags/4.7.0.zip",
"integrity": "sha256-NylZt7S5lfmT0VjMvzXwafpjIqoaWDkgaml5VrmdW/A=",
"strip_prefix": "AEXML-4.7.0",
"patch_strip": 0,
"patches": {
"add_build_file.patch": "sha256-KBmlVSpnPd370G2MycgAWJR/cW9F0vTR5Apdeg322Mw=",
"module_dot_bazel.patch": "sha256-vGO5o5BNuRNGnT+OSJsIObsIC6HQytYtaH5GQmCy0DE="
}
}
17 changes: 17 additions & 0 deletions modules/aexml/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"homepage": "https://github.com/tadija/AEXML",
"maintainers": [
{
"email": "ian@leitch.io",
"github": "ileitch",
"name": "Ian Leitch"
}
],
"repository": [
"github:tadija/AEXML"
],
"versions": [
"4.7.0"
],
"yanked_versions": {}
}

0 comments on commit 3abc4e5

Please sign in to comment.