xmake-repo
xmake-repo copied to clipboard
coinutils: add new package
Just test against MSVC. So how to fix fortran issue? Like use UCRT64/CLANG64 and use flang? It does not seem MSYS2 MINGW64 runner has same issue as Windows... :/ https://packages.msys2.org/base/mingw-w64-flang
Keep the name consistent with existing packages? https://github.com/xmake-io/xmake-repo/tree/dev/packages/c/coin-or-ipopt https://github.com/xmake-io/xmake-repo/tree/dev/packages/c/coin-or-asl
😅 vcpkg: coinutils conan: coin-utils pacman: coin-or-coinutils apt: coinor-libcoinutils-dev
I suggest coin-or-coinutils.
You can try xmake port, but we need to fix config.h.in
io.writefile("xmake.lua", [[
add_rules("mode.debug", "mode.release")
add_requires("bzip2", "zlib")
set_languages("c++11")
target("CoinUtils")
set_kind("$(kind)")
add_files("CoinUtils/src/*.cpp")
add_headerfiles("CoinUtils/src/*.hpp", "CoinUtils/src/*.h", {prefixdir = "coin"})
add_defines("COINUTILS_BUILD")
add_packages("bzip2", "zlib")
if is_plat("macosx", "iphoneos") then
add_frameworks("Accelerate")
elseif is_plat("linux", "bsd") then
add_syslinks("m")
end
]])
import("package.tools.xmake").install(package)
You can try xmake port, but we need to fix config.h.in
io.writefile("xmake.lua", [[ add_rules("mode.debug", "mode.release") add_requires("bzip2", "zlib") set_languages("c++11") target("CoinUtils") set_kind("$(kind)") add_files("CoinUtils/src/*.cpp") add_headerfiles("CoinUtils/src/*.hpp", "CoinUtils/src/*.h", {prefixdir = "coin"}) add_defines("COINUTILS_BUILD") add_packages("bzip2", "zlib") if is_plat("macosx", "iphoneos") then add_frameworks("Accelerate") elseif is_plat("linux", "bsd") then add_syslinks("m") end ]]) import("package.tools.xmake").install(package)
I do not know how to fix Windows shared library build, we could just try to use export_all rule.
Bot detected the issue body's language is not English, translate it automatically.
You can try xmake port, but we need to fix config.h.in
io.writefile("xmake.lua", [[ add_rules("mode.debug", "mode.release") add_requires("bzip2", "zlib") set_languages("c++11") target("CoinUtils") set_kind("$(kind)") add_files("CoinUtils/src/*.cpp") add_headerfiles("CoinUtils/src/*.hpp", "CoinUtils/src/*.h", {prefixdir = "coin"}) add_defines("COINUTILS_BUILD") add_packages("bzip2", "zlib") if is_plat("macosx", "iphoneos") then add_frameworks("Accelerate") elseif is_plat("linux", "bsd") then add_syslinks("m") end ]]) import("package.tools.xmake").install(package)
I do not know how to fix Windows part, we could just try to use export_all util. (COINUTILS_BUILD is for MSVC only)