diff --git a/BUILD.bazel b/BUILD.bazel new file mode 100644 index 00000000..04129d64 --- /dev/null +++ b/BUILD.bazel @@ -0,0 +1,16 @@ +""" Builds pugixml. +""" + +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"], +) diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 00000000..4e813bc5 --- /dev/null +++ b/MODULE.bazel @@ -0,0 +1,7 @@ +module( + name = "pugixml", + version = "1.14", + compatibility_level = 1, +) + +bazel_dep(name = "rules_cc", version = "0.0.9")