package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.2 KiB
31 lines
1.2 KiB
package("sqlite3") |
|
|
|
set_homepage("https://sqlite.org/") |
|
set_description("The most used database engine in the world") |
|
|
|
set_urls("https://sqlite.org/2018/sqlite-autoconf-$(version)000.tar.gz", |
|
{version = function (version) return version:gsub("%.", "") end}) |
|
|
|
add_versions("3.24.0", "d9d14e88c6fb6d68de9ca0d1f9797477d82fc3aed613558f87ffbdbbc5ceb74a") |
|
add_versions("3.23.0", "b7711a1800a071674c2bf76898ae8584fc6c9643cfe933cfc1bc54361e3a6e49") |
|
|
|
on_build("windows", function (package) |
|
os.vrun("nmake DEBUG=%s -f Makefile.msc", package:debug() and "1" or "0") |
|
end) |
|
|
|
on_install("windows", function (package) |
|
os.cp("*.h", package:installdir("include")) |
|
os.cp("sqlite3.lib", package:installdir("lib")) |
|
os.cp("sqlite3.pdb", package:installdir("lib")) |
|
os.cp("sqlite3.dll", package:installdir("lib")) |
|
os.cp("sqlite3.def", package:installdir("lib")) |
|
end) |
|
|
|
on_build("macosx", "linux", function (package) |
|
os.vrun("./configure --prefix=%s %s", package:installdir(), package:debug() and "--enable-debug" or "") |
|
os.vrun("make") |
|
end) |
|
|
|
on_install("macosx", "linux", function (package) |
|
os.vrun("make install") |
|
end)
|
|
|