Skip to content

[ffigen] Output dependencies #1008

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

Open
dcharkes opened this issue Mar 14, 2024 · 0 comments
Open

[ffigen] Output dependencies #1008

dcharkes opened this issue Mar 14, 2024 · 0 comments

Comments

@dcharkes
Copy link
Collaborator

dcharkes commented Mar 14, 2024

If FFIgen is run as part of another build system (#977 (comment)), or if FFIgen is run as standalone (#879), it would be useful to know what files an FFIgen run transitively depends on.

The list of files / directories / glob patterns should include:

  • entrypoints headers declared in config.
  • Any transitive dependencies (can libclang report what was used? Would using include directive suffice?)
  • pubspec.yaml ffigen version might be updated
  • ffigen.yaml the config file

For standalone runs:

  • We should maybe save the environment, so that subsequent runs can check for equality.

For runs from another build system:

The list of files/directories/globs should be output in some kind of format. (Maybe we should align with the BuildOutput.dependencies in the native assets CLI, which currently supports files and directories.)

Edit: This would tie in to dart-lang/sdk#56512.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant