Skip to content

Commit

Permalink
Add Bazel support
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertexwahn committed Feb 10, 2024
1 parent b2b4664 commit dd798d2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
16 changes: 16 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -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"],
)
7 changes: 7 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module(
name = "pugixml",
version = "1.14",
compatibility_level = 1,
)

bazel_dep(name = "rules_cc", version = "0.0.9")

0 comments on commit dd798d2

Please sign in to comment.