Fix OpenFEC compile error on Windows platform

This commit is contained in:
dijunkun
2023-11-14 16:11:57 +08:00
parent 270ad8df43
commit e410e4e0c4
54 changed files with 1346 additions and 1245 deletions

View File

@@ -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)