Support debug cef (#295)

* Support debug cef

* Update xmake.lua
pull/296/head
yamashi 4 years ago committed by GitHub
parent 487e69c735
commit 8589bc45ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      packages/c/cef/xmake.lua

@ -22,8 +22,9 @@ package("cef")
on_install("windows|x64", function (package)
assert(package:config("vs_runtime") == "MT" and not package:config("shared"), "only support static library with MT")
package:addenv("PATH", "bin")
os.cp("Release/*.lib", package:installdir("lib"))
os.cp("Release/*.dll", package:installdir("bin"))
local distrib_type = package:debug() and "Debug" and "Release"
os.cp(path.join(distrib_type, "*.lib"), package:installdir("lib"))
os.cp(path.join(distrib_type, "*.dll"), package:installdir("bin"))
os.cp("Resources/*", package:installdir("bin"))
local configs = {}
os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua")

Loading…
Cancel
Save