local lm = require 'luamake' local platform = require 'bee.platform' local exe = platform.OS == 'Windows' and ".exe" or "" lm.bindir = "bin/"..platform.OS lm.EXE_DIR = "" lm.INTERNAL = "on" lm:import "3rd/bee.lua/make.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"}, includes = { "3rd/bee.lua", "3rd/bee.lua/3rd/lua", }, sources = "make/modules.cpp", windows = { sources = { "make/lua-language-server.rc", } } } 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.."/lua-language-server"..exe, "3rd/bee.lua/test/test.lua", pool = "console", deps = { "lua-language-server", "copy_bootstrap" }, } lm:build 'unit-test' { lm.bindir.."/lua-language-server"..exe, 'test.lua', pool = "console", deps = { "bee-test", } } lm:default { "bee-test", "unit-test", "install", }