forked from fcitx/mozc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.qt
93 lines (85 loc) · 2.15 KB
/
BUILD.qt
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
load("@build_bazel_rules_apple//apple:apple.bzl",
"apple_dynamic_framework_import")
package(
default_visibility = ["//visibility:public"],
)
cc_library(
name = "qt",
hdrs = glob([
"QtCore/**",
"QtGui/**",
"QtWidgets/**",
]),
includes = ["."],
linkopts = [
"-lQt5Core",
"-lQt5Gui",
"-lQt5Widgets",
],
)
cc_library(
name = "qt_mac",
hdrs = glob(
include = [
"include/QtCore/**",
"include/QtGui/**",
"include/QtWidgets/**",
"src/corelib/**",
"src/gui/**",
"src/widgets/**",
],
exclude = [
"**/.obj/**",
],
),
includes = [
"include",
],
)
# Versions/5/QtCore and QtCore are same and redudant, it should be merged.
# Versions/5/QtCore is actually used by the binary (see: otool -l).
# QtCore is necessary for build. (see: imported_dynamic_framework_processor.py).
apple_dynamic_framework_import(
name = "QtCore_mac",
framework_imports = glob(
include = [
"lib/QtCore.framework/Versions/5/QtCore",
"lib/QtCore.framework/QtCore",
"lib/QtCore.framework/Resoures/**",
],
),
)
apple_dynamic_framework_import(
name = "QtGui_mac",
framework_imports = glob(
include = [
"lib/QtGui.framework/Versions/5/QtGui",
"lib/QtGui.framework/QtGui",
"lib/QtGui.framework/Resoures/**",
],
),
)
apple_dynamic_framework_import(
name = "QtPrintSupport_mac",
framework_imports = glob(
include = [
"lib/QtPrintSupport.framework/Versions/5/QtPrintSupport",
"lib/QtPrintSupport.framework/QtPrintSupport",
"lib/QtPrintSupport.framework/Resoures/**",
],
),
)
apple_dynamic_framework_import(
name = "QtWidgets_mac",
framework_imports = glob(
include = [
"lib/QtWidgets.framework/Versions/5/QtWidgets",
"lib/QtWidgets.framework/QtWidgets",
"lib/QtWidgets.framework/Resoures/**",
],
),
)
filegroup(
name = "libqcocoa",
srcs = ["plugins/platforms/libqcocoa.dylib"],
)