-
Notifications
You must be signed in to change notification settings - Fork 53
fix: Assorted updates to improve Meson WrapDB entry #803
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -21,7 +21,7 @@ project( | |||||
| 'cpp', | ||||||
| version: '0.8.0-SNAPSHOT', | ||||||
| license: 'Apache 2.0', | ||||||
| meson_version: '>=1.3.0', | ||||||
| meson_version: '>=1.1.0', | ||||||
|
||||||
| default_options: ['c_std=c99', 'warning_level=2', 'cpp_std=c++17'], | ||||||
| ) | ||||||
|
|
||||||
|
|
@@ -91,12 +91,20 @@ nanoarrow_lib = library( | |||||
| gnu_symbol_visibility: 'hidden', | ||||||
| ) | ||||||
|
|
||||||
| pkg = import('pkgconfig') | ||||||
| pkg.generate( | ||||||
| nanoarrow_lib, | ||||||
| description: 'Helpers for Arrow C Data & Arrow C Stream interfaces', | ||||||
| ) | ||||||
|
|
||||||
| nanoarrow_dep = declare_dependency( | ||||||
| include_directories: [incdir], | ||||||
| link_with: nanoarrow_lib, | ||||||
| compile_args: nanoarrow_dep_args, | ||||||
| ) | ||||||
|
|
||||||
| meson.override_dependency('nanoarrow', nanoarrow_dep) | ||||||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In today's wrap we have a provides section that looks like: [provides]
nanoarrow = nanoarrow_dep
nanoarrow_ipc = nanoarrow_ipc_depBut since Meson version 0.54.0, they have advised that a project internally call [provides]
dependency_names = [nanoarrow, nanoarrow-ipc, ...]and decouple the internal variable name from the wrap system |
||||||
|
|
||||||
| if get_option('ipc').enabled() | ||||||
| # flatcc does not export symbols in a way that works with | ||||||
| # MSVC compilers, so we force static linkage | ||||||
|
|
@@ -135,11 +143,14 @@ if get_option('ipc').enabled() | |||||
| c_args: ipc_lib_c_args, | ||||||
| gnu_symbol_visibility: 'hidden', | ||||||
| ) | ||||||
| pkg.generate(nanoarrow_ipc_lib, filebase: 'nanoarrow-ipc') | ||||||
|
|
||||||
| nanoarrow_ipc_dep = declare_dependency( | ||||||
| include_directories: [incdir], | ||||||
| link_with: nanoarrow_ipc_lib, | ||||||
| dependencies: [nanoarrow_dep], | ||||||
| ) | ||||||
| meson.override_dependency('nanoarrow-ipc', nanoarrow_dep) | ||||||
|
||||||
| meson.override_dependency('nanoarrow-ipc', nanoarrow_dep) | |
| meson.override_dependency('nanoarrow-ipc', nanoarrow_ipc_dep) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SPDX license expression is preferred.