summaryrefslogtreecommitdiff
path: root/ctor.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-09-02 20:22:58 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-09-02 20:23:41 +0200
commit5529b296834965afd9736b941aa2c094ff2f4648 (patch)
treef2811d12f6967ba89610cb9eb92d237c29ec163b /ctor.cc
parent77582c4c6804dade46cc7bf991f48b00e1391eff (diff)
Rename project to ctor.
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..6dbb96d
--- /dev/null
+++ b/ctor.cc
@@ -0,0 +1,39 @@
+#include "libctor.h"
+
+namespace
+{
+BuildConfigurations ctorConfigs()
+{
+ return
+ {
+ {
+ .type = TargetType::StaticLibrary,
+ .target = "libctor.a",
+ .sources = {
+ "src/build.cc",
+ "src/configure.cc",
+ "src/execute.cc",
+ "src/libctor.cc",
+ "src/rebuild.cc",
+ "src/task.cc",
+ "src/task_ar.cc",
+ "src/task_cc.cc",
+ "src/task_ld.cc",
+ "src/task_so.cc",
+ "src/tasks.cc",
+ },
+ .cxxflags = {
+ "-std=c++17",
+ "-O3",
+ "-s",
+ "-Wall",
+ "-Werror",
+ "-Isrc",
+ },
+ }
+ };
+}
+}
+
+// Convenience macro
+REG(ctorConfigs);