forked from bazelbuild/bazel-central-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a12dae4
commit 3ccb614
Showing
11 changed files
with
181 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module( | ||
name = "libxml2", | ||
version = "2.13.3", | ||
compatibility_level = 1, | ||
) | ||
bazel_dep(name = "rules_foreign_cc", version = "0.11.1-fix") | ||
bazel_dep(name = "platforms", version = "0.0.10") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- /dev/null | ||
+++ BUILD.bazel | ||
@@ -0,0 +1,38 @@ | ||
+""" Builds libxml2. | ||
+""" | ||
+ | ||
+load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") | ||
+ | ||
+filegroup( | ||
+ name = "srcs", | ||
+ srcs = glob(["**"]), | ||
+) | ||
+ | ||
+cache_entries = { | ||
+ "CMAKE_INSTALL_LIBDIR": "lib", | ||
+ "CMAKE_POSITION_INDEPENDENT_CODE": "ON", | ||
+ "BUILD_SHARED_LIBS": "OFF", | ||
+ #libxml2 specific options. | ||
+ "LIBXML2_WITH_PYTHON": "OFF", | ||
+ "LIBXML2_WITH_LZMA": "OFF", | ||
+ "LIBXML2_WITH_ICONV": "OFF", | ||
+ "LIBXML2_WITH_TESTS": "OFF", | ||
+ "LIBXML2_WITH_PROGRAMS": "OFF", | ||
+} | ||
+ | ||
+cmake( | ||
+ name = "libxml2", | ||
+ env = {"CMAKE_BUILD_TYPE": "Release"}, | ||
+ lib_source = ":srcs", | ||
+ cache_entries = cache_entries, | ||
+ out_static_libs = select({ | ||
+ "@platforms//os:windows": [ | ||
+ "libxml2s.lib", | ||
+ ], | ||
+ "//conditions:default": [ | ||
+ "libxml2.a", | ||
+ ], | ||
+ }), | ||
+ out_include_dir = "include/libxml2", | ||
+ visibility = ["//visibility:public"], | ||
+) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- MODULE.bazel | ||
+++ MODULE.bazel | ||
@@ -0,0 +1,7 @@ | ||
+module( | ||
+ name = "libxml2", | ||
+ version = "2.13.3", | ||
+ compatibility_level = 1, | ||
+) | ||
+bazel_dep(name = "rules_foreign_cc", version = "0.11.1-fix") | ||
+bazel_dep(name = "platforms", version = "0.0.10") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
matrix: | ||
platform: | ||
- debian10 | ||
- ubuntu2004 | ||
- macos | ||
- macos_arm64 | ||
- windows | ||
bazel: | ||
- 7.x | ||
- 6.x | ||
tasks: | ||
verify_targets: | ||
name: Verify build targets | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_targets: | ||
- '@libxml2//:libxml2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"url": "https://download.gnome.org/sources/libxml2/2.13/libxml2-2.13.3.tar.xz", | ||
"integrity": "sha256-CAXXwYDPCcqtcWZsekWKdPBBVhpTKQJFTaUEfYOUgTg=", | ||
"strip_prefix": "libxml2-2.13.3", | ||
"patches": { | ||
"add_build_file.patch": "sha256-up7y9h92pFRePlMeUPgtT5LfXjk3IUqZrHgXyEJ+mjE=", | ||
"module_dot_bazel.patch": "sha256-+VVzbYR2cOTraQAqSU39gBR4tzvYqfbG/I1FIXHmxCQ=" | ||
}, | ||
"patch_strip": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"homepage": "https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home", | ||
"maintainers": [ | ||
{ | ||
"email": "tectep@gmail.com", | ||
"github": "dmitry-j-mikhin", | ||
"name": "Dmitry Mikhin" | ||
} | ||
], | ||
"repository": [], | ||
"versions": [ | ||
"2.13.3" | ||
], | ||
"yanked_versions": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
"bazelbuild/rules_foreign_cc" | ||
|
||
module( | ||
name = "rules_foreign_cc", | ||
version = "0.11.1-fix", | ||
compatibility_level = 1, | ||
) | ||
|
||
bazel_dep(name = "bazel_skylib", version = "1.3.0") | ||
bazel_dep(name = "platforms", version = "0.0.5") | ||
bazel_dep(name = "rules_python", version = "0.23.1") | ||
|
||
# Dev dependencies | ||
bazel_dep(name = "gazelle", version = "0.34.0", dev_dependency = True, repo_name = "bazel_gazelle") | ||
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) | ||
bazel_dep(name = "stardoc", version = "0.5.6", dev_dependency = True, repo_name = "io_bazel_stardoc") | ||
bazel_dep(name = "rules_cc", version = "0.0.9") | ||
|
||
python = use_extension("@rules_python//python/extensions:python.bzl", "python") | ||
python.toolchain(python_version = "3.9") | ||
use_repo(python, "python_3_9") | ||
|
||
tools = use_extension("@rules_foreign_cc//foreign_cc:extensions.bzl", "tools") | ||
use_repo( | ||
tools, | ||
"cmake_3.23.2_toolchains", | ||
"cmake_src", | ||
"gettext_runtime", | ||
"glib_dev", | ||
"glib_src", | ||
"gnumake_src", | ||
"meson_src", | ||
"ninja_1.12.0_toolchains", | ||
"ninja_build_src", | ||
"pkgconfig_src", | ||
"rules_foreign_cc_framework_toolchains", | ||
) | ||
|
||
register_toolchains( | ||
"@rules_foreign_cc_framework_toolchains//:all", | ||
"@cmake_3.23.2_toolchains//:all", | ||
"@ninja_1.12.0_toolchains//:all", | ||
"@python_3_9//:all", | ||
"@rules_foreign_cc//toolchains:all", | ||
) |
14 changes: 14 additions & 0 deletions
14
modules/rules_foreign_cc/0.11.1-fix/patches/module_dot_bazel_version.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
=================================================================== | ||
--- a/MODULE.bazel | ||
+++ b/MODULE.bazel | ||
@@ -1,9 +1,9 @@ | ||
"bazelbuild/rules_foreign_cc" | ||
|
||
module( | ||
name = "rules_foreign_cc", | ||
- version = "0.0.0", | ||
+ version = "0.11.1-fix", | ||
compatibility_level = 1, | ||
) | ||
|
||
bazel_dep(name = "bazel_skylib", version = "1.3.0") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
matrix: | ||
platform: ["centos7", "debian10", "macos", "ubuntu2004", "windows"] | ||
bazel: ["6.x", "7.x"] | ||
|
||
tasks: | ||
verify_targets: | ||
name: "Verify build targets" | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_targets: | ||
- "@rules_foreign_cc//toolchains/private:make_tool" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"integrity": "sha256-CufV9MOCpUpC8FwWHTCOfq/QcJ0XgafHnMCah34KKVI=", | ||
"strip_prefix": "rules_foreign_cc-0.11.1-fix5", | ||
"url": "https://github.com/dmitry-j-mikhin/rules_foreign_cc/releases/download/0.11.1-fix5/rules_foreign_cc-0.11.1-fix5.tar.gz", | ||
"patches": { | ||
"module_dot_bazel_version.patch": "sha256-KNy4hxrtD5aT5HCkvAu0ispP5K8WLP5lszgy0LTdSSI=" | ||
}, | ||
"patch_strip": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters