Question

I just want to use qmake as pro-files parser for extracting project variables (like SOURCES), nothing more. I don't need to generate makefiles.

In other similar tools "dry run" mode usually presents. I.e. "just taste this thing, but do nothing with it". Unfortunately qmake don't have such mode, but can i emulate it with some, probably ugly||hacky way?

Now i'm trying to remove all "generation"-code from qmake source, but it is hard and long task. And i'm like simple decisions :)

Was it helpful?

Solution

The simplest way is to give the -E option to qmake. It will dump the contents of the project variables and continue without generating the makefile.

It is equivalent to the code snippet given in previous edition of this post, but dumps all of the variables and requires no changes to qmake :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top