Premake: Fix SQLite inclusion.

This commit is contained in:
/dev/urandom 2016-08-26 22:46:37 +02:00
parent bcb10258e1
commit 86c6450ac2
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E
2 changed files with 8 additions and 3 deletions

View File

@ -11,8 +11,12 @@ end
function sqlite3.import() function sqlite3.import()
if not sqlite3.settings then error("Run sqlite3.setup first") end if not sqlite3.settings then error("Run sqlite3.setup first") end
links { "sqlite3" }
sqlite3.includes() sqlite3.includes()
sqlite3.links()
end
function sqlite3.links()
links { "sqlite3" }
end end
function sqlite3.includes() function sqlite3.includes()
@ -34,8 +38,8 @@ function sqlite3.project()
files files
{ {
path.join(sqlite3.settings.source, "*.c"), path.join(sqlite3.settings.source, "sqlite3*.c"),
path.join(sqlite3.settings.source, "*.h"), path.join(sqlite3.settings.source, "sqlite3*.h"),
} }
-- not our code, ignore POSIX usage warnings for now -- not our code, ignore POSIX usage warnings for now

View File

@ -369,6 +369,7 @@ workspace "iw4x"
mongoose.project() mongoose.project()
pdcurses.project() pdcurses.project()
protobuf.project() protobuf.project()
sqlite3.project()
winksignals.project() winksignals.project()
zlib.project() zlib.project()