毛片网站在线看_天堂俺去俺来也www久久婷婷_日韩av免费网站_18性欧美xxxⅹ性满足_一区二区三区韩国免费中文网站 _性xx色xx综合久久久xx_999亚洲国产精


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


  共有10432人關(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反對(0單帖管理 | 引用 | 回復(fù) 回到頂部

返回版面帖子列表

qmake命令參考








簽名
毛片网站在线看_天堂俺去俺来也www久久婷婷_日韩av免费网站_18性欧美xxxⅹ性满足_一区二区三区韩国免费中文网站 _性xx色xx综合久久久xx_999亚洲国产精
亚洲成人动漫在线观看| 免费看日韩a级影片| 欧美成人精品1314www| 精品乱人伦一区二区三区| 久久尤物电影视频在线观看| 久久综合九色欧美综合狠狠| 欧美国产日产图区| 亚洲人成人一区二区在线观看| 一区二区三区精品视频在线| 五月激情六月综合| 国产高清不卡二三区| 在线观看亚洲精品视频| 日韩视频中午一区| 国产精品久久三区| 香蕉加勒比综合久久| 韩国精品久久久| 一区二区三区精品视频| 久久精品噜噜噜成人av农村| 成人综合婷婷国产精品久久| 精品污污网站免费看| 26uuu色噜噜精品一区| 亚洲日穴在线视频| 麻豆中文一区二区| 91视频在线观看免费| 9191精品国产综合久久久久久 | 伊人一区二区三区| 精彩视频一区二区| 欧美性受极品xxxx喷水| 国产日韩欧美一区二区三区综合| 一级日本不卡的影视| 国产一区三区三区| 欧美日韩免费高清一区色橹橹 | 成人午夜又粗又硬又大| 91精品国产乱码久久蜜臀| 成人欧美一区二区三区| 激情六月婷婷久久| 欧美日韩午夜在线视频| 成人免费在线播放视频| 国内欧美视频一区二区| 欧美日精品一区视频| 国产精品成人免费在线| 国产一区二区三区不卡在线观看| 欧美精品在线观看一区二区| 日韩毛片一二三区| 国产91高潮流白浆在线麻豆| 日韩欧美一区在线| 亚洲va国产天堂va久久en| 96av麻豆蜜桃一区二区| 青青草国产成人99久久| 色婷婷精品久久二区二区蜜臀av| 国产日产精品1区| 国产乱淫av一区二区三区| 欧美va亚洲va| 麻豆成人在线观看| 日韩精品综合一本久道在线视频| 午夜视频一区在线观看| 欧美天天综合网| 亚洲精品高清在线| 欧美综合在线视频| 亚洲午夜av在线| 7777精品久久久大香线蕉| 亚洲一区二区三区中文字幕| 91久久精品一区二区| 亚洲欧美另类综合偷拍| 91免费国产在线观看| 亚洲精品v日韩精品| 在线视频你懂得一区| 亚洲精品亚洲人成人网 | 色综合久久久久久久久| 中文av一区二区| 国产精品正在播放| 欧美激情在线一区二区| 久久99国产精品久久99| 欧美福利视频导航| 亚欧色一区w666天堂| 风间由美一区二区三区在线观看| 国产欧美日韩三级| 精品一区二区免费| 日韩欧美成人激情| 人人超碰91尤物精品国产| 91精品麻豆日日躁夜夜躁| 舔着乳尖日韩一区| 3d成人动漫网站| 亚洲欧洲成人精品av97| 日本高清视频一区二区| 亚洲精品国产一区二区精华液| 波多野结衣91| 亚洲人成亚洲人成在线观看图片| 91在线小视频| 亚洲最新视频在线播放| 欧美性色aⅴ视频一区日韩精品| 一二三四社区欧美黄| 欧美在线观看一区二区| 亚洲国产综合人成综合网站| 欧美视频一区二| 偷拍自拍另类欧美| 欧美成人一级视频| 国产剧情一区在线| 国产精品天天摸av网| 97精品久久久久中文字幕| 国产ts人妖一区二区| 亚洲成人av一区二区| 91麻豆精品91久久久久同性| 麻豆freexxxx性91精品| 久久中文娱乐网| 9i看片成人免费高清| 伊人夜夜躁av伊人久久| 欧美嫩在线观看| 国产在线精品一区二区不卡了| 久久久久9999亚洲精品| bt欧美亚洲午夜电影天堂| 一个色综合网站| 欧美一级日韩免费不卡| 岛国精品一区二区| 尤物视频一区二区| 欧美一区二区三区在线观看视频| 国产真实乱子伦精品视频| 亚洲国产激情av| 欧美高清视频不卡网| 国产精品一区二区在线观看网站| 最新国产成人在线观看| 欧美精品自拍偷拍| 成人蜜臀av电影| 日韩国产高清在线| 国产亚洲综合在线| 欧美午夜免费电影| 亚洲一区二区在线免费观看视频 | 99麻豆久久久国产精品免费 | 国产精品视频yy9299一区| 91麻豆精品久久久久蜜臀 | 欧美性感一类影片在线播放| 青青草国产精品97视觉盛宴| 国产精品久久久久久久久免费相片 | 青青国产91久久久久久| 91精品国产色综合久久不卡蜜臀| 国产a级毛片一区| 蜜桃免费网站一区二区三区| 国产欧美日韩在线视频| 欧美精品 国产精品| av不卡一区二区三区| 美日韩黄色大片| 一区二区三区不卡在线观看| 久久久噜噜噜久久人人看| 99久久精品99国产精品| 美女视频免费一区| 亚洲精品高清在线| 欧美国产日韩亚洲一区| 91精品国产综合久久久久久| 91视频一区二区| 丁香婷婷综合网| 狠狠色狠狠色综合| 热久久一区二区| 国产精品久久久爽爽爽麻豆色哟哟| 欧美国产国产综合| 久久婷婷综合激情| 欧美一卡二卡在线| 欧美日韩在线观看一区二区 | 一级中文字幕一区二区| 日本一区二区不卡视频| 精品国产在天天线2019| 欧美精品色一区二区三区| 色婷婷久久综合| 不卡一区二区三区四区| 国产成人精品亚洲午夜麻豆| 精品一区二区三区免费| 久久99久久久欧美国产| 久久精品国产一区二区三| 久色婷婷小香蕉久久| 久久综合丝袜日本网| 欧美xxxx老人做受| 日韩精品一区二区在线| 日韩精品一区二区三区在线| 国产亚洲精品资源在线26u| 精品区一区二区| 日韩亚洲欧美在线观看| 精品国产凹凸成av人网站| 欧洲人成人精品| 日韩免费高清电影| 精品国产免费人成在线观看| 日韩欧美国产不卡| 精品国产a毛片| 久久久三级国产网站| 久久精品视频在线免费观看 | 国产精品视频在线看| 国产精品免费丝袜| 欧美国产视频在线| 亚洲成人av电影在线| 免费在线观看成人| 国产麻豆视频一区| 99久久精品免费看| 91国内精品野花午夜精品| 欧美日韩亚洲综合在线 | 中文字幕欧美区| 亚洲日本护士毛茸茸| 亚洲激情图片一区| 石原莉奈在线亚洲三区| 日韩国产欧美在线观看| 99久久精品免费精品国产| 欧美日韩一级视频| 欧美大片在线观看一区|