-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
58 lines (54 loc) · 1.61 KB
/
BUILD.bazel
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
53
54
55
56
57
58
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_binary", "swift_library")
load("@rules_xcodeproj//xcodeproj:defs.bzl", "top_level_target", "xcodeproj")
swift_library(
name = "SharedModels",
srcs = glob(["shared-models/sources/**/*.swift"]),
module_name = "SharedModels",
visibility = ["//visibility:public"],
)
swift_binary(
name = "server",
srcs = glob(["generics-server/sources/**/*.swift"]),
visibility = ["//visibility:public"],
deps = [
":SharedModels",
"@swiftpkg_fluent//:Fluent",
"@swiftpkg_fluent_postgres_driver//:FluentPostgresDriver",
"@swiftpkg_pathkit//:PathKit",
"@swiftpkg_soto//:SotoS3",
"@swiftpkg_vapor//:Vapor",
],
)
test_suite(
name = "all_tests",
tests = [
"//clients/generics-restaurants:GenericsRestaurantsTests",
],
)
xcodeproj(
name = "xcodeproj",
build_mode = "bazel",
pre_build = "./lint.sh", # I couldn't come up with a better way
project_name = "Generics",
tags = ["manual"],
top_level_targets = [
top_level_target(
"//clients/generics-app:GenericsApp",
target_environments = [
"device",
"simulator",
],
),
top_level_target(
"//clients/generics-driver:GenericsDriver",
target_environments = [
"device",
"simulator",
],
),
"//clients/generics-restaurants:GenericsRestaurants",
"//clients/generics-restaurants:GenericsRestaurantsTests",
"//clients/bot:bot",
":server",
],
)