From f779b131b2e87ccac3d7c7c6b1ccf80c0d2dacdd Mon Sep 17 00:00:00 2001 From: SpaiR Date: Thu, 8 Aug 2024 09:51:27 +0300 Subject: [PATCH] build: make generateApi optional when compiling project 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. --- imgui-binding/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imgui-binding/build.gradle b/imgui-binding/build.gradle index 4997ebc3..f7b484d1 100644 --- a/imgui-binding/build.gradle +++ b/imgui-binding/build.gradle @@ -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' } }