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


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


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

主題: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命令參考








簽名
久久精品在这里_成人99免费视频_国产激情视频一区二区在线观看_国产伦精品一区二区三区免费 _亚洲午夜免费福利视频_色狠狠色狠狠综合_av在线综合网_91毛片在线观看_欧美视频一区二区在线观看_极品美女销魂一区二区三区免费_国产亚洲欧美激情_在线免费观看不卡av_日韩不卡一区二区三区_91精品国产麻豆国产自产在线_亚洲国产精品一区二区久久恐怖片_a4yy欧美一区二区三区
欧美亚洲丝袜| 久久久噜噜噜久噜久久综合| 欧美日韩电影在线| 国产精品久久久久久久裸模| 麻豆精品在线视频| 欧美日韩精品中文字幕一区二区| 欧美人体做爰大胆视频| 亚洲男人的天堂在线aⅴ视频| 国产精品一区二区在线观看不卡| 欧美污视频久久久| 国产色综合一区| 国产一区二区三区精品视频| 欧美日韩一区二 | 日本高清不卡视频| 亚洲欧美日韩系列| 99久久精品免费精品国产| 欧美在线观看禁18| 天天色综合天天| 蜜桃成人在线| 国产日产精品1区| 国产成人免费在线观看不卡| 91国模大尺度私拍在线视频| 亚洲一区在线播放| 欧美二区在线看| 国产精品久久久久永久免费观看| jiyouzz国产精品久久| 在线播放亚洲一区| 老司机精品视频在线| 日韩欧美视频一区二区| 最新国产成人在线观看| 91超碰在线免费观看| 这里是久久伊人| 国产一区亚洲一区| 欧美日韩成人一区二区| 久久电影国产免费久久电影| 色综合久久综合网97色综合 | 成人午夜视频在线| 91精品国产欧美一区二区18 | 波多野结衣亚洲| 91精品蜜臀在线一区尤物| 国产在线播放一区二区三区| 欧美日韩中文另类| 激情综合色播五月| 欧美色网站导航| 韩国成人在线视频| 欧美精品一二三区| 国产一区二区福利视频| 欧美日本一区二区| 粉嫩在线一区二区三区视频| 日韩欧美一区二区在线视频| 粉嫩av一区二区三区粉嫩| 91精品啪在线观看国产60岁| 粉嫩13p一区二区三区| 欧美xxxxxxxxx| 91亚洲精品丁香在线观看| 国产精品麻豆99久久久久久| 久久久久网址| 天堂精品中文字幕在线| 91黄色免费版| 国产一区二区伦理片| 日韩精品专区在线影院观看| 91污在线观看| 中文字幕一区在线| 欧美日韩在线精品| 日韩国产一二三区| 欧美精品久久天天躁| 成人动漫一区二区三区| 国产清纯美女被跳蛋高潮一区二区久久w | 亚洲欧美色一区| 一区二区视频在线免费| 久久er精品视频| 日韩精品中文字幕一区二区三区| 91香蕉视频污在线| 亚洲日本在线a| 色婷婷av一区二区三区之一色屋| 精一区二区三区| 久久综合国产精品| 蜜桃91精品入口| 日本一不卡视频| 日韩精品中午字幕| 精品久久久久久综合日本| 午夜婷婷国产麻豆精品| 欧美久久久久久蜜桃| 91丨九色丨蝌蚪富婆spa| 一区二区三区精品在线观看| 欧美日韩视频一区二区| 成人黄色片视频网站| 亚洲bt欧美bt精品| 91精品国产综合久久精品图片| 成人免费在线看片| 日日夜夜免费精品视频| 欧美v国产在线一区二区三区| 国内一区在线| 久久99国产精品成人| 欧美国产综合一区二区| 一区二区av| 99re66热这里只有精品3直播 | 免费观看成人在线| 九九**精品视频免费播放| 久久精品在这里| 四虎影院一区二区三区 | 亚洲综合偷拍欧美一区色| 欧美美女视频在线观看| 国模一区二区三区私拍视频| 精品一区二区在线视频| 中文字幕欧美日韩一区| 欧美在线观看禁18| 国产尤物91| 精品亚洲成a人| 国产精品久久久久久亚洲毛片| 欧美性受xxxx黑人xyx性爽| 国产传媒一区二区| 国产一区 二区 三区一级| 亚洲欧美日韩在线| 日韩精品一区二区三区swag| 一区二区三区av| 国产精品一区二区免费| 国产酒店精品激情| 亚洲高清一区二区三区| 国产欧美日韩一区二区三区在线观看| 色综合天天综合狠狠| 国产免费一区二区| 大尺度一区二区| 蜜桃久久av一区| 一区二区三区高清在线| 久久久国产综合精品女国产盗摄| 色先锋aa成人| 欧美日韩高清在线一区| jlzzjlzz亚洲日本少妇| 精品一区二区日韩| 亚洲一区二区在线播放相泽| 国产欧美精品日韩区二区麻豆天美 | 欧美一区二区免费| 一区二区三区四区欧美| 蜜桃欧美视频| 国产精品久久国产三级国电话系列| 国产一区高清在线| 日韩国产成人精品| 亚洲精品乱码久久久久久久久| 久久久亚洲国产美女国产盗摄 | 色综合久久88色综合天天免费| 国产精品久久7| 99亚偷拍自图区亚洲| 国产乱国产乱300精品| 免费美女久久99| 亚洲国产日韩精品| 亚洲色图制服丝袜| 国产精品久久久久影院老司| wwww国产精品欧美| 日韩欧美色电影| 在线电影院国产精品| 日本高清不卡视频| 一本久道中文字幕精品亚洲嫩| 日韩在线电影一区| 欧美美乳视频网站在线观看| 精品人伦一区二区三区| 国产视频在线观看一区| 国产精品一区而去| 国产欧美一区二区三区另类精品 | 国产综合精品一区二区三区| 99国产超薄丝袜足j在线观看 | 欧美综合在线视频| 正在播放久久| 亚洲综合av一区| 亚洲一二区在线| 一区二区高清视频| 色综合激情五月| 91福利社在线观看| 欧美色视频在线观看| 精品视频一区三区九区| 欧美日韩一区在线观看| 精品视频999| 91精品久久久久久久99蜜桃| 在线不卡a资源高清| 91精品国产一区二区人妖| 在线观看91av| 日韩精品一区二区三区视频播放| 欧美r级电影在线观看| 久久精品一区二区三区不卡 | 一区二区三区四区不卡视频 | 国产一区视频观看| 久久国产精品一区二区三区| 欧美日本韩国国产| 在线观看成人一级片| 欧美三电影在线| 日韩一二三四区| 久久久99免费| 亚洲精品国产成人久久av盗摄| 亚洲最新在线观看| 蜜桃视频在线一区| 成人国产免费视频| 国产成人女人毛片视频在线| 欧美精品一区二区视频| 日本久久电影网| 日韩一区二区三区在线| 国产欧美日韩中文久久| 亚洲精选视频免费看| 青青青爽久久午夜综合久久午夜| 国产精品自拍av| 91精品久久久久久蜜桃|