aboutsummaryrefslogtreecommitdiff
path: root/config/build_systems
diff options
context:
space:
mode:
Diffstat (limited to 'config/build_systems')
-rw-r--r--config/build_systems/init.lua35
1 files changed, 35 insertions, 0 deletions
diff --git a/config/build_systems/init.lua b/config/build_systems/init.lua
new file mode 100644
index 0000000..5518369
--- /dev/null
+++ b/config/build_systems/init.lua
@@ -0,0 +1,35 @@
+build_systems["Makefile"] = function(name)
+ os.execute("make")
+end
+
+build_systems["meson.build"] = function(name)
+ os.execute("meson setup build && meson compile -C build")
+end
+
+build_systems["CMakeLists.txt"] = function(name)
+ os.execute("mkdir build && cd build && cmake ..")
+end
+
+build_systems["Cargo.toml"] = function(name)
+ os.execute("cargo build --release")
+end
+
+build_systems["v.mod"] = function(name)
+ os.execute("v . -o "..name)
+end
+
+build_systems["build.zig"] = function(name)
+ os.execute("zig build --release=fast")
+end
+
+build_systems["go.mod"] = function(name)
+ os.execute("go build")
+end
+
+build_systems["build.ninja"] = function(name)
+ os.execute("ninja -C build")
+end
+
+build_systems["configure"] = function(name)
+ os.execute("autoreconf -if && ./configure")
+end