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

Include license notice in generated headers #54

Open
afonso360 opened this issue Apr 4, 2017 · 1 comment
Open

Include license notice in generated headers #54

afonso360 opened this issue Apr 4, 2017 · 1 comment

Comments

@afonso360
Copy link

afonso360 commented Apr 4, 2017

Hi, some licenses such as the GPLv2 require a notice in the headers produced, this is just a simple operation of prepending a comment to the generated headers, would you please be able to add this feature to your library?

This is more of a convinience feature as I can just as well open each header file and prepend the license text myself. (Which is what im currently doing)

If this is more appropriate for the rusty-binder crate tell me and ill open an issue there.

@kinetiknz
Copy link

You can use Cheddar::insert_code to insert the license text, for example see https://github.com/mozilla/mp4parse-rust/blob/master/mp4parse_capi/build.rs. The only (slight) down side is that it's inserted after the two C99 headers.

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