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
|
// -*- c++ -*-
#include <libctor.h>
namespace
{
BuildConfigurations myConfigs()
{
return
{
{
.target = "qookie", // output filename
.sources = {
"src/qookie.cc",
"src/database.cc",
"src/database_gourmet.cc",
"src/database_krecipes.cc",
"src/mainwindow.cc",
"src/moc_mainwindow.cc",
"src/viewer.cc",
"src/moc_viewer.cc",
"src/client.cc",
"src/moc_client.cc",
},
.flags = {
.cxxflags = {
"-I/usr/include/qt5",
"-I/usr/include/qt5/QtCore",
"-I/usr/include/qt5/QtGui",
"-I/usr/include/qt5/QtWidgets",
"-I/usr/include/qt5/QtNetwork",
"-fPIC",
"-Wall", "-Werror", "-Wextra",// "-Wconversion",
"-g",
},
.ldflags = {
"-lQt5Core",
"-lQt5Network",
"-lQt5Gui",
"-lQt5Widgets",
"-lsqlite3",
}
},
},
{
.target = "qookie-cast-client", // output filename
.sources = {
"src/qookie-cast-client.cc",
"src/moc_qookie-cast-client.cc",
},
.flags = {
.cxxflags = {
"-I/usr/include/qt5",
"-I/usr/include/qt5/QtCore",
"-I/usr/include/qt5/QtGui",
"-I/usr/include/qt5/QtWidgets",
"-I/usr/include/qt5/QtNetwork",
"-I/usr/include/qt5/QtWebKit",
"-fPIC",
"-Wall", "-Werror", "-Wextra",// "-Wconversion",
"-g",
},
.ldflags = {
"-lQt5Core",
"-lQt5Network",
"-lQt5Gui",
"-lQt5Widgets",
// "-lQt5WebKit",
}
},
}
};
}
}
// Register callback
REG(myConfigs);
|