Passing VS variables to Gradle

Hi there,

Is it possible to pass Visual Studio variables through to the gradle overrides build script?

I’d like to get hold of things like SolutionDir and ProjectDir.

I know I can use rootDir and projectDir but they are pointing to the temporary build directory not
the and directory containing the project under development.

Also, is it possible to make the nsight_tegra_overrides.gradle a project dependency? If I may changes to it
and no source has changed I still want to the project to rebuild.

Thanks,

Steve.

Hi Steve,

Is it possible to pass Visual Studio variables through to the gradle overrides build script?
Yes, you can do this by Pre-Build Events, and use Visual Studio variable as cmd parameters.
the command line could be any .bat file.

is it possible to make the nsight_tegra_overrides.gradle a project dependency? If I may changes to it
and no source has changed I still want to the project to rebuild.

You add a dummy.cpp to your project and then add customize task to .vcprj.

touch dumpy.cpp your_nsight_tegra_overrrides.gradle ClCompile

Victor

Thanks Victor!