support debug for luajit

pull/13/head
ruki 6 years ago
parent 4710b71a66
commit b4436a648b
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 5
      packages/l/luajit/xmake.lua

@ -20,7 +20,7 @@ package("luajit")
on_install("windows", function (package)
os.cd("src")
os.vrun("msvcbuild.bat")
os.vrun("msvcbuild.bat %s", package:debug() and "debug" and "")
os.cp("lua51.lib", package:installdir("lib"))
os.cp("lua51.dll", package:installdir("lib"))
os.cp("*.h", package:installdir("include/luajit"))
@ -28,6 +28,9 @@ package("luajit")
on_install("macosx", "linux", function (package)
io.gsub("./Makefile", "export PREFIX= /usr/local", "export PREFIX=" .. package:installdir())
if package:debug() then
io.gsub("./src/Makefile", "CCDEBUG=", "CCDEBUG= -g")
end
os.vrun("make")
os.cp("src/*.a", package:installdir("lib"))
os.cp("src/*.h", package:installdir("include/luajit"))

Loading…
Cancel
Save