qmake 是否在 pro 文件中自动包含 pri 文件
假设以下目录结构
project/project.pro
project/project.pri
在这种情况下即使project.pro文件没有类似(include project.pri)的语句。它会被 qmake 自动包含吗?
在qtcreator的sources插件目录下
qt-creator/src/plugins/coreplugin
有一个coreplugin.pri文件,该文件不包含在coreplugin.pro文件中
Assume the following directory structure
project/project.pro
project/project.pri
In this case even if the project.pro file does not have a statement like (include project.pri). Does it gets included automatically by qmake.
In the qtcreator sources plugin directory
qt-creator/src/plugins/coreplugin
There is a coreplugin.pri file which is not included in the coreplugin.pro file
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相当有信心它不会自动包含在内,并且我使用 .pro 和 .pri 文件进行了快速测试,其中包含
message
调用以确认这一点。对于您在 Creator 中看到的文件,拥有专为包含其他 .pro 文件以便您可以使用该项目而设计的 .pri 文件并不罕见。
I'm fairly confident that it does not get included automatically, and I did a quick test with a .pro and a .pri file that had
message
calls in them to confirm this.With regards to the files you're seeing in creator, it's not uncommon to have a .pri file that is designed for other .pro files to include so that you can use the project.