-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathBUILD
40 lines (38 loc) · 1.05 KB
/
BUILD
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
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "xcode",
srcs = [
"xcode.go",
"xcode_darwin.go",
],
cgo = True,
clinkopts = select({
"@io_bazel_rules_go//go/platform:darwin": [
"-framework CoreServices",
],
"//conditions:default": [],
}),
importpath = "github.com/buildbuddy-io/buildbuddy/server/xcode",
visibility = ["//visibility:public"],
deps = select({
"@io_bazel_rules_go//go/platform:darwin": [
"//server/util/flag",
"//server/util/log",
"//server/util/status",
"@com_github_groob_plist//:plist",
],
"//conditions:default": [],
}),
)
go_test(
name = "xcode_test",
srcs = ["xcode_darwin_test.go"],
embed = [":xcode"],
target_compatible_with = ["@platforms//os:macos"],
deps = select({
"@io_bazel_rules_go//go/platform:darwin": [
"@com_github_stretchr_testify//assert",
],
"//conditions:default": [],
}),
)