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

cpp_synmap support for parsing source files from include! macro calls #27

Open
dylanede opened this issue Dec 19, 2017 · 1 comment
Open

Comments

@dylanede
Copy link

In theory this would just be a case of Walker detecting include macro calls in its Folder implementation. Initially it could be limited to handling includes of the form

include!(concat!(env!("OUT_DIR"), "/path/to/source/file.rs"));

The main benefit of this is so that files generated from build scripts can contain macros like cpp!. I'm also relying on cpp_synmap for embed_js, so this would be of use for the js! and include_js! macros as well.

@ogoffart
Copy link
Collaborator

That looks complicated to do as we need to parse so many environment variable.

I wonder if it would not be better to add api to cpp_build which would allow to add more files.

Note that cpp_synmap no longer exist in this repository.

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

No branches or pull requests

2 participants