Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(c): Add pkgconfig support to Meson build system #1992

Merged
merged 2 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions c/driver/flightsql/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ adbc_driver_flightsql_lib = custom_target(
install_dir : '.',
)

pkg.generate(
name: 'Apache Arrow Database Connectivity (ADBC) Flight SQL driver',
description: 'The ADBC Flight SQL driver provides an ADBC driver for Flight SQL.',
url: 'https://github.com/apache/arrow-adbc',
libraries: [adbc_driver_flightsql_lib],
filebase: 'adbc-driver-flightsql',
)

if get_option('tests')
exc = executable(
'adbc-driver-flightsql-test',
Expand Down
8 changes: 8 additions & 0 deletions c/driver/postgresql/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ adbc_postgres_driver_lib = library(
dependencies: [nanoarrow_dep, fmt_dep, libpq_dep],
)

pkg.generate(
name: 'Apache Arrow Database Connectivity (ADBC) PostgreSQL driver',
description: 'The ADBC PostgreSQL driver provides an ADBC driver for PostgreSQL.',
url: 'https://github.com/apache/arrow-adbc',
libraries: [adbc_postgres_driver_lib],
filebase: 'adbc-driver-postgresql',
)

if get_option('tests')
postgres_tests = {
'driver-postgresql': {
Expand Down
8 changes: 8 additions & 0 deletions c/driver/snowflake/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ adbc_driver_snowflake_lib = custom_target(
install_dir : '.',
)

pkg.generate(
name: 'Apache Arrow Database Connectivity (ADBC) Snowflake driver',
description: 'The ADBC Snowflake driver provides an ADBC driver for Snowflake.',
url: 'https://github.com/apache/arrow-adbc',
libraries: [adbc_driver_snowflake_lib],
filebase: 'adbc-driver-snowflake',
)

if get_option('tests')
exc = executable(
'adbc-driver-snowflake-test',
Expand Down
1 change: 1 addition & 0 deletions c/driver/sqlite/adbc-driver-sqlite.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ libdir=@ADBC_PKG_CONFIG_LIBDIR@

Name: Apache Arrow Database Connectivity (ADBC) SQLite driver
Description: The ADBC SQLite driver provides an ADBC driver for SQLite.
URL: https://github.com/apache/arrow-adbc
Version: @ADBC_VERSION@
Libs: -L${libdir} -ladbc_driver_sqlite
Cflags: -I${includedir}
8 changes: 8 additions & 0 deletions c/driver/sqlite/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ adbc_sqlite3_driver_lib = library(
c_args: ['-DSIZEOF_TIME_T=' + time_t_size.to_string()],
)

pkg.generate(
name: 'Apache Arrow Database Connectivity (ADBC) SQLite driver',
description: 'The ADBC SQLite driver provides an ADBC driver for SQLite.',
url: 'https://github.com/apache/arrow-adbc',
libraries: [adbc_sqlite3_driver_lib],
filebase: 'adbc-driver-sqlite',
)

if get_option('tests')
exc = executable(
'adbc-driver-sqlite-test',
Expand Down
1 change: 1 addition & 0 deletions c/driver_manager/adbc-driver-manager.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ libdir=@ADBC_PKG_CONFIG_LIBDIR@

Name: Apache Arrow Database Connectivity (ADBC) driver manager
Description: ADBC driver manager provides API to use ADBC driver.
URL: https://github.com/apache/arrow-adbc
Version: @ADBC_VERSION@
Libs: -L${libdir} -ladbc_driver_manager
Cflags: -I${includedir}
8 changes: 8 additions & 0 deletions c/driver_manager/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ adbc_driver_manager_lib = library(
include_directories: [root_dir],
install: true,
)

pkg.generate(
name: 'Apache Arrow Database Connectivity (ADBC) driver manager',
description: 'ADBC driver manager provides API to use ADBC driver.',
url: 'https://github.com/apache/arrow-adbc',
libraries: [adbc_driver_manager_lib],
filebase: 'adbc-driver-manager',
)
2 changes: 2 additions & 0 deletions c/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading