[Interest] passing something into subdirs qmake

Vyacheslav Lanovets sol at lanovets.ru
Wed Jun 5 10:32:18 CEST 2019


Hello,

I want to invent some convenient way to switch between two variations
of the same app. Current approach is to have 2 pro files with subdirs
inside.
The selected config is passed into subdirs like this:

product_var="MYAPP1=true"
write_file(".qmake.conf", product_var)

This is not reliable and confuses Qt Creator. Is there any other way
to pass something from pro files into subdirs dependencies?

Regards,
Vyacheslav


More information about the Interest mailing list