-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathQTabFramework.mare
56 lines (52 loc) · 1.46 KB
/
QTabFramework.mare
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
QTabFramework = cppStaticLibrary + {
defines += { "QT_SHARED", "QT_GUI_LIB", "QT_CORE_LIB", "QT_NO_DEBUG" }
if(tool == "vcxproj") {
dependencies = { "moc" }
}
if(configuration == "Debug") {
defines -= "QT_NO_DEBUG"
}
root = { "$(mareDir)" }
mocHeaderFiles = {
"$(mareDir)/QTabFramework.h"
}
files = {
"$(mareDir)/*.cpp" = cppSource,
"$(mareDir)/*.h"
"$(foreach file,$(mocHeaderFiles),$(buildDir)/moc_$(basename $(notdir $(file))).cpp)" = cppSource + {
folder = ".Qt"
}
"$(mocHeaderFiles)" = {
output = "$(buildDir)/moc_$(basename $(notdir $(file))).cpp"
message = "$(notdir $(file)) (Qt moc)"
if(tool == "vcxproj") {
moc = "$(outputDir)/moc.exe -D_MSC_VER=1600"
}
else {
moc = "moc"
}
command = "$(moc) -fstdafx.h -f$(patsubst $(mareDir)/%,%,$(file)) $(patsubst %,-D%,$(defines)) $(patsubst %,-I%,$(includePaths)) $(file) -o $(output)"
}
}
includePaths = { "$(mareDir)" }
if(platform == "Linux") {
includePaths += {
"/usr/include/qt4/QtCore",
"/usr/include/qt4/QtGui",
"/usr/include/qt4"
}
}
if(tool == "vcxproj") {
cppFlags += { "/Yu", "/Zc:wchar_t-" }
files += {
"$(mareDir)/stdafx.cpp" = cppSource + {
cppFlags += { "/Yc" }
}
}
includePaths += {
"$(mareDir)/../libcppqt/include",
"$(mareDir)/../libcppqt/include/QtCore",
"$(mareDir)/../libcppqt/include/QtGUI",
}
}
}