2024-12-19 13:27:16 +02:00
|
|
|
if not mysql.found()
|
2025-01-29 13:23:29 +02:00
|
|
|
subdir_done()
|
2024-12-19 13:27:16 +02:00
|
|
|
endif
|
|
|
|
|
2025-01-29 13:23:29 +02:00
|
|
|
kea_mysql_lib = library(
|
|
|
|
'kea-mysql',
|
|
|
|
'mysql_binding.cc',
|
|
|
|
'mysql_connection.cc',
|
|
|
|
cpp_args: [f'-DKEA_ADMIN="@KEA_ADMIN@"'],
|
2025-02-04 12:07:49 +02:00
|
|
|
dependencies: [boost, mysql],
|
2025-01-29 13:23:29 +02:00
|
|
|
include_directories: [include_directories('.')] + INCLUDES,
|
|
|
|
install: true,
|
|
|
|
install_dir: 'lib',
|
|
|
|
link_with: LIBS_BUILT_SO_FAR,
|
2024-12-19 13:27:16 +02:00
|
|
|
)
|
2025-01-29 13:23:29 +02:00
|
|
|
LIBS_BUILT_SO_FAR = [kea_mysql_lib] + LIBS_BUILT_SO_FAR
|
2025-01-31 19:13:55 +01:00
|
|
|
subdir('testutils')
|
|
|
|
subdir('tests')
|
2025-02-04 12:07:49 +02:00
|
|
|
kea_mysql_headers = [
|
|
|
|
'mysql_binding.h',
|
|
|
|
'mysql_connection.h',
|
|
|
|
'mysql_constants.h',
|
|
|
|
]
|
|
|
|
install_headers(kea_mysql_headers, preserve_path: true, subdir: 'kea/mysql')
|