From 86c6450ac2359de209d91269e850425b631ec44f Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Fri, 26 Aug 2016 22:46:37 +0200 Subject: [PATCH] Premake: Fix SQLite inclusion. --- premake/sqlite3.lua | 10 +++++++--- premake5.lua | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/premake/sqlite3.lua b/premake/sqlite3.lua index ad4597e7..730eea78 100644 --- a/premake/sqlite3.lua +++ b/premake/sqlite3.lua @@ -11,8 +11,12 @@ end function sqlite3.import() if not sqlite3.settings then error("Run sqlite3.setup first") end - links { "sqlite3" } sqlite3.includes() + sqlite3.links() +end + +function sqlite3.links() + links { "sqlite3" } end function sqlite3.includes() @@ -34,8 +38,8 @@ function sqlite3.project() files { - path.join(sqlite3.settings.source, "*.c"), - path.join(sqlite3.settings.source, "*.h"), + path.join(sqlite3.settings.source, "sqlite3*.c"), + path.join(sqlite3.settings.source, "sqlite3*.h"), } -- not our code, ignore POSIX usage warnings for now diff --git a/premake5.lua b/premake5.lua index 30942cab..db2bd73b 100644 --- a/premake5.lua +++ b/premake5.lua @@ -369,6 +369,7 @@ workspace "iw4x" mongoose.project() pdcurses.project() protobuf.project() + sqlite3.project() winksignals.project() zlib.project()