forked from bazel-contrib/rules_dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
55 lines (48 loc) · 1.85 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
53
54
55
package(default_visibility = ["//visibility:public"])
load("@io_bazel_rules_dotnet//dotnet/private:context.bzl", "core_context_data", "dotnet_context_data", "net_context_data")
load("//dotnet:defs.bzl", "DEFAULT_DOTNET_CORE_FRAMEWORK", "DOTNET_CORE_FRAMEWORKS", "DOTNET_NET_FRAMEWORKS")
dotnet_context_data(
name = "dotnet_context_data",
framework = "",
)
core_context_data(
name = "core_context_data",
framework = DEFAULT_DOTNET_CORE_FRAMEWORK,
)
net_context_data(
name = "net_context_data",
framework = "net472",
libVersion = "4.7.2",
)
exports_files(["AUTHORS"])
[
net_context_data(
name = "net_context_data_" + framework,
extra_srcs = ["@net_sdk_{}//:targetframework".format(framework)],
framework = framework,
host = "@net_sdk_{}//:mcs_bin".format(framework),
lib = "@net_sdk_{}//:lib".format(framework),
libVersion = DOTNET_NET_FRAMEWORKS[framework][3],
mcs_bin = "@net_sdk_{}//:mcs_bin".format(framework),
mono_bin = "@net_sdk_{}//:mono_bin".format(framework),
shared = "@net_sdk_{}//:lib".format(framework),
tools = "@net_sdk_{}//:tools".format(framework),
visibility = ["//visibility:public"],
)
for framework in DOTNET_NET_FRAMEWORKS
]
[
core_context_data(
name = "core_context_data_" + framework,
framework = framework,
host = "@core_sdk_{}//:host".format(framework),
lib = "@core_sdk_{}//:lib".format(framework),
libVersion = DOTNET_CORE_FRAMEWORKS[framework][1],
mcs_bin = "@core_sdk_{}//:mcs_bin".format(framework),
mono_bin = "@core_sdk_{}//:mono_bin".format(framework),
shared = "@core_sdk_{}//:shared".format(framework),
tools = "@core_sdk_{}//:lib".format(framework),
visibility = ["//visibility:public"],
)
for framework in DOTNET_CORE_FRAMEWORKS
]