|
@@ -10,7 +10,7 @@ package("sqlite3")
|
|
|
add_versions("3.23.0", "b7711a1800a071674c2bf76898ae8584fc6c9643cfe933cfc1bc54361e3a6e49")
|
|
|
|
|
|
on_install("windows", function (package)
|
|
|
- os.vrun("nmake DEBUG=%s -f Makefile.msc DYNAMIC_SHELL=1 PLATFORM=%s", package:debug() and "1" or "0", package:arch())
|
|
|
+ os.vrun("nmake DEBUG=%s -f Makefile.msc DYNAMIC_SHELL=1 PLATFORM=%s USE_CRT_DLL=%s", package:debug() and "1" or "0", package:arch(), package:config("vs_runtime") == "MD" and "1" or "0")
|
|
|
os.cp("*.h", package:installdir("include"))
|
|
|
os.cp("sqlite3.lib", package:installdir("lib"))
|
|
|
os.cp("sqlite3.pdb", package:installdir("lib"))
|
|
@@ -20,3 +20,7 @@ package("sqlite3")
|
|
|
on_install("macosx", "linux", function (package)
|
|
|
import("package.tools.autoconf").install(package, {package:debug() and "--enable-debug" or ""})
|
|
|
end)
|
|
|
+
|
|
|
+ on_test(function (package)
|
|
|
+ assert(import("lib.detect.has_cfuncs")("sqlite3_open_v2", {configs = package:fetch(), includes = "sqlite3.h"}))
|
|
|
+ end)
|