Skip to content

Commit 9b87dc0

Browse files
authored
Add Bazel build support (tinyobjloader#376)
1 parent 2945a96 commit 9b87dc0

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

BUILD.bazel

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
cc_library(
2+
name = "tinyobjloader",
3+
hdrs = ["tiny_obj_loader.h"],
4+
copts = select({
5+
"@platforms//os:windows": [],
6+
"//conditions:default": ["-Wno-maybe-uninitialized"],
7+
}),
8+
visibility = ["//visibility:public"],
9+
)

MODULE.bazel

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module(
2+
name = "tinyobjloader",
3+
compatibility_level = 1,
4+
)
5+
6+
bazel_dep(
7+
name = "platforms",
8+
version = "0.0.8",
9+
)

0 commit comments

Comments
 (0)