Skip to content

Conversation

@WillAyd
Copy link
Contributor

@WillAyd WillAyd commented Apr 28, 2025

These don't impact arrow-adbc directly, but are theoretically helpful for downstream projects that might want to use ADBC dependencies from source.

With this, on the next release I think we could add arrow-adbc to Meson's wrap database, and give users the option of something as simple as running:

meson wrap install adbc

To fetch adbc as a subproject. With that, users could then do:

adbc_bigquery_driver_dep = dependency('adbc_bigquery_driver')
myexc = executable(
    'some-executable',
    sources: [...],
    dependencies: [adbc_bigquery_driver_dep],
)

To have Meson automatically compile and link the executable to the appropriate driver

@WillAyd WillAyd requested a review from lidavidm as a code owner April 28, 2025 18:29
@github-actions github-actions bot added this to the ADBC Libraries 18 milestone Apr 28, 2025
filebase: 'adbc-driver-bigquery',
)

adbc_driver_bigquery_dep = declare_dependency(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can name these dependencies whatever we want. I've stuck with this pattern, but instead of adbc_driver_bigquery perhaps adbc_bigquery_driver or just adbc_bigquery would be more "user friendly"

@WillAyd WillAyd force-pushed the meson-dependency-per-driver branch from 1320ea1 to 51e22df Compare April 28, 2025 18:37
@WillAyd WillAyd force-pushed the meson-dependency-per-driver branch from 51e22df to 9e92fe1 Compare April 28, 2025 18:50
Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Maybe down the line we should add a CI test for it

@lidavidm lidavidm merged commit 26a4df2 into apache:main Apr 28, 2025
66 of 68 checks passed
colin-rogers-dbt pushed a commit to dbt-labs/arrow-adbc that referenced this pull request Jun 10, 2025
…che#2746)

These don't impact arrow-adbc directly, but are theoretically helpful
for downstream projects that might want to use ADBC dependencies from
source.

With this, on the next release I think we could add arrow-adbc to
Meson's wrap database, and give users the option of something as simple
as running:

```bash
meson wrap install adbc
```

To fetch adbc as a subproject. With that, users could then do:

```python
adbc_bigquery_driver_dep = dependency('adbc_bigquery_driver')
myexc = executable(
    'some-executable',
    sources: [...],
    dependencies: [adbc_bigquery_driver_dep],
)
```

To have Meson automatically compile and link the executable to the
appropriate driver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants