Skip to content

Commit

Permalink
chore: fix lua lang output in xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Feb 4, 2025
1 parent d681bc0 commit ecd6856
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ target("legacy-script-engine")
set_basename("legacy-script-engine-lua")
after_build(function(target)
local baselibPath = path.join(os.projectdir(), "src/baselib/BaseLib.lua")
local langPath = path.join(os.projectdir(), "src/lang")
local langPath = path.join(os.projectdir(), "src/lang/")
local outputPath = path.join(os.projectdir(), "bin/" .. target:name())
local baselibOutputPath = path.join(outputPath, "baselib")
os.mkdir(baselibOutputPath)
Expand All @@ -117,7 +117,7 @@ target("legacy-script-engine")
set_basename("legacy-script-engine-quickjs")
after_build(function(target)
local baselibPath = path.join(os.projectdir(), "src/baselib/BaseLib.js")
local langPath = path.join(os.projectdir(), "src/lang")
local langPath = path.join(os.projectdir(), "src/lang/")
local outputPath = path.join(os.projectdir(), "bin/" .. target:name())
local baselibOutputPath = path.join(outputPath, "baselib")
os.mkdir(baselibOutputPath)
Expand All @@ -133,7 +133,7 @@ target("legacy-script-engine")
set_basename("legacy-script-engine-python")
after_build(function(target)
local baselibPath = path.join(os.projectdir(), "src/baselib/BaseLib.py")
local langPath = path.join(os.projectdir(), "src/lang")
local langPath = path.join(os.projectdir(), "src/lang/")
local outputPath = path.join(os.projectdir(), "bin/" .. target:name())
local baselibOutputPath = path.join(outputPath, "baselib")
os.mkdir(baselibOutputPath)
Expand All @@ -149,8 +149,8 @@ target("legacy-script-engine")
remove_files("src/legacy/legacyapi/db/impl/mysql/*.cpp")
set_basename("legacy-script-engine-nodejs")
after_build(function(target)
local langPath = path.join(os.projectdir(), "src/lang")
local outputPath = path.join(os.projectdir(), "bin/" .. target:name() .. "/lang")
local langPath = path.join(os.projectdir(), "src/lang/")
local outputPath = path.join(os.projectdir(), "bin/" .. target:name())
os.cp(langPath, outputPath)
end)
end

0 comments on commit ecd6856

Please sign in to comment.