From: Fred Morcos Date: Wed, 12 Jul 2023 11:48:16 +0000 (+0200) Subject: Meson: ODBC X-Git-Tag: rec-5.1.0-alpha1~80^2~334 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b10a442c139699f1f5035d2f2a79ba4f4be6138;p=thirdparty%2Fpdns.git Meson: ODBC --- diff --git a/meson/odbc/meson.build b/meson/odbc/meson.build new file mode 100644 index 0000000000..dbc45dca2c --- /dev/null +++ b/meson/odbc/meson.build @@ -0,0 +1,22 @@ +# ODBC +# Outputs: deps_odbc + +deps_odbc = dependency('odbc', required: false) + +if not deps_odbc.found() + odbc_config = find_program('odbc_config', required: true) + + odbc_cflags_res = run_command(odbc_config, '--cflags', check: true) + odbc_cflags = odbc_cflags_res.stdout().strip().split() + + odbc_ldflags_res = run_command(odbc_config, '--libs', check: true) + odbc_ldflags = odbc_ldflags_res.stdout().strip().split() + + odbc_version_res = run_command(odbc_config, '--version', check: true) + odbc_version = odbc_version_res.stdout().strip() + + deps_odbc = declare_dependency(compile_args: odbc_cflags, link_args: odbc_ldflags, version: odbc_version) +endif + +summary('ODBC', deps_odbc.found(), bool_yn: true, section: 'Configuration') +summary('ODBC Version', deps_odbc.version(), section: 'Configuration') diff --git a/meson_options.txt b/meson_options.txt index c478567c44..fc165cc8ae 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -20,3 +20,5 @@ option('gss-tsig', type: 'boolean', value: false, description: 'Enable GSS-TSIG option('socket-dir', type: 'string', value: '/var/run', description: 'Where the control socket lives') option('module-gmysql', type: 'boolean', value: true, description: 'Build the gmysql backend') option('module-gmysql-dyn', type: 'boolean', value: false, description: 'Build the dynamically loadable gmysql backend') +option('module-godbc', type: 'boolean', value: false, description: 'Build the godbc backend') +option('module-godbc-dyn', type: 'boolean', value: false, description: 'Build the dynamically loadable godbc backend')