summaryrefslogtreecommitdiff
path: root/ctor.cc
blob: 058506f7f2f688bf041b8d1bdb5501d8de7f6435 (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
// -*- 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",
			},
			.flags = {
				.cxxflags = {
					"-I/usr/include/qt5",
					"-I/usr/include/qt5/QtCore",
					"-I/usr/include/qt5/QtGui",
					"-I/usr/include/qt5/QtWidgets",
					"-fPIC",
					"-Wall", "-Werror", "-Wextra",// "-Wconversion",
					"-g",
				},
				.ldflags = {
					"-lQt5Core",
					"-lQt5Gui",
					"-lQt5Widgets",
					"-lsqlite3",
				}
			},
		}
	};
}
}

// Register callback
REG(myConfigs);