Several problems in the use of QT qmake: Pro, PRI, PRF, prl file config usage

Source: Internet
Author: User
8. Qmake CONFIG and QT Chat
Http://www.cnblogs.com/hnrainll/archive/2011/05/20/2052335.html




Any entry in the Config row is also a scope. For example, you write this:


CONFIG + + warn_on
You will get a scope called "warn_on". This will make it easy to modify the configuration in your project without losing all of the customizations that might be required under certain conditions. Because you may put your own values in the Config line, this will provide you with a very powerful configuration tool for your makefile. Like what:


CONFIG + + qt warn_on Debug
Debug {
TARGET = Myappdebug
}
Release {
TARGET = MyApp
}
In the above code, two scopes are created, and they depend on what is set in the Config row. In this example, debug is in the config row, so the target variable is set to Myappdebug. If release is in the Config row, the target variable will be set to MyApp.


Http://www.kuqin.com/qtdocument/qmake-manual-6.html






9. Qmake CONFIG (Debug, Debug|release)
Http://blog.hehehehehe.cn/a/8762.htm



"This must be seen."
On Qmake Pro, PRI, PRF, PRL documents
http://blog.csdn.net/dbzhang800/article/details/6348432






Functions of Qmake, pro files, PRI files, and makefile files and their relationships
http://blog.csdn.net/lyc_daniel/article/details/12855301


Introduction to QT. Pro files and. pri files
http://demo.netfoucs.com/u011450537/article/details/42707149


How to create a. pri file in Qt Creator
Http://www.xuebuyuan.com/994172.html








When you write an application, you usually just change it. Pro can


. PRI is project include file, which is used to place a more generic configuration and variable here. If you are working on a project and need to compile multiple applications and libraries, you can modify the. pri file.


The. prf file, typically used in a large compilation system. For example, if you want to design a QT cell phone yourself, you may need a different identity to specify the compilation features when compiling different modules. Then some new definition identifiers can be used in. prf.
For example, if you want to use config+= Nokia, this Nokia tag is not in Qt, you write a nokia.prf can let qmake identify.

Http://qtcn.org/bbs/simple/?t19083.html


QT Pro files and PRI,PRF,PRL files

http://blog.csdn.net/lovebird_27/article/details/50731712

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.