forked from jpsim/Yams
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
26 lines (24 loc) · 764 Bytes
/
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
load("@rules_cc//cc:defs.bzl", "cc_library")
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
cc_library(
name = "CYaml",
srcs = glob([
"Sources/CYaml/src/*.c",
"Sources/CYaml/src/*.h",
]),
hdrs = ["Sources/CYaml/include/yaml.h"],
# Requires because of https://github.com/bazelbuild/bazel/pull/10143 otherwise host transition builds fail
copts = ["-fPIC"],
includes = ["Sources/CYaml/include"],
linkstatic = True,
tags = ["swift_module"],
visibility = ["//Tests:__subpackages__"],
)
swift_library(
name = "Yams",
srcs = glob(["Sources/Yams/*.swift"]),
copts = ["-DSWIFT_PACKAGE"],
module_name = "Yams",
visibility = ["//visibility:public"],
deps = ["//:CYaml"],
)