pull/6358/merge
ruki 2 months ago committed by GitHub
commit c380059949
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 20
      packages/m/mariadb-connector-c/xmake.lua

@ -3,11 +3,13 @@ package("mariadb-connector-c")
set_description("MariaDB Connector/C is used to connect applications developed in C/C++ to MariaDB and MySQL databases.")
set_license("LGPL-2.1")
add_urls("https://github.com/mariadb-corporation/mariadb-connector-c/archive/refs/tags/v$(version).tar.gz")
add_urls("https://github.com/mariadb-corporation/mariadb-connector-c/archive/refs/tags/$(version).tar.gz",
"https://github.com/mariadb-corporation/mariadb-connector-c.git", {submodules = false})
add_versions("3.3.9", "062b9ec5c26cbb236a78f0ba26981272053f59bdfc113040bab904a9da36d31f")
add_versions("3.3.4", "ea6a23850d6a2f6f2e0d9e9fdb7d94fe905a4317f73842272cf121ed25903e1f")
add_versions("3.1.13", "361136e9c365259397190109d50f8b6a65c628177792273b4acdb6978942b5e7")
add_versions("v3.4.4", "79a1c5a3de86e7daa0a456c502d60dc15debe105932ad6a0d25024908603f433")
add_versions("v3.3.9", "062b9ec5c26cbb236a78f0ba26981272053f59bdfc113040bab904a9da36d31f")
add_versions("v3.3.4", "ea6a23850d6a2f6f2e0d9e9fdb7d94fe905a4317f73842272cf121ed25903e1f")
add_versions("v3.1.13", "361136e9c365259397190109d50f8b6a65c628177792273b4acdb6978942b5e7")
add_deps("cmake")
@ -18,9 +20,7 @@ package("mariadb-connector-c")
add_configs("msi", {description = "Build MSI installation package.", default = false, type = "boolean"})
add_configs("rtc", {description = "Enables runtime checks for debug builds.", default = false, type = "boolean"})
add_configs("signcode", {description = "Digitally sign files.", default = false, type = "boolean"})
end
if not is_plat("windows") then
else
add_configs("mysqlcompat", {description = "Creates libmysql* symbolic links.", default = false, type = "boolean"})
end
@ -40,7 +40,7 @@ package("mariadb-connector-c")
else
package:add("links", "mariadbclient")
if package:is_plat("windows") then
package:add("syslinks", "secur32", "shlwapi")
package:add("syslinks", "secur32", "shlwapi", "bcrypt")
end
end
@ -55,8 +55,10 @@ package("mariadb-connector-c")
on_install("bsd", "linux", "windows", function(package)
io.replace("CMakeLists.txt", "-Werror", "", {plain = true})
local configs = {}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
for name, enabled in pairs(package:configs()) do
if not package:extraconf("configs", name, "builtin") then
if enabled then

Loading…
Cancel
Save