mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Fix OpenFEC compile error on Windows platform
This commit is contained in:
5
thirdparty/openfec/xmake.lua
vendored
5
thirdparty/openfec/xmake.lua
vendored
@@ -7,11 +7,14 @@ package("openfec")
|
||||
on_install(function (package)
|
||||
local configs = {}
|
||||
table.insert(configs, "-DDEBUG:STRING=" .. (package:debug() and "ON" or "OFF"))
|
||||
table.insert(configs, "-DLIBRARY_OUTPUT_PATH=" .. (path.join(package:installdir(), "lib")))
|
||||
table.insert(configs, "-DLIBRARY_OUTPUT_PATH=" .. (path.join(package:installdir(), "lib")))
|
||||
|
||||
import("package.tools.cmake").install(package, configs)
|
||||
os.cp("src", package:installdir())
|
||||
package:add("includedirs", "src")
|
||||
if is_plat("windows") then
|
||||
os.cp(path.join(package:installdir(), "lib/Release/openfec.lib"), package:installdir("lib"))
|
||||
end
|
||||
end)
|
||||
|
||||
on_test(function (package)
|
||||
|
||||
Reference in New Issue
Block a user