Skip to content

Commit

Permalink
build: make generateApi optional when compiling project
Browse files Browse the repository at this point in the history
Initially generated module was not included to the project VCS.
Since it's now in the separate src folder, we don't need to call generator every time.
Only when a new generation result is required.
  • Loading branch information
SpaiR committed Aug 8, 2024
1 parent b379583 commit f779b13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imgui-binding/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ test {
}

compileJava {
if (!System.getProperty('build.debug.generate.api.disable')) {
// By default we do not generate API, since we believe this should be done on purpose.
if (System.getProperty('build.debug.generate.api.enable')) {
dependsOn 'generateApi'
}
}
Expand Down

0 comments on commit f779b13

Please sign in to comment.