blob: 5518369a8fefcd01b00e290fcf6d2cf8d0f92c0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
|