mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Add lsqlite3 - an SQLite 3 database binding for Lua 5 (taken from http://lua.sqlite.org/index.cgi/index)
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -15,9 +15,11 @@
|
||||
set(sqlite3_sources
|
||||
shell.c
|
||||
sqlite3.c
|
||||
lsqlite3.c
|
||||
)
|
||||
|
||||
add_library(sqlite3 OBJECT ${sqlite3_sources})
|
||||
target_include_directories(sqlite3 PRIVATE ${PROJECT_SOURCE_DIR}/src/lua)
|
||||
target_compile_options(sqlite3 PRIVATE -Wno-implicit-fallthrough -Wno-cast-function-type -Wno-sign-compare -Wno-implicit-function-declaration -Wno-int-conversion)
|
||||
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -52,6 +52,7 @@ static const luaL_Reg loadedlibs[] = {
|
||||
{LUA_DBLIBNAME, luaopen_debug},
|
||||
/****** Pi-hole modification ******/
|
||||
{LUA_PIHOLELIBNAME, luaopen_pihole},
|
||||
{LUA_LSQLITE3LIBNAME, luaopen_lsqlite3},
|
||||
/**********************************/
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
@@ -47,6 +47,8 @@ LUAMOD_API int (luaopen_package) (lua_State *L);
|
||||
/************ Pi-hole modification *************/
|
||||
#define LUA_PIHOLELIBNAME "pihole"
|
||||
LUAMOD_API int (luaopen_pihole) (lua_State *L);
|
||||
#define LUA_LSQLITE3LIBNAME "lsqlite3"
|
||||
LUAMOD_API int (luaopen_lsqlite3) (lua_State *L);
|
||||
/***********************************************/
|
||||
|
||||
/* open all previous libraries */
|
||||
|
||||
Reference in New Issue
Block a user