Skip to content
Snippets Groups Projects
Commit d8a0908e authored by unknown's avatar unknown
Browse files

编译为64位版本

parent 76aba06e
No related branches found
No related tags found
No related merge requests found
Subproject commit b9b8cadf20e8510728c7b275d94150c5cac7eb62
Subproject commit 7b3a80fecb67323312719cae13c18bdf713c5547
Subproject commit fe21c0092f2332560ea2c1dc1b5666d5ff8cb6b3
Subproject commit 24f719573092ffd1acf8e267787ed47a26d4e6ab
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'
}
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment