diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-05-12 15:05:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-05-12 15:05:48 +0800 |
commit | 5f074dc6a601edd730b457f6004cffacfdb6d66a (patch) | |
tree | 25bb2207bc7f1b21dadff2446aaf1cac82814431 /make.lua | |
parent | 690aadefc66e447b3f3205882c1fbcc8df987bda (diff) | |
parent | 8237a3cf5bb4005e1a9a0268c614abdd6a1f34d0 (diff) | |
download | lua-language-server-5f074dc6a601edd730b457f6004cffacfdb6d66a.zip |
Merge remote-tracking branch 'origin/master' into 2.0.0
Diffstat (limited to 'make.lua')
-rw-r--r-- | make.lua | 23 |
1 files changed, 8 insertions, 15 deletions
@@ -1,18 +1,11 @@ local lm = require 'luamake' -if lm.plat == "macos" then - lm.flags = { - "-mmacosx-version-min=10.13", - } -end - lm:import("3rd/bee.lua/make.lua", { EXE_RESOURCE = "../../make/lua-language-server.rc" }) -lm.rootdir = '3rd/' - lm:lua_dll 'lpeglabel' { + rootdir = '3rd', sources = 'lpeglabel/*.c', visibility = 'default', defines = { @@ -21,7 +14,7 @@ lm:lua_dll 'lpeglabel' { } lm:build 'install' { - '$luamake', 'lua', 'make/install.lua', lm.plat, + '$luamake', 'lua', 'make/install.lua', lm.builddir, deps = { 'lua', 'lpeglabel', @@ -30,16 +23,16 @@ lm:build 'install' { } } +local fs = require 'bee.filesystem' +local pf = require 'bee.platform' +local exe = pf.OS == 'Windows' and ".exe" or "" lm:build 'unittest' { - '$luamake', 'lua', 'make/unittest.lua', lm.plat, + fs.path 'bin' / pf.OS / ('lua-language-server' .. exe), 'test.lua', '-E', + pool = "console", deps = { 'install', 'test', } } -lm:default { - 'install', - 'test', - 'unittest', -} +lm:default 'unittest' |