Qt:*.pro 与 *.pri [英] Qt: *.pro vs *.pri
问题描述
qmake 的 *.pro
和 *.pri
配置文件有什么区别?
What is the difference between *.pro
and *.pri
configuration files for qmake?
什么应该放在 *.pro 文件中,什么应该放在 *.pri 文件中?
What should go into a *.pro file and what should go into a *.pri file?
推荐答案
.pro
文件是您运行 QMake 的文件..pri
文件包含在 .pro
文件中.除此之外,两者没有太大区别.
A .pro
file is what you would run QMake on. A .pri
file is included by a .pro
file. Other than that there is not much of a difference between the two.
示例用法可能是,如果您有需要不同选项的不同版本.您可以将共享信息放在 .pro 中,同时将选项推迟到各种 .pri 文件中.更多的信息,虽然不可否认没有更多,可以在这里找到.
Example usage could be if you have different builds which need different options. You could put shared information in the .pro, while deferring the options to various .pri files. A bit more information, although admittedly not much more, can be found here.
这篇关于Qt:*.pro 与 *.pri的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!