summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <sumnekosun@intranet.123u.com>2019-04-02 15:26:44 +0800
committerunknown <sumnekosun@intranet.123u.com>2019-04-02 15:26:44 +0800
commitd8a0908e2ceff54e54379a7b36189eedd29f2361 (patch)
tree25914842749e53476712ef9aad9d1da10c7cc866
parent76aba06eb3e0056961558698ec088e5edab58998 (diff)
downloadlua-language-server-d8a0908e2ceff54e54379a7b36189eedd29f2361.zip
编译为64位版本
m---------3rd/bee.lua0
m---------3rd/luamake0
-rw-r--r--make.lua29
-rw-r--r--make/install.lua7
4 files changed, 22 insertions, 14 deletions
diff --git a/3rd/bee.lua b/3rd/bee.lua
-Subproject b9b8cadf20e8510728c7b275d94150c5cac7eb6
+Subproject 7b3a80fecb67323312719cae13c18bdf713c554
diff --git a/3rd/luamake b/3rd/luamake
-Subproject fe21c0092f2332560ea2c1dc1b5666d5ff8cb6b
+Subproject 24f719573092ffd1acf8e267787ed47a26d4e6a
diff --git a/make.lua b/make.lua
index aee8deeb..87de9334 100644
--- a/make.lua
+++ b/make.lua
@@ -1,15 +1,25 @@
local lm = require 'luamake'
-lm:lua_library 'lni' {
- sources = '3rd/lni/src/*.cpp'
+lm:import '3rd/bee.lua/make.lua'
+
+lm.arch = 'x64'
+lm.rootdir = '3rd/'
+
+lm:shared_library 'lni' {
+ deps = 'lua54',
+ sources = {
+ 'lni/src/main.cpp',
+ }
}
-lm:lua_library 'lpeglabel' {
- sources = '3rd/lpeglabel/*.c'
+lm:shared_library 'lpeglabel' {
+ deps = 'lua54',
+ sources = 'lpeglabel/*.c',
+ ldflags = '/EXPORT:luaopen_lpeglabel'
}
lm:executable 'rcedit' {
- sources = '3rd/rcedit/src/*.cc',
+ sources = 'rcedit/src/*.cc',
defines = {
'_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING'
},
@@ -20,11 +30,6 @@ lm:executable 'rcedit' {
}
}
-lm:build 'bee' {
- '$luamake', '-C', '3rd/bee.lua',
- pool = 'console'
-}
-
lm:build 'install' {
'$luamake', 'lua', 'make/install.lua',
deps = {
@@ -34,3 +39,7 @@ lm:build 'install' {
'rcedit'
}
}
+
+lm:default {
+ 'install'
+}
diff --git a/make/install.lua b/make/install.lua
index 910dab9e..448c266f 100644
--- a/make/install.lua
+++ b/make/install.lua
@@ -5,14 +5,13 @@ local CWD = fs.current_path()
local output = CWD / 'server' / 'bin'
local bindir = CWD / 'build' / 'msvc' / 'bin'
-local beedir = CWD / '3rd' / 'bee.lua' / 'bin' / 'msvc_x86_release'
fs.create_directories(output)
fs.copy_file(bindir / 'lni.dll', output / 'lni.dll', true)
fs.copy_file(bindir / 'lpeglabel.dll', output / 'lpeglabel.dll', true)
-fs.copy_file(beedir / 'bee.dll', output / 'bee.dll', true)
-fs.copy_file(beedir / 'lua54.dll', output / 'lua54.dll', true)
-fs.copy_file(beedir / 'lua.exe', output / 'lua-language-server.exe', true)
+fs.copy_file(bindir / 'bee.dll', output / 'bee.dll', true)
+fs.copy_file(bindir / 'lua54.dll', output / 'lua54.dll', true)
+fs.copy_file(bindir / 'lua.exe', output / 'lua-language-server.exe', true)
local process = assert(sp.spawn {