forked from bazel-xcode/PodToBUILD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
53 lines (44 loc) · 1.26 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
41
42
43
44
45
46
47
48
49
50
51
52
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
load("@build_bazel_rules_apple//apple:macos.bzl", "macos_command_line_application")
objc_library(
name = "ObjcSupport",
srcs = glob(["Sources/ObjcSupport/*.m"]),
hdrs = glob(["Sources/ObjcSupport/include/*"]),
includes = ["Sources/ObjcSupport/include"]
)
# PodToBUILD is a core library enabling Skylark code generation
swift_library(
name = "PodToBUILD",
srcs = glob(["Sources/PodToBUILD/*.swift"]),
deps = [":ObjcSupport"],
copts = ["-swift-version", "4"],
)
# Compiler
macos_command_line_application(
name = "Compiler",
minimum_os_version = "10.13",
deps = [":CompilerLib"],
)
swift_library(
name = "CompilerLib",
srcs = glob(["Sources/Compiler/*.swift"]),
deps = [":PodToBUILD"],
)
# RepoTools
macos_command_line_application(
name = "RepoTools",
minimum_os_version = "10.13",
deps = [":RepoToolsLib"],
)
swift_library(
name = "RepoToolsLib",
srcs = glob(["Sources/RepoTools/*.swift"]),
deps = [":RepoToolsCore"],
)
swift_library(
name = "RepoToolsCore",
srcs = glob(["Sources/RepoToolsCore/*.swift"]),
deps = [":PodToBUILD"],
copts = ["-swift-version", "4"],
)
alias(name = "update_pods", actual = "//bin:update_pods")