forked from primihub/primihub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
103 lines (85 loc) · 1.85 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package(default_visibility = ["//visibility:public",],)
# load("//bazel:prim.bzl", "COPTS", "PYX_COPTS", "PYX_SRCS", "copy_to_workspace")
config_setting(
name = "msvc-cl",
flag_values = {"@bazel_tools//tools/cpp:compiler": "msvc-cl"},
)
config_setting(
name = "clang-cl",
flag_values = {"@bazel_tools//tools/cpp:compiler": "clang-cl"},
)
config_setting(
name = "opt",
values = {"compilation_mode": "opt"},
)
config_setting(
name = "wolfssl",
values = {"define": "ssl=wolfssl"},
)
config_setting(
name = "openssl",
values = {"define": "ssl=openssl"},
)
config_setting(
name = "macos-build",
values = {"define": "macos-build=true"},
)
config_setting(
name = "microsoft-apsi",
values = {"define": "microsoft-apsi=true"},
)
config_setting(
name = "aarch64",
values = {"define": "cpu_arch=aarch64"},
)
config_setting(
name = "x86_64",
values = {"define": "cpu_arch=x86_64"},
)
config_setting(
name = "darwin_x86_64",
values = {"define": "cpu_arch=darwin_x86_64"},
)
config_setting(
name = "enable_mysql_driver",
values = {"define": "enable_mysql_driver=true"},
)
config_setting(
name = "py_task_enabled",
values = {"define" : "enable_py_task=true"},
)
LINK_PYTHON_OPTS = PLACEHOLDER-PYTHON3.X-CONFIG
cc_library(
name = "python3_lib",
copts = [
"-Iexternal/python3"
],
linkopts = LINK_PYTHON_OPTS,
deps = [
"@python3//:headers",
],
)
cc_binary(
name = "task_main",
deps = [
"//src/primihub/task_engine:task_engine_impl",
] + select({
"py_task_enabled": [":python3_lib",],
"//conditions:default": []
}),
)
cc_binary(
name = "node",
deps = [
"//src/primihub/node:node_impl",
] + select({
"py_task_enabled": [":python3_lib",],
"//conditions:default": []
}),
)
cc_binary(
name = "cli",
deps = [
"//src/primihub/cli:cli_impl",
] ,
)