2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 01:49:48 +00:00
kea/src/bin/shell/meson.build

42 lines
1.1 KiB
Meson
Raw Normal View History

2025-03-03 17:01:09 +02:00
if SHELL_OPT != 'enabled'
2025-02-07 02:41:02 +01:00
subdir_done()
endif
kea_shell_conf_data = configuration_data()
kea_shell_conf_data.set('PYTHON', PYTHON.full_path())
2025-02-28 11:00:03 +02:00
kea_shell_conf_data.set('PACKAGE_VERSION', PROJECT_VERSION)
kea_shell_conf_data.set('EXTENDED_VERSION', PROJECT_VERSION + ' (tarball)')
2025-02-07 02:41:02 +01:00
r = run_command(
PYTHON,
2025-02-07 02:41:02 +01:00
'-c',
'import sysconfig; print(sysconfig.get_paths()[\'purelib\'])',
check: true,
)
python_site_package = r.stdout().strip()
pkgpythondir = f'@python_site_package@/kea'
kea_shell_conf_data.set('PKGPYTHONDIR', pkgpythondir)
2025-02-07 02:41:02 +01:00
configure_file(
input: 'kea-shell.in',
output: 'kea-shell',
configuration: kea_shell_conf_data,
install: true,
install_dir: get_option('sbindir'),
)
# Install into the system seti package location or not?
configure_file(
input: 'kea_conn.py',
output: 'kea_conn.py',
copy: true,
install: false,
install_dir: pkgpythondir,
2025-02-07 02:41:02 +01:00
)
configure_file(
input: 'kea_connector3.py',
output: 'kea_connector3.py',
copy: true,
install: false,
install_dir: pkgpythondir,
2025-02-07 02:41:02 +01:00
)
2025-02-18 15:54:20 +01:00
subdir('tests')