diff --git a/c/driver/flightsql/meson.build b/c/driver/flightsql/meson.build index 9905f250b6..d728207814 100644 --- a/c/driver/flightsql/meson.build +++ b/c/driver/flightsql/meson.build @@ -47,6 +47,11 @@ adbc_driver_flightsql_lib = custom_target( install_dir : '.', ) +pkg.generate( + adbc_flightsql_driver_lib, + filebase: 'adbc-driver-flightsql', +) + if get_option('tests') exc = executable( 'adbc-driver-flightsql-test', diff --git a/c/driver/postgresql/meson.build b/c/driver/postgresql/meson.build index c263c9937d..2a8bdcd530 100644 --- a/c/driver/postgresql/meson.build +++ b/c/driver/postgresql/meson.build @@ -32,6 +32,11 @@ adbc_postgres_driver_lib = library( dependencies: [nanoarrow_dep, fmt_dep, libpq_dep], ) +pkg.generate( + adbc_postgresql_driver_lib, + filebase: 'adbc-driver-postgresql', +) + if get_option('tests') postgres_tests = { 'driver-postgresql': { diff --git a/c/driver/snowflake/meson.build b/c/driver/snowflake/meson.build index 86fa6e1f29..5c5d06dc17 100644 --- a/c/driver/snowflake/meson.build +++ b/c/driver/snowflake/meson.build @@ -47,6 +47,11 @@ adbc_driver_snowflake_lib = custom_target( install_dir : '.', ) +pkg.generate( + adbc_driver_snowflake_lib, + filebase: 'adbc-driver-snowflake', +) + if get_option('tests') exc = executable( 'adbc-driver-snowflake-test', diff --git a/c/driver/sqlite/meson.build b/c/driver/sqlite/meson.build index ee28a73e9e..1c5b2e64a4 100644 --- a/c/driver/sqlite/meson.build +++ b/c/driver/sqlite/meson.build @@ -34,6 +34,11 @@ adbc_sqlite3_driver_lib = library( c_args: ['-DSIZEOF_TIME_T=' + time_t_size.to_string()], ) +pkg.generate( + adbc_sqlite3_driver_lib, + filebase: 'adbc-driver-sqlite', +) + if get_option('tests') exc = executable( 'adbc-driver-sqlite-test', diff --git a/c/driver_manager/meson.build b/c/driver_manager/meson.build index 43a708c802..5b3de5020c 100644 --- a/c/driver_manager/meson.build +++ b/c/driver_manager/meson.build @@ -22,3 +22,8 @@ adbc_driver_manager_lib = library( include_directories: [root_dir], install: true, ) + +pkg.generate( + adbc_driver_manager_lib, + filebase: 'adbc-driver-manager', +) diff --git a/c/meson.build b/c/meson.build index 5003fd9494..e6976a3961 100644 --- a/c/meson.build +++ b/c/meson.build @@ -48,6 +48,8 @@ endif needs_driver_manager = get_option('driver_manager') \ or get_option('tests') +pkg = import('pkgconfig') + if needs_driver_manager subdir('driver_manager') endif