mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-22 04:37:13 +01:00
Port legacy SQLite implementation.
This commit is contained in:
parent
82dfda13cb
commit
f5592208fa
@ -141,10 +141,13 @@ if(ENABLE_DATA_SQLITE)
|
|||||||
# We need to make sqlite3.h available for include. Ugly but POCO doesn't expose this directly.
|
# We need to make sqlite3.h available for include. Ugly but POCO doesn't expose this directly.
|
||||||
target_include_directories(SqModule PRIVATE "${PROJECT_SOURCE_DIR}/vendor/POCO/Data/SQLite/src")
|
target_include_directories(SqModule PRIVATE "${PROJECT_SOURCE_DIR}/vendor/POCO/Data/SQLite/src")
|
||||||
endif()
|
endif()
|
||||||
|
message(STATUS SQLite was enabled)
|
||||||
# Link the libraries
|
# Link the libraries
|
||||||
target_link_libraries(SqModule Poco::DataSQLite)
|
target_link_libraries(SqModule Poco::DataSQLite)
|
||||||
# Inform the plug-in that it can make use of this library
|
# Inform the plug-in that it can make use of this library
|
||||||
target_compile_definitions(SqModule PRIVATE SQMOD_POCO_HAS_SQLITE=1)
|
target_compile_definitions(SqModule PRIVATE SQMOD_POCO_HAS_SQLITE=1)
|
||||||
|
# Include legacy implementation sources
|
||||||
|
target_sources(SqModule PRIVATE Library/SQLite.hpp Library/SQLite.cpp)
|
||||||
endif()
|
endif()
|
||||||
# Does POCO have MySLQ support?
|
# Does POCO have MySLQ support?
|
||||||
find_package(MySQL)
|
find_package(MySQL)
|
||||||
|
3156
module/Library/SQLite.cpp
Normal file
3156
module/Library/SQLite.cpp
Normal file
File diff suppressed because it is too large
Load Diff
2503
module/Library/SQLite.hpp
Normal file
2503
module/Library/SQLite.hpp
Normal file
File diff suppressed because it is too large
Load Diff
@ -41,6 +41,9 @@ extern void Register_String(HSQUIRRELVM vm);
|
|||||||
extern void Register_System(HSQUIRRELVM vm);
|
extern void Register_System(HSQUIRRELVM vm);
|
||||||
extern void Register_Utils(HSQUIRRELVM vm);
|
extern void Register_Utils(HSQUIRRELVM vm);
|
||||||
extern void Register_ZMQ(HSQUIRRELVM vm);
|
extern void Register_ZMQ(HSQUIRRELVM vm);
|
||||||
|
#ifdef SQMOD_POCO_HAS_SQLITE
|
||||||
|
extern void Register_SQLite(HSQUIRRELVM vm);
|
||||||
|
#endif
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
extern void Register_POCO(HSQUIRRELVM vm);
|
extern void Register_POCO(HSQUIRRELVM vm);
|
||||||
@ -98,6 +101,9 @@ bool RegisterAPI(HSQUIRRELVM vm)
|
|||||||
Register_System(vm);
|
Register_System(vm);
|
||||||
Register_Utils(vm);
|
Register_Utils(vm);
|
||||||
Register_ZMQ(vm);
|
Register_ZMQ(vm);
|
||||||
|
#ifdef SQMOD_POCO_HAS_SQLITE
|
||||||
|
Register_SQLite(vm);
|
||||||
|
#endif
|
||||||
|
|
||||||
Register_POCO(vm);
|
Register_POCO(vm);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user