Open sykhro opened 4 months ago
Additional note:
when using GDK + VS Build Tools, the GamingDesktopVars.cmd doesn't source vcvars automatically. I find that at this point it would be useful to inject call
to arbitrary scripts in the conanenv scripts; so in this case, I would set tools.microsoft.vcvars:path=""
and then have the conanenv do something like:
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
call "C:\ExtractedGDK\220300\Microsoft GDK\Command Prompts\GamingDesktopVars.cmd" "GamingDesktopVS2022"
assuming I want conan to handle it. The alternative is just setting tools.microsoft.vcvars:path=""
and calling conan in the pre-init env (which I understand isn't the way conan is designed to work?)
What is your suggestion?
The following is a very loose proposal for customization of
vcvars
with a couple of my usecases:vcvars
is never called)tools.microsoft.vcvars:path
, with the same behaviour astools.microsoft.msbuild
. Not setting it gets the current conan behaviourtools.microsoft.vcvars:args
to pass arguments to the scriptExample:
Have you read the CONTRIBUTING guide?