forked from LuaLS/lua-language-server
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.lua
More file actions
Latest commit
113 lines (96 loc) · 2.02 KB
/
Copy pathmake.lua
File metadata and controls
113 lines (96 loc) · 2.02 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
locallm=require'luamake'
lm.bindir="bin"
lm.c=lm.compiler=='msvc' and'c89' or'c11'
lm.cxx='c++17'
iflm.sanitizethen
lm.mode="debug"
lm.flags="-fsanitize=address"
lm.gcc= {
ldflags="-fsanitize=address"
}
lm.clang= {
ldflags="-fsanitize=address"
}
end
---@diagnosticdisable-next-line:codestyle-check
lm.EXE_DIR=""
localincludeCodeFormat=true
require"make.detect_platform"
lm:import"3rd/bee.lua"
lm:import"make/code_format.lua"
lm:source_set'lpeglabel' {
rootdir='3rd',
includes="bee.lua/3rd/lua",
sources="lpeglabel/*.c",
defines= {
'MAXRECLEVEL=1000',
},
}
lm:executable"lua-language-server" {
deps= {
"lpeglabel",
"source_bootstrap",
includeCodeFormatand"code_format" ornil,
},
includes= {
"3rd/bee.lua",
"3rd/bee.lua/3rd/lua",
},
sources="make/modules.cpp",
windows= {
sources= {
"make/lua-language-server.rc",
}
},
defines= {
includeCodeFormatand'CODE_FORMAT' ornil,
},
linux= {
crt="static",
}
}
lm:copy"copy_bootstrap" {
input="make/bootstrap.lua",
output=lm.bindir.."/main.lua",
}
lm:msvc_copydll'copy_vcrt' {
type="vcrt",
output=lm.bindir,
}
lm:phony"all" {
deps= {
"lua-language-server",
"copy_bootstrap",
},
windows= {
deps= {
"copy_vcrt"
}
}
}
iflm.notestthen
lm:default {
"all",
}
return
end
localplatform=require'bee.platform'
localexe=platform.OS=='Windows' and".exe" or""
lm:rule"runtest" {
lm.bindir.."/lua-language-server" ..exe, "$in",
description="Run test: $in.",
pool="console",
}
lm:build"bee-test" {
rule="runtest",
deps= { "all" },
input="3rd/bee.lua/test/test.lua",
}
lm:build'unit-test' {
rule="runtest",
deps= { "bee-test", "all" },
input="test.lua",
}
lm:default {
"unit-test",
}