[英]How do you control the (MSVS) VC lib directory that Gradle uses?
I have a requirement where there will be two Microsoft Visual Studio builds (providing Visual Compiler) on a single machine, something like:我有一个要求,在一台机器上会有两个 Microsoft Visual Studio 构建(提供 Visual Compiler),例如:
(This is how our IT deploys these installs so I cannot really control the layout) (这就是我们的 IT 部署这些安装的方式,所以我无法真正控制布局)
For some Gradle builds (using the cpp-library and cpp-application Gradle plugins) I need to use one directory and for other Gradle builds I need to use the other.对于某些 Gradle 构建(使用 cpp-library 和 cpp-application Gradle 插件)我需要使用一个目录,而对于其他 Gradle 构建我需要使用另一个。
How can I select between these two in my build.gradle scripts?在我的 build.gradle 脚本中,如何在这两者之间进行 select ?
From this post:从这篇文章:
This is the way:这是这样的:
toolChains {
visualCpp32(VisualCpp) {
windowsSdkDir winSdkDir32
installDir visualCppDir32
}
visualCpp64(VisualCpp) {
windowsSdkDir winSdkDir64
installDir visualCppDir64
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.