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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
local lm = require 'luamake'
local platform = require 'bee.platform'
local fs = require 'bee.filesystem'
local exe = platform.OS == 'Windows' and ".exe" or ""
lm.bindir = "bin/"..platform.OS
lm.EXE_NAME = "lua-language-server"
lm.EXE_DIR = lm.bindir
lm.EXE_RESOURCE = "../../make/lua-language-server.rc"
lm:import "3rd/bee.lua/make.lua"
lm:lua_dll 'lpeglabel' {
rootdir = '3rd',
sources = 'lpeglabel/*.c',
visibility = 'default',
defines = {
'MAXRECLEVEL=1000',
},
}
lm:build 'install' {
'$luamake', 'lua', 'make/install.lua',
}
lm:copy "copy_bootstrap" {
input = "make/bootstrap.lua",
output = lm.bindir.."/main.lua",
}
lm:build "bee-test" {
lm.bindir.."/"..lm.EXE_NAME..exe, "3rd/bee.lua/test/test.lua",
pool = "console",
deps = {
lm.EXE_NAME,
"copy_bootstrap"
},
}
lm:build 'unit-test' {
lm.bindir.."/"..lm.EXE_NAME..exe, 'test.lua',
pool = "console",
deps = {
"bee-test",
"lpeglabel",
}
}
lm:default {
"bee-test",
"unit-test",
"install",
}
|