您可以更改 C++ 的输出目录吗? WinRT 生成标头?

发布于 2025-01-19 12:58:02 字数 236 浏览 1 评论 0原文

有没有办法更改 C++ WinRT 项目中 midl 内容生成的文件的输出目录(默认值似乎是 ${ProjectDir}\Generate Files)?

我之所以问这个问题,是因为我有一个包含许多 WinRT 组件的解决方案,每个组件都会在“Generates files\winrt”文件夹中生成 74 MB 的 WinRT 标头。我想为每个文件夹尝试一个文件夹,以节省构建时间和/或磁盘空间。理想情况下,我还想为所有项目共享一个预编译头。

Is there a way to change the output directory for the files generated by the midl stuff in C++ WinRT projects (The default seems to be ${ProjectDir}\Generated Files)?

The reason I'm asking is because I have a solution with many WinRT components and each of them generates 74 MB of WinRT headers in the Generates files\winrt folders. I would like to experiment with a single folder for each of them to save on build times and / or disk space. Ideally I would also like to share a single precompiled header for all of the projects.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文