-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Expand file tree
/
Copy pathBUILD.bazel
More file actions
27 lines (25 loc) · 823 Bytes
/
BUILD.bazel
File metadata and controls
27 lines (25 loc) · 823 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
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "unity",
srcs = glob(["src/*.c"]),
hdrs = glob(["src/*.h"]),
copts = select({
"@platforms//os:windows": [
"/wd4100", # Disable warning C4100: unreferenced formal parameter (similar to -Wno-error)
"/wd4065", # Disable warning C4065: switch statement contains default but no case (similar to -Wno-switch-enum)
],
"//conditions:default": [
"-fvisibility=default",
"-fno-sanitize=float-divide-by-zero",
"-Wno-switch-enum",
],
}),
includes = ["src"],
visibility = ["//tests:__pkg__"],
deps = [":unity-examples"],
)
cc_library(
name = "unity-examples",
hdrs = ["examples/unity_config.h"],
visibility = ["//tests:__pkg__"],
)