forked from actboy168/lua-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.lua
39 lines (32 loc) · 889 Bytes
/
make.lua
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
36
37
38
39
local lm = require "luamake"
require "compile.common.detect_platform"
if lm.os == "windows" then
require "compile.windows.make"
return
elseif lm.os == "macos" then
require "compile.macos.make"
return
end
lm.builddir = ("build/%s/%s"):format(lm.platform, lm.mode)
lm.EXE_DIR = "publish/bin/"..lm.os
lm.EXE_NAME = "lua-debug"
lm:import "3rd/bee.lua/make.lua"
lm.runtime_platform = lm.platform
require "compile.common.runtime"
lm:build 'copy_extension' {
'$luamake', 'lua', 'compile/copy_extension.lua',
}
lm:build 'update_version' {
'$luamake', 'lua', 'compile/update_version.lua',
}
lm:copy 'copy_bootstrap' {
input = "extension/script/bootstrap.lua",
output = "publish/bin/"..lm.os.."/main.lua",
}
lm:default {
"copy_extension",
"update_version",
"copy_bootstrap",
"lua-debug",
"runtime",
}