-
Notifications
You must be signed in to change notification settings - Fork 8
/
qt_windows_x86_64.BUILD
74 lines (66 loc) · 1.71 KB
/
qt_windows_x86_64.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
load("@rules_qt//:qt_libraries.bzl", "QT_LIBRARIES")
[
cc_import(
name = "qt_%s_windows_import" % name,
# When being on Linux this glob will be empty
hdrs = glob(
["include/%s/**" % include_folder],
allow_empty = True,
),
interface_library = "lib/%s.lib" % library_name,
shared_library = "bin/%s.dll" % library_name,
target_compatible_with = ["@platforms//os:windows"],
)
for name, include_folder, library_name, _ in QT_LIBRARIES
]
[
cc_library(
name = "qt_%s_windows" % name,
# When being on Linux this glob will be empty
hdrs = glob(
["include/%s/**" % include_folder],
allow_empty = True,
),
includes = [
"include",
"include/%s" % include_folder,
],
target_compatible_with = ["@platforms//os:windows"],
visibility = ["//visibility:public"],
deps = [":qt_%s_windows_import" % name],
)
for name, include_folder, _, _ in QT_LIBRARIES
]
cc_library(
name = "qt_hdrs",
hdrs = glob(["include/**"]),
includes = [
"include",
],
visibility = ["//visibility:public"],
)
filegroup(
name = "uic",
srcs = ["bin/uic.exe"],
visibility = ["//visibility:public"],
)
filegroup(
name = "moc",
srcs = ["bin/moc.exe"],
visibility = ["//visibility:public"],
)
filegroup(
name = "rcc",
srcs = ["bin/rcc.exe"],
visibility = ["//visibility:public"],
)
filegroup(
name = "plugin_files",
srcs = glob(["plugins/**/*"]),
visibility = ["//visibility:public"],
)
filegroup(
name = "qml_files",
srcs = glob(["qml/**/*"]),
visibility = ["//visibility:public"],
)