summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-23 10:34:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-23 10:34:23 +0800
commit41ee24962d3011e179ef0b4ab8acf252132687ff (patch)
tree8b35a79033486fa6c8667f7043d8027be7972495 /server
parent6d6ff4cddafbfafda0c4c4006a775cca19472d10 (diff)
downloadlua-language-server-41ee24962d3011e179ef0b4ab8acf252132687ff.zip
编译配置
Diffstat (limited to 'server')
-rw-r--r--server/compile.lua36
1 files changed, 0 insertions, 36 deletions
diff --git a/server/compile.lua b/server/compile.lua
deleted file mode 100644
index 0dc700af..00000000
--- a/server/compile.lua
+++ /dev/null
@@ -1,36 +0,0 @@
-local fs = require 'bee.filesystem'
-local root = fs.current_path()
-
-local function compileRelease()
- local msvc = require 'msvc'
- if not msvc:initialize(141, 'utf8') then
- error('Cannot found Visual Studio Toolset.')
- end
-
- local property = {
- Configuration = 'Release',
- Platform = 'x86'
- }
- msvc:compile('build', root / 'bee.lua' / 'bee.sln', property)
-end
-
-local function copyFile()
- local source = root / 'bee.lua' / 'bin' / 'msvc_x86_Release'
- local target = root / 'bin'
- for _, name in ipairs {
- 'bee.dll',
- {'lua.exe', 'lua-language-server.exe'},
- 'lua54.dll',
- } do
- if type(name) == 'string' then
- fs.copy_file(source / name, target / name, true)
- else
- fs.copy_file(source / name[1], target / name[2], true)
- end
- end
-end
-
-compileRelease()
-copyFile()
-
-print 'make complete.'