1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Actually expose the MySQL api.

This commit is contained in:
Sandu Liviu Catalin 2020-04-27 15:02:10 +03:00
parent b86c4cea2b
commit 82f183599f
2 changed files with 8 additions and 0 deletions

View File

@ -80,6 +80,8 @@ target_link_libraries(SqModule SimpleINI HashLib B64Lib AES256Lib WhirlpoolLib T
if(ENABLE_MYSQL)
# Include the implementation
target_sources(SqModule PRIVATE Library/MySQL.cpp Library/MySQL.hpp)
# Specify that mysql is enabled
target_compile_definitions(SqModule PRIVATE SQ_ENABLE_MYSQL=1)
# Use builting client on windows (for now)
if(WIN32 OR MINGW)
target_link_libraries(SqModule mariadbclient)

View File

@ -39,6 +39,9 @@ extern void Register_Chrono(HSQUIRRELVM vm);
extern void Register_Crypt(HSQUIRRELVM vm);
extern void Register_IO(HSQUIRRELVM vm);
extern void Register_MMDB(HSQUIRRELVM vm);
#ifdef SQ_ENABLE_MYSQL
extern void Register_MySQL(HSQUIRRELVM vm);
#endif
extern void Register_Numeric(HSQUIRRELVM vm);
extern void Register_Socket(HSQUIRRELVM vm);
extern void Register_SQLite(HSQUIRRELVM vm);
@ -88,6 +91,9 @@ bool RegisterAPI(HSQUIRRELVM vm)
Register_Crypt(vm);
Register_IO(vm);
Register_MMDB(vm);
#ifdef SQ_ENABLE_MYSQL
Register_MySQL(vm);
#endif
Register_Numeric(vm);
Register_Socket(vm);
Register_SQLite(vm);