Skip to content

Conversation

@martin-belanger
Copy link

@martin-belanger martin-belanger commented Nov 6, 2025

There are two commits. In the first commit we do some meson.build clean up to prepare the environment for the code generation. The second commit adds the code generator framework, but leaves the actual code generation disabled for now.

Martin Belanger added 2 commits November 6, 2025 06:20
Explicitly add 'config_dep' to 'deps' to ensure that config.h
is generated before building libnvme.

When defining 'c_args', use the '-include' option directly
instead of hiding it in 'config_h_arg'. This makes the
meson.build file clearer. Since '-include' is used to include
config.h, there is no need to add 'internal_incdir' to the
include path via '-I' (i.e. with 'include_directories' argument).

Note: using '-include' is the Meson-recommended way to include
generated headers. The '-I' option (via 'include_directories')
should be reserved for static headers.

Signed-off-by: Martin Belanger <[email protected]>
This only adds the framework for code generation but leaves
the actual generation disabled for now.

Signed-off-by: Martin Belanger <[email protected]>
@martin-belanger martin-belanger changed the title libnvme/meson: rearrange the config.h dependencies libnvme: Add accessor generation framework Nov 6, 2025
@martin-belanger
Copy link
Author

@igaw - This is the new PR for the accessor generator. This only adds the framework. The actual code generation is currently disabled until we're ready for it.

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.

1 participant