Is there a good way to specify which .java files to compile as part of the build based on the build config? We need this so we can include different java code for the Google Play, Amazon, Ouya etc versions of our apps. We also need to include different 3rd party libraries for different versions e.g Flurry is needed for some configs and not others.
It doesn’t seem possible to specify a different build.xml for each config. If it was I could probably get that to do it.
I also tried including multiple different paths in the “Java source directory” option of the Ant Build property window, but only the last one gets used.
We have this working with plain old vs-android using multiple targets in build.xml and choosing the target in the “Ant build type” property.
<target name="googleplay_debug" depends="debug" description="Builds the application, including the Google Play API files, and signs it with the debug key."> </target>
If we do this with NSight Tegra, it gives the error “Target “googleplay_debug” does not exist in the project “Android1”.”
That follows a build warning “Duplicated project name in import. Project Android1 defined first in C:\temp\Android1\Tegra-Android\Debug\nsight_tegra_build.xml and again in C:\temp\Android1\build.xml” which might account for it not working.
I’d love to get our projects building properly with NSight Tegra as it seems a really nice integration! Any help appreciated.