Add Bazel support

This commit is contained in:
Vertexwahn 2024-01-07 13:42:22 +01:00
parent b2b4664030
commit bbd7fcf127
3 changed files with 20 additions and 0 deletions

13
BUILD.bazel Normal file
View File

@ -0,0 +1,13 @@
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "pugixml",
srcs = [
"src/pugiconfig.hpp",
"src/pugixml.cpp",
],
hdrs = ["src/pugixml.hpp"],
includes = ["src/"],
strip_include_prefix = "src",
visibility = ["//visibility:public"],
)

7
MODULE.bazel Normal file
View File

@ -0,0 +1,7 @@
module(
name = "pugixml",
version = "1.14",
compatibility_level = 1,
)
bazel_dep(name = "rules_cc", version = "0.0.9")

0
WORKSPACE.bazel Normal file
View File