Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meaning of TEMPLATE=aux in a qmake project file

Tags:

qmake

What does this line mean in qmake .pro file?

TEMPLATE=aux

It is not documented, but seems to not cause an error or anything now that I tested it, and I've seen it used in a .pro.

like image 490
hyde Avatar asked Sep 24 '13 08:09

hyde


People also ask

How do I create a qmake file?

Makefile is a set of commands (similar to terminal commands) with variable names and targets to create object file and to remove them. In a single make file we can create multiple targets to compile and to remove object, binary files. You can compile your project (program) any number of times by using Makefile.

What is Qt project file?

A .pro file is actually the project file used by qmake to build your application, library, or plugin. It contains all the information, such as links to the headers and source files, libraries required by the project, custom-build processes for different platforms/environments, and so on.

What is a qmake file?

The project file format used by qmake can be used to support both simple and fairly complex build systems. Simple project files use a straightforward declarative style, defining standard variables to indicate the source and header files that are used in the project.


2 Answers

Google returns "- Implemented "aux" template that allows making use of the INSTALLS variable without building anything. Needed for projects with QML entry point." From Digia's 4.8 release notes.

Also of interest: the patch which added this.

like image 184
James Elderfield Avatar answered Oct 17 '22 15:10

James Elderfield


The TEMPLATE variable's value of aux is now documented at https://doc.qt.io/qt-5/qmake-variable-reference.html#template .

I have seen TEMPLATE = aux used in .pro files for Qt Installer Frameworks projects which create standalone executables which do not have to be run from Qt Creator.

like image 44
user2537594 Avatar answered Oct 17 '22 14:10

user2537594