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


曙海教育集團論壇Linux專區Linux技術討論區 → qmake命令參考


  共有10430人關注過本帖樹形打印

主題:qmake命令參考

客人(58.34.*.*)
  1樓


qmake命令參考  發帖心情 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單帖管理 | 引用 | 回復 回到頂部

返回版面帖子列表

qmake命令參考








簽名
毛片网站在线看_天堂俺去俺来也www久久婷婷_日韩av免费网站_18性欧美xxxⅹ性满足_一区二区三区韩国免费中文网站 _性xx色xx综合久久久xx_999亚洲国产精
91色在线porny| 国产精品久久久久一区| 亚洲无线码一区二区三区| 久久久久久久精| 欧美日韩综合在线| 成人av综合一区| 天天影视涩香欲综合网| 亚洲欧洲av色图| 91精品国产欧美一区二区18| av一二三不卡影片| 免费在线观看视频一区| 亚洲天堂网中文字| 久久久久久久久久久99999| 88在线观看91蜜桃国自产| 91网址在线看| 成人综合婷婷国产精品久久| 韩国在线一区二区| 免费看日韩精品| 三级影片在线观看欧美日韩一区二区| 国产日韩精品一区二区三区| 日韩欧美色综合网站| 欧美一区二区三区四区高清| 欧美午夜免费电影| 欧美性色欧美a在线播放| 欧日韩精品视频| 91亚洲男人天堂| 成人黄色777网| av日韩在线网站| 91美女片黄在线观看| av电影在线观看不卡| 97久久精品人人澡人人爽| 99精品视频在线观看免费| 色成年激情久久综合| 欧美系列一区二区| 欧美肥胖老妇做爰| 日韩美女视频在线| 久久男人中文字幕资源站| 久久精品一区二区| 亚洲日本成人在线观看| 亚洲一区二区精品久久av| 亚洲二区视频在线| 青青草一区二区三区| 精品一区二区在线视频| 国产一区二区三区久久悠悠色av| 国产精品1区2区| 色视频成人在线观看免| 欧美专区日韩专区| 欧美日韩一区二区欧美激情| 欧美高清hd18日本| 精品国产麻豆免费人成网站| 国产精品卡一卡二卡三| 亚洲已满18点击进入久久| 午夜不卡av在线| 国产剧情一区在线| 日本道免费精品一区二区三区| 欧美一区二区三区免费视频 | 2023国产精品视频| 亚洲三级理论片| 视频一区二区三区入口| 国产麻豆视频精品| 91久久久免费一区二区| 欧美成人一区二区三区 | 一区二区三区欧美亚洲| 美女一区二区久久| 成人开心网精品视频| 欧美福利电影网| 亚洲婷婷在线视频| 激情图片小说一区| www.日韩大片| 久久天堂av综合合色蜜桃网| 亚洲激情av在线| 国产在线精品免费av| 色综合久久久久久久久| 日韩精品一区二区三区四区视频| 中文字幕中文乱码欧美一区二区 | 久久精品噜噜噜成人av农村| 99久久久国产精品免费蜜臀| 日韩一区二区精品在线观看| 国产精品美女一区二区三区| 免费高清在线一区| 91热门视频在线观看| 久久久久久久久久久久久久久99| 亚洲午夜国产一区99re久久| 国产大陆a不卡| 日韩精品一区二区三区视频 | 一区二区三区视频在线看| 久久精品国产99国产精品| 一本到不卡免费一区二区| 欧美电影免费观看高清完整版在线观看| 国产精品久久久久影院老司| 精品一区中文字幕| 欧美一区二区三区播放老司机| 一区二区三区欧美| 99精品久久久久久| 亚洲视频中文字幕| 9色porny自拍视频一区二区| 久久亚洲一级片| 精品在线视频一区| 日韩丝袜情趣美女图片| 日韩国产欧美一区二区三区| 欧美日韩一区中文字幕| 亚洲激情网站免费观看| 色狠狠色狠狠综合| 一区二区三区日韩| 欧美在线视频不卡| 夜夜操天天操亚洲| 欧美系列日韩一区| 午夜视频一区二区| 91精品在线麻豆| 美国三级日本三级久久99| 91精品国产综合久久香蕉麻豆 | 青青草原综合久久大伊人精品 | 三级久久三级久久| 91麻豆精品91久久久久久清纯| 日本亚洲最大的色成网站www| 欧美一卡二卡在线| 国产一区日韩二区欧美三区| 国产亚洲欧洲一区高清在线观看| 国产成人精品网址| 亚洲三级理论片| 欧美挠脚心视频网站| 免费在线观看精品| 欧美国产乱子伦 | 麻豆传媒一区二区三区| 久久亚洲综合av| 99九九99九九九视频精品| 亚洲一区二区三区在线| 欧美日韩成人综合天天影院| 裸体一区二区三区| 国产日韩欧美麻豆| 色婷婷亚洲精品| 蜜臀va亚洲va欧美va天堂 | 自拍av一区二区三区| 精品视频在线免费看| 久久成人av少妇免费| 中文字幕成人在线观看| 欧美男女性生活在线直播观看| 免费成人美女在线观看| 亚洲国产激情av| 88在线观看91蜜桃国自产| 成人中文字幕在线| 午夜久久久影院| 国产日产精品一区| 欧美午夜不卡在线观看免费| 国产在线精品国自产拍免费| 亚洲乱码国产乱码精品精可以看| 欧美一区二区高清| 在线中文字幕一区二区| 国产资源在线一区| 亚洲大片一区二区三区| 国产女人18水真多18精品一级做| 欧美精品xxxxbbbb| 91在线精品秘密一区二区| 麻豆成人久久精品二区三区红| 中文字幕日韩av资源站| 精品久久国产老人久久综合| 在线一区二区三区四区五区| 国产精品99久| 麻豆91免费观看| 午夜精品久久久久久久| 国产精品乱码一区二区三区软件 | 国产91高潮流白浆在线麻豆| 日韩不卡免费视频| 亚洲精选免费视频| 国产精品国产三级国产专播品爱网 | 欧美极品另类videosde| 欧美一级艳片视频免费观看| 色吧成人激情小说| 成人av电影在线| 国产ts人妖一区二区| 老司机一区二区| 青草国产精品久久久久久| 亚洲国产日韩a在线播放| 亚洲人成伊人成综合网小说| 中文字幕乱码亚洲精品一区| 久久色成人在线| 久久综合给合久久狠狠狠97色69| 欧美精选午夜久久久乱码6080| 色老综合老女人久久久| 91福利资源站| 91极品视觉盛宴| 91蝌蚪国产九色| 99re热这里只有精品视频| av中文字幕不卡| 一本大道久久a久久综合| 99精品久久久久久| 91国偷自产一区二区三区观看| 91丝袜国产在线播放| 在线观看日韩电影| 欧美精品乱码久久久久久按摩| 欧美日韩激情一区二区| 欧美日韩成人在线| 欧美大胆一级视频| wwwwww.欧美系列| 国产日产欧美一区二区视频| 国产精品久久久久aaaa| 怡红院av一区二区三区| 一区二区日韩电影| 偷拍与自拍一区| 久久av资源网|