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

Generate bindings if they are not found #507

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

Zylann
Copy link
Collaborator

@Zylann Zylann commented Feb 3, 2021

This PR adds a primitive check to figure out if bindings should be generated or not.
It checks if src/gen/Object.cpp exists. If it isn't found, then bindings will get generated.

The generate_bindings option is an enumeration that can be given the following values:

  • true, or yes: will generate bindings
  • no: will not generate bindings
  • auto: will detect presence of bindings. This is now the default value, so less users will forget to do this step.

This check does not detect if bindings should be re-generated. So if you update the library with Git for example, you still have to tell it explicitely, or clear the generated folder before building.

@Calinou Calinou added the enhancement This is an enhancement on the current functionality label Feb 3, 2021
@vnen vnen merged commit a65a340 into godotengine:master Mar 1, 2021
@vnen
Copy link
Member

vnen commented Mar 1, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an enhancement on the current functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants