Add library OpenFEC v1.4.2

This commit is contained in:
dijunkun
2023-11-09 01:00:39 -08:00
parent f833a503ae
commit 6d89a2aa35
77 changed files with 20282 additions and 1 deletions

19
thirdparty/openfec/xmake.lua vendored Normal file
View File

@@ -0,0 +1,19 @@
package("openfec")
set_homepage("http://openfec.org/")
set_license("CeCCIL-C")
set_sourcedir(os.scriptdir())
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")))
import("package.tools.cmake").install(package, configs)
os.cp("src", package:installdir())
package:add("includedirs", "src")
end)
on_test(function (package)
assert(package:has_cfuncs("of_create_codec_instance", {includes = "lib_common/of_openfec_api.h"}))
end)