forked from memononen/libtess2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
41 lines (38 loc) · 946 Bytes
/
BUILD.bazel
File metadata and controls
41 lines (38 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_cc//cc:cc_test.bzl", "cc_test")
# libtess2, a polygon tesselator library
package(
default_visibility = ["//visibility:public"],
)
cc_library(
name = "libtess2",
srcs = [
"Source/bucketalloc.c",
"Source/bucketalloc.h",
"Source/dict.c",
"Source/dict.h",
"Source/geom.c",
"Source/geom.h",
"Source/mesh.c",
"Source/mesh.h",
"Source/priorityq.c",
"Source/priorityq.h",
"Source/sweep.c",
"Source/sweep.h",
"Source/tess.c",
"Source/tess.h",
],
hdrs = ["Include/tesselator.h"],
include_prefix = "libtess2",
includes = ["Include/"],
strip_include_prefix = "Include",
)
cc_test(
name = "libtess2_test",
size = "small",
srcs = ["Tests/libtess2_test.cc"],
deps = [
":libtess2",
"@googletest//:gtest_main",
],
)