Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Aug 2, 2024
1 parent 6124660 commit 60ad7a2
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ elseif has_config("sqlite") then
end

if is_plat("linux") and linuxos.name() == "ubuntu" then
add_requires("apt::libsqlite3-dev")
add_requires("apt::libsqlite3-dev", {alias = "sqlite3"})
end
end

if has_config("mysql") then
if is_plat("macosx") then
add_requires("brew::mysql-client")
add_requires("brew::mysql-client", {alias = "mysql"})
elseif is_plat("linux") and linuxos.name() == "ubuntu" then
add_requires("apt::libmysqlclient-dev")
add_requires("apt::libmysqlclient-dev", {alias = "mysql"})
else
add_requires("mysql")
end
Expand Down Expand Up @@ -200,13 +200,7 @@ target("hku_utils")
if has_config("sqlcipher") then
add_packages("sqlcipher")
elseif has_config("sqlite") then
if is_plat("windows", "android", "cross") then
add_packages("sqlite3")
elseif is_plat("linux", "cross") then
add_links("sqlite3")
elseif is_plat("macosx", "iphoneos") then
add_links("sqlite3")
end
add_packages("sqlite3")
if is_plat("cross") then
add_syslinks("dl")
end
Expand Down

0 comments on commit 60ad7a2

Please sign in to comment.