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
|
local lm = require 'luamake'
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.builddir,
deps = {
'lua',
'lpeglabel',
'bee',
'bootstrap',
}
}
local fs = require 'bee.filesystem'
local pf = require 'bee.platform'
local exe = pf.OS == 'Windows' and ".exe" or ""
lm:build 'unittest' {
fs.path 'bin' / pf.OS / ('lua-language-server' .. exe), 'test.lua', '-E',
pool = "console",
deps = {
'install',
'test',
}
}
lm:default 'unittest'
|