Project

General

Profile

Feature #1188 ยป 0046-Meson-Add-odbc-fcdb-support.patch

Marko Lindqvist, 12/13/2024 05:56 AM

View differences:

doc/INSTALL.meson
fcdb (array):
fcdb (player authentication) backends to build.
Possible backends are sqlite3 and mariadb.
Possible backends are sqlite3, mariadb, and odbc.
The default is sqlite3.
meson.build
fcdb_dep = [ fcdb_dep, dependency('mariadb') ]
endif
if get_option('fcdb').contains('odbc')
fcdb = true
priv_conf_data.set('HAVE_FCDB_ODBC', 1)
fcdb_src = [ fcdb_src,
'dependencies/luasql/src/ls_odbc.c',
]
fcdb_dep = [ fcdb_dep, dependency('odbc') ]
endif
if fcdb
if emscripten
error('FCDB not supported on emscripten builds.')
meson_options.txt
option('fcdb',
type: 'array',
choices: ['sqlite3','mariadb'],
choices: ['sqlite3','mariadb','odbc'],
value: ['sqlite3'],
description: 'fcdb (player authentication) backends to build')
    (1-1/1)