forked from ApolloAuto/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qt.BUILD
78 lines (75 loc) · 1.58 KB
/
qt.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
75
76
77
78
cc_library(
name = "qt_core",
hdrs = glob(["*"]),
copts = [
"-Iinclude",
"-Iinclude/QtCore",
],
includes = [
"include",
"include/QtCore",
],
linkopts = [
"-Wl,-rpath,/usr/local/Qt5.5.1/5.5/gcc_64/lib",
"-lQt5Core",
],
visibility = ["//visibility:public"],
)
cc_library(
name = "qt_widgets",
hdrs = glob(["*"]),
copts = [
"-Iinclude",
# "-Iinclude/QtCore",
"-Iinclude/QtWidgets",
],
includes = ["include/QtWidgets"],
linkopts = [
"-L/usr/local/Qt5.5.1/5.5/gcc_64/lib",
"-lQt5Widgets",
],
visibility = ["//visibility:public"],
deps = [":qt_core"],
)
cc_library(
name = "qt_gui",
hdrs = glob(["*"]),
copts = [
"-Iinclude",
# "-Iinclude/QtCore",
"-Iinclude/QtGui",
# "-Iinclude/QtWidgets",
],
includes = ["include/QtGui"],
linkopts = [
"-L/usr/local/Qt5.5.1/5.5/gcc_64/lib",
"-lQt5Gui",
],
visibility = ["//visibility:public"],
deps = [
":qt_core",
":qt_widgets",
],
)
cc_library(
name = "qt_opengl",
hdrs = glob(["*"]),
copts = [
"-Iinclude",
"-Iinclude/QtCore",
"-Iinclude/QtWidgets",
"-Iinclude/QtGui",
"-Iinclude/QtOpenGL",
],
includes = ["include/QtOpenGL"],
linkopts = [
"-L/usr/local/Qt5.5.1/5.5/gcc_64/lib",
"-lQt5OpenGL",
],
visibility = ["//visibility:public"],
deps = [
":qt_core",
":qt_gui",
":qt_widgets",
],
)