qmake Manual
simplify:使简易
development projects:开发项目
across:跨越
The qmake tool helps simplify the build process for development projects across different platforms.
automates:使自动化
a few:一些
each:每一个
It automates the generation of Makefiles so that only a few lines of information are needed to create each Makefile. You can use qmake for any software project, whether it is written with Qt or not.
qmake generates a Makefile based on the information in a project file. Project files are created by the developer, and are usually simple, but more sophisticated project files can be created for complex projects.
sophisticated:复杂巧妙的
complex:复杂的
additional:额外的
automatically:自动地
qmake contains additional features to support development with Qt, automatically including build rules for moc and uic.
qmake can also generate projects for Microsoft Visual studio without requiring the developer to change the project file.
Overview
oriented:面向
approach:方法
concisely:简洁的
typically:典型地,通常
expands:扩展
The qmake tool provides you with a project-oriented system for managing the build process for applications, libraries, and other components. This approach gives you control over the source files used, and allows each of the steps in the process to be described concisely, typically within a single file. qmake expands the information in each project file to a Makefile that executes the necessary commands for compiling and linking.
Describing a Project
Project :项目
general:常规的
specific:具体的
extra:额外的
Projects are described by the contents of project (.pro) files.
qmake uses the information within the files to generate Makefiles that contain all the commands that are needed to build each project.
Project files typically contain a list of source and header files, general configuration information, and any application-specific details, such as a list of extra libraries to link against, or a list of extra include paths to use.
comments:注释
declaration:声明
built-in:内置
simple:简单的
option:选项
Project files can contain a number of different elements, including comments, variable declarations, built-in functions, and some simple control structures. In most simple projects, it is only necessary to declare the source and header files that are used to build the project with some basic configuration options. For more information about how to create a simple project file, see Getting Started.
overview:概述
You can create more sophisticated project files for complex projects. For an overview of project files, see Creating Project Files. For detailed information about the variables and functions that you can use in project files, see Reference.
templates:模板
specify:明确指出
fine:细小地
tune:调整
You can use application or library project templates to specify specialized configuration options to fine tune the build process. For more information, see Building Common Project Types.
wizard:向导程序
suit:满足(某人)需要
purpose:目的
You can use the Qt Creator new project wizard to create the project file. You choose the project template, and Qt Creator creates a project file with default values that enable you to build and run the project. You can modify the project file to suit your purposes.
description:描述
You can also use qmake to generate project files. For a full description of qmake command line options, see Running qmake.
feature:特征
The basic configuration features of qmake can handle most cross-platform projects. However, it might be useful, or even necessary, to use some platform-specific variables. For more information, see Platform Notes.
Reference
Reference:参考书目,查阅
The reference sections describe in detail the variables and functions that are available for use in qmake project files.
Variable Reference
configure:配置
Variables describes the variables that are recognized by qmake when configuring the build process for projects.
CONFIG
compilation:编译
Specifies project configuration and compiler options. The values are recognized internally by qmake and have special meaning.
The following CONFIG values control compilation flags:
release
The project is to be built in release mode. If debug is also specified, the last one takes effect.
debug
The project is to be built in debug mode.
debug_and_release
The project is prepared to be built in both debug and release modes.process:加工
When you use the debug_and_release option (which is the default under Windows), the project will be processed three times: one time to produce a "meta" Makefile, and two more times to produce a Makefile.Debug and a Makefile.Release.CONFIG(debug , debug | release){DESTDIR += $$PWD/bin/Debug }else{DESTDIR += $$PWD/bin/Release }
Qt编译debug和release版本--CONFIG(debug,debug|release)_config(debug, debug|release) {-CSDN博客CONFIG(debug , debug | release): 第一个参数:要判断的active的选型 第二个参数:互斥的选型的集合,在debug和release中选择。如果当前为debug模式,则 debug为active.Specifies where to put the target file.
指定在哪里存放target文件