blob: abb9a537ec4fd92c91383022816c5997c00ab4fd (
plain)
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
|
project {
expand(QT5_INCDIR) {
$QT5_INCDIR
$(QT5_DIR)/include
}
requires += qt5
includes += $(QT5_INCDIR)
libpaths += $(QT5_DIR)/lib
lit_libs += Qt5Core
// On Linux at least, Qt5 by default requires position independent code
verbatim (make, macros) {
CPPFLAGS += -fPIC
}
verbatim (gnuace, macros) {
CPPFLAGS += -fPIC
}
specific (prop:windows) {
// On Windows it's possible for Qt to include winsock.h through windows.h
// which will conflict with winsock2.h. This makes windows.h not include
// winsock.h
macros += WIN32_LEAN_AND_MEAN
}
Define_Custom(UIC) {
command = $(QT5_DIR)/bin/uic
output_option = -o
inputext = .ui
pre_filename = ui_
header_outputext = .h
}
Define_Custom(MOC) {
automatic_in = 0
automatic_out = 0
command = $(QT5_DIR)/bin/moc
output_option = -o
pch_postrule = 1
inputext = .h
pre_extension = _moc
source_outputext = .cpp
}
Define_Custom(QRC) {
command = $(QT5_DIR)/bin/rcc
output_option = -o
commandflags = -name <%input_noext%>
pch_postrule = 1
inputext = .qrc
pre_extension = _qrc
source_outputext = .cpp
}
}
|