久久精品在这里_成人99免费视频_国产激情视频一区二区在线观看_国产伦精品一区二区三区免费 _亚洲午夜免费福利视频_色狠狠色狠狠综合_av在线综合网_91毛片在线观看_欧美视频一区二区在线观看_极品美女销魂一区二区三区免费_国产亚洲欧美激情_在线免费观看不卡av_日韩不卡一区二区三区_91精品国产麻豆国产自产在线_亚洲国产精品一区二区久久恐怖片_a4yy欧美一区二区三区


曙海教育集團(tuán)論壇Linux專區(qū)Linux技術(shù)討論區(qū) → qmake命令參考


  共有7758人關(guān)注過本帖樹形打印

主題:qmake命令參考

客人(58.34.*.*)
  1樓


qmake命令參考  發(fā)帖心情 Post By:2009-3-10 21:34:20

qmake Command Reference
qmake Command Reference
About This Reference

Command Line Options

System Variables

Functions

Environment Variables and Configuration

About This Reference
This reference is a detailed index of all command line options, configurations and internal variables used by the cross-platform makefile generation utility qmake.

In addition to the variables and functions described in the following sections, qmake project files may also include comments. Comments begin with the '#' symbol and run to the end of the line.

Command Line Options
Syntax
qmake [options] files

Options
The following options can be specified on the command line to qmake:

-o file
qmake output will be directed to file. if this argument is not specified, then qmake will try to guess a suitable name. If '-' is specified, output is directed to stdout.

-unix
qmake will run in unix mode. In this mode, Unix file naming and path conventions will be used, additionally testing for unix (as a scope) will succeed. This is the default mode on all Unices.

-macx
qmake will run in Mac OS X mode. In this mode, Unix file naming and path conventions will be used, additionally testing for macx (as a scope) will succeed. This is the default mode on Mac OS X.

-win32
qmake will run in win32 mode. In this mode, Windows file naming and path conventions will be used, additionally testing for win32 (as a scope) will succeed. This is the default mode on Windows.

-d
qmake will output (hopefully) useful debugging information.

-t tmpl
qmake will override any set TEMPLATE variables with tmpl.

-help
qmake will go over these features and give some useful help.

There are also warning options that can help to find problems in your project file:

-Wall
With this qmake will turn on all known warnings.

-Wnone
No warning information will be generated by qmake.

-Wparser
qmake will only generate parser warnings, this will alert you to common pitfalls, and potential problems in the parsing of your .pro files.

-Wlogic
Again qmake will warn of common pitfalls, and potential problems. This can include (but not limited to) checking if a file is placed into a list of files multiple times, if a file cannot be found, etc.

qmake supports two different modes of operation. The first mode, which is the default is makefile generation. In this mode, qmake will take a .pro file and turn it into a makefile. Creating makefiles is covered by this reference guide, there is another mode which generates .pro files.

To toggle between these modes you must specify in the first argument what mode you want to use. If no mode is specified, qmake will assume you want makefile mode. The available modes are:

-makefile
qmake output will be a makefile (Makefile mode).

-project
qmake output will be a project file (Project file mode).

Makefile Mode
In Makefile mode qmake will generate a makefile. Additionally you may supply the following arguments in this mode:

-after
qmake will process assignments given on the commandline after the specified files.

-nocache
qmake will ignore the .qmake.cache file.

-nodepend
qmake will not generate any dependency information.

-cache file
qmake will use file as the cache file, ignoring any other .qmake.cache file found

-spec spec
qmake will use spec as a path to platform-compiler information and QMAKESPEC will be ignored.

The files argument can be a list of one or more project files, separated by spaces. You may also pass qmake assignments on the command line here and they will be processed before all files specified, for example:

qmake -makefile -unix -o Makefile "CONFIG+=test" test.pro

If however you are certain you want your variables processed after the the files specified, then you may pass the -after argument. When this is specified all assignments on the commandline after the -after option will be postponed until after the specified files are parsed.

This will generate a Makefile, from test.pro with Unix pathnames. However many of these arguments aren't necessary as they are the default. Therefore the line can be simplified on Unix to:

qmake "CONFIG+=test" test.pro

Projectfile Mode
In Projectfile mode qmake will generate a project file. Additionally, you may supply the following arguments in this mode:

-r
qmake will look through supplied directories recursively

-nopwd
qmake will not look in your current working directory for source code and only use the specified files

The files argument can be a list of files or directories. If a directory is specified, then it will be included in the DEPENDPATH variable and relevant code from there will be included in the generated project file, if a file is given it will go into the correct variable depending on extension (i.e. .ui files go into FORMS, .cpp files go into SOURCES, etc). Here too you may pass assignments on the commandline, when doing so these assignments will be placed last in the generated .pro file.

System Variables
Frequently Used System Variables

Rarely Used System Variables

Frequently Used System Variables
The following variables are recognized by qmake and are used most frequently when creating project files.

CONFIG
The CONFIG variable specifies project configuration and compiler options. The values will be recognized internally by qmake and have special meaning. They are as follows.

These CONFIG values control compilation flags:

release - Compile with optimization enabled, ignored if "debug" is specified

debug - Compile with debug options enabled

warn_on - The compiler should emit more warnings than normally, ignored if "warn_off" is specified

warn_off - The compiler should only emit severe warnings.

These options define the application/library type:

qt - The target is a Qt application/library and requires the Qt header files/library. The proper include and library paths for the Qt library will automatically be added to the project.

opengl - The target requires the OpenGL (or Mesa) headers/libraries. The proper include and library paths for these libraries will automatically be added to the project.

thread - The target is a multi-threaded application or library. The proper defines and compiler flags will automatically be added to the project.

x11 - The target is a X11 application or library. The proper include paths and libraries will automatically be added to the project.

windows - The target is a Win32 window application (app only). The proper include paths,compiler flags and libraries will automatically be added to the project.

console - The target is a Win32 console application (app only). The proper include paths, compiler flags and libraries will automatically be added to the project.

dll - The target is a shared object/DLL.The proper include paths, compiler flags and libraries will automatically be added to the project.

staticlib - The target is a static library (lib only). The proper compiler flags will automatically be added to the project.

plugin - The target is a plugin (lib only). This enables dll as well.

The CONFIG variable will also be checked when resolving scopes. You may assign anything to this variable.

For example:

CONFIG += qt console newstuff
...
newstuff {
 SOURCES += new.cpp
 HEADERS += new.h
}

DEFINES
qmake adds the values of this variable as compiler C preprocessor macros (-D option).

For example:

 
DEFINES += USE_MY_STUFF QT_DLL

DEF_FILE
This is only used on Windows when using the 'app' template.

Specifies a .def file to be included in the project.

DESTDIR
Specifies where to put the target file.

For example:

 
  DESTDIR = ../../lib

DLLDESTDIR
Specifies where to copy the target dll.

HEADERS
Defines the header files for the project.

qmake will generate dependency information (unless -nodepend is specified on the command line) for the specified headers. qmake will also automatically detect if moc is required by the classes in these headers, and add the appropriate dependencies and files to the project for generating and linking the moc files.

For example:

HEADERS = myclass.h \
   login.h \
   mainwindow.h

See also SOURCES.

INCLUDEPATH
This variable specifies the #include directories which should be searched when compiling the project. Use ';' or a space as the directory separator.

For example:

  INCLUDEPATH = c:\msdev\include d:\stl\include

FORMS
This variable specifies the .ui files (see Qt Designer) to be processed through uic before compiling. All dependencies, headers and source files required to build these .ui files will automatically be added to the project.

For example:

FORMS = mydialog.ui \
 mywidget.ui \
        myconfig.ui

 


支持(0中立(0反對(duì)(0單帖管理 | 引用 | 回復(fù) 回到頂部

返回版面帖子列表

qmake命令參考








簽名
久久精品在这里_成人99免费视频_国产激情视频一区二区在线观看_国产伦精品一区二区三区免费 _亚洲午夜免费福利视频_色狠狠色狠狠综合_av在线综合网_91毛片在线观看_欧美视频一区二区在线观看_极品美女销魂一区二区三区免费_国产亚洲欧美激情_在线免费观看不卡av_日韩不卡一区二区三区_91精品国产麻豆国产自产在线_亚洲国产精品一区二区久久恐怖片_a4yy欧美一区二区三区
在线播放豆国产99亚洲| 国产大陆精品国产| 国产精品天美传媒| 欧美激情一区二区三区在线| 国产女人18毛片水真多成人如厕 | 久久久精品免费免费| 国产日本欧洲亚洲| 亚洲免费观看在线观看| 亚洲成在人线免费| 国产精品一区专区| 成人在线免费网站| 亚洲精品视频一二三| 欧美日韩在线播放| 国产校园另类小说区| 亚洲宅男天堂在线观看无病毒| 免费看日韩精品| 成人一道本在线| 久久香蕉综合色| 91福利国产成人精品照片| 日韩一区二区在线看| 国产精品美女一区二区在线观看| 亚洲成人自拍一区| 成人午夜电影久久影院| 久久偷看各类wc女厕嘘嘘偷窃| 在线国产伦理一区| 欧美成人一区二区三区片免费 | 2021国产精品久久精品| 亚洲天堂福利av| 激情综合五月婷婷| 国产精品高清一区二区三区| 亚洲砖区区免费| 2020日本不卡一区二区视频| 亚洲综合视频网| 国产91对白在线观看九色| 国产一区不卡在线观看| 欧美在线免费视屏| 国产精品久久久久四虎| 久久精品国产99久久6| 国产成人一区二区三区免费看| 亚洲一区二区三区欧美| 久久婷婷国产综合国色天香| 亚洲国产欧美在线| 91尤物视频在线观看| 色综合久久88色综合天天免费| 久久综合久久99| 蜜臀av国产精品久久久久| 国产成人精品福利一区二区三区| 在线免费亚洲电影| 自拍偷拍国产亚洲| 成av人片一区二区| 色嗨嗨av一区二区三区| 国产精品美女一区二区在线观看| 国产精品一区免费在线观看| 青娱乐一区二区| 久久久久久黄色| 激情六月婷婷久久| 一本一道久久久a久久久精品91 | 国产精品久久久久久久久动漫 | 亚洲国产午夜伦理片大全在线观看网站| 精品国产乱码久久久久久老虎| 日韩av一区二| 欧美一进一出视频| 国产精品久久久久永久免费观看| 成人综合婷婷国产精品久久| 欧美综合在线视频| 亚洲成年人影院| 国产亚洲精品美女久久久m| 欧美xxx久久| 国内成人精品2018免费看| 亚洲成人自拍| 樱花影视一区二区| 精品视频高清无人区区二区三区| 精品免费日韩av| 国产九色sp调教91| 欧美视频在线一区二区三区 | 国产视频视频一区| 国产成人av自拍| 欧美日本在线视频| 精品一区二区日韩| 欧美性受xxxx| 日本不卡在线视频| 天堂精品视频| 一区二区三区美女| 欧洲视频一区二区三区| 亚洲欧美电影一区二区| 久久波多野结衣| 国产精品福利一区| 亚洲综合久久av| 韩国成人精品a∨在线观看| 久久久久久久久久久一区| 久久亚洲精精品中文字幕早川悠里| 韩国女主播一区二区三区| 亚洲视频在线二区| 午夜精品久久久久久久久久久| 久久国产主播精品| 国产精品高清亚洲| 国模精品一区二区三区| 国产精品欧美久久久久无广告| 波多野结衣一区二区三区在线观看| 精品人在线二区三区| 国产99精品在线观看| 69堂国产成人免费视频| 粉嫩蜜臀av国产精品网站| 日韩精品中文字幕在线不卡尤物| 国产福利91精品| 精品国产乱码久久久久久1区2区| k8久久久一区二区三区| 精品剧情v国产在线观看在线| 不卡电影一区二区三区| 久久久www成人免费毛片麻豆| av成人观看| 亚洲女同ⅹxx女同tv| 亚洲国产精品久久久久婷婷老年 | 国产欧美日韩在线播放| 国产精品久久久久四虎| 欧美一区二区影视| 亚洲大片精品永久免费| 欧美三日本三级三级在线播放| 激情小说亚洲一区| 日韩欧美激情四射| 国产99午夜精品一区二区三区| 亚洲日穴在线视频| 亚洲高清精品中出| 狠狠色伊人亚洲综合成人| 精品久久久久久久久久久久久久久久久 | 亚洲精品成人少妇| 伊人久久大香线蕉精品| 激情文学综合网| 国产日韩亚洲欧美综合| 日韩高清dvd| 黑人巨大精品欧美黑白配亚洲| 欧美精品一区二区精品网| 九九九九九精品| 免费av成人在线| 久久久精品国产99久久精品芒果| 久久久久网址| 激情小说欧美图片| 国产精品女主播在线观看| 亚洲毛片aa| 国产精品一区二区三区四区| 国产精品天天看| 欧美午夜在线观看| 国产精品12| 蜜桃一区二区三区四区| 久久美女艺术照精彩视频福利播放 | 制服丝袜综合日韩欧美| 国产精品一二三四| 亚洲裸体在线观看| 欧美一区二区三区日韩视频| 九色一区二区| 国产盗摄一区二区| 亚洲黄色av一区| 欧美mv和日韩mv的网站| 色噜噜一区二区| 91视频免费看| 久久精品国产精品亚洲综合| 国产精品欧美经典| 欧美猛男超大videosgay| 久久精品国产第一区二区三区最新章节| 青草国产精品久久久久久| 日本一区二区三区国色天香| 欧美艳星brazzers| 欧美日韩亚洲综合一区二区三区激情在线| 国产九色sp调教91| 亚洲成av人片一区二区梦乃| 久久精品一区八戒影视| 欧美午夜一区二区| 日本一区免费| 国产精品久久久久av福利动漫| 狠狠色丁香婷综合久久| 夜夜精品视频一区二区| 久久久久久麻豆| 欧美日韩精品久久久| 日韩免费中文专区| 国产女人水真多18毛片18精品| 国v精品久久久网| 日韩精品亚洲专区| 亚洲精品v日韩精品| 国产日韩综合av| 欧美白人最猛性xxxxx69交| 在线观看日韩一区| 一区二区三区电影| 日韩尤物视频| 玛丽玛丽电影原版免费观看1977| www.久久久久久久久| 久久国产精品露脸对白| 亚洲女同女同女同女同女同69| 国产欧美一区二区三区在线老狼 | 欧美电影免费观看高清完整版 | 亚洲大片一区二区三区| 亚洲人一二三区| 亚洲国产成人一区二区三区| 日韩欧美不卡在线观看视频| 欧美午夜精品久久久久久孕妇| 亚洲欧洲免费无码| 视频一区在线免费观看| 蜜桃成人在线| 欧美在线日韩精品| 日韩国产伦理| 视频一区二区三区免费观看|