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

[Question] list header files in meson introspect #7310

Closed
Arthapz opened this issue Jun 12, 2020 · 7 comments
Closed

[Question] list header files in meson introspect #7310

Arthapz opened this issue Jun 12, 2020 · 7 comments

Comments

@Arthapz
Copy link

Arthapz commented Jun 12, 2020

Hi, i was wondering why meson don't list header files as source file in intro-targets ?
And has meson a way to retreive headers ? (it's needed for completing QtCreator support of meson)

@jeandet
Copy link
Member

jeandet commented Jun 18, 2020

Maybe exporting anything that goes through files() to a dedicated introspection file or section could covers this and also any other type of file we would like to see from an IDE.

@Arthapz
Copy link
Author

Arthapz commented Jun 19, 2020

section could covers this and also any other type of file we would like to see from an IDE.

i think it's the best thing to do, in my situation a i want to have my glsl shaders to be in the IDE tree.

@jpakkane
Copy link
Member

Have you added them to the target with the extra_files keyword argument?

@Arthapz
Copy link
Author

Arthapz commented Jun 21, 2020

Yes, and they don't appear in info-targets.json

@jeandet
Copy link
Member

jeandet commented Jun 24, 2020

@jpakkane , I'm also not sure that attaching additional files to targets covers all use cases. I like the idea to use files() as proxy because it would allow to promote any file in IDE either attached to a target or not. For example you could add a readme in IDE project view without needing to cheat.
Also from what I remember from Meson code, it would have an happy side effect I think, it would force to use files() method internally any time we manipulate files which would allow to sanitize and normalize file path everywhere in Meson.

@Arthapz
Copy link
Author

Arthapz commented Sep 15, 2020

Hi, Any update on this ?

@mensinda
Copy link
Member

This should be resolved with #7844. Note that this only covers extra_files. Headers in the target sources will still be ignored.

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

4 participants