summaryrefslogtreecommitdiff
path: root/ctor.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-04-23 22:02:06 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-05-26 18:41:20 +0200
commite5d35d6b643dbb8ecbd3ece2a0d84ec93cadbfc1 (patch)
treecedeebe12a5062e1c7d4c644a54297203e29e59e /ctor.cc
parent54860b9c436f31cce71afd180e03b4bf93512b58 (diff)
First contact
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);