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..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);