summaryrefslogtreecommitdiff
path: root/ctor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ctor.cc')
-rw-r--r--ctor.cc39
1 files changed, 39 insertions, 0 deletions
diff --git a/ctor.cc b/ctor.cc
new file mode 100644
index 0000000..a00b2fb
--- /dev/null
+++ b/ctor.cc
@@ -0,0 +1,39 @@
+// -*- c++ -*-
+#include <libctor.h>
+
+namespace
+{
+BuildConfigurations myConfigs()
+{
+ return
+ {
+ {
+ .target = "qookie", // output filename
+ .sources = {
+ "src/qookie.cc",
+ "src/database.cc",
+ "src/mainwindow.cc",
+ "src/moc_mainwindow.cc",
+ },
+ .flags = {
+ .cxxflags = {
+ "-I/usr/include/qt5",
+ "-I/usr/include/qt5/QtCore",
+ "-I/usr/include/qt5/QtGui",
+ "-I/usr/include/qt5/QtWidgets",
+ "-fPIC",
+ },
+ .ldflags = {
+ "-lQt5Core",
+ "-lQt5Gui",
+ "-lQt5Widgets",
+ "-lsqlite3",
+ }
+ },
+ }
+ };
+}
+}
+
+// Register callback
+REG(myConfigs);