[Qt-interest] Loading qmake variables from files?

Aaron Lewis the.warl0ck.1989 at gmail.com
Sun Oct 24 02:37:43 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/24/2010 07:02 AM, Anatoly Burakov wrote:
> Hi all
> 
> Can i load qmake variables from external files?
> 

See qmake's manual:

include(filename)

[Conditional]

Includes the contents of the file specified by filename into the current
project at the point where it is included. This function succeeds if
filename is included; otherwise it fails. The included file is processed
immediately.

You can check whether the file was included by using this function as
the condition for a scope; for example:

 include( shared.pri )
 OPTIONS = standard custom
 !include( options.pri ) {
     message( "No custom build options specified" )
 OPTIONS -= custom
 }



- -- 
Best Regards,
Aaron Lewis - PGP: 0xDFE6C29E
Key Server: http://keyserver.veridis.com
Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E

No HTML shits , thanks.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMw3/XAAoJECSSp9Df5sKeXFwP/imYguH5owV11QRnClPzbwur
YWvZSj6lb9B2CXyMj7WGJR3lIJtFRMMv34zI6D9jbXVwBLpGSsMTUgh1s53gLzLZ
yucfiMBQaP5UKX6HZ0MY5er0YGA3f4WqB2dSw5XNGjHMLDTmVM5Ga+QGQxV87jig
ehi6B6x/MoytAeXlutieENVzcthyliJAEcEzwqSEcHbiGmWrINsxoXMLl7ppSdRx
KxZXupZEU3aijp3AIF4b87Hm8Q5Y/eTUgKAm+JraxVo8BqLaxHCOE2ZDmGO+hrmH
njyS35LFy7R3+f1G/yz7wtAmhQ95ikFliEk2oXvz0Q8N6tDYg2E6+UOenr/1zVdJ
JZ3s5AQMoIFO+rK7XYcb5dWJuaoi3lGTT2A/UHVIDvI6j5eq8pjsImPdIZ++9fnc
Kd6rvSdKjYnZPOu5xwyQ1g1rHTNqAkJewQE5MU0vAQfN8G06ZqSs4carheOjipMs
gUETIvOJjxfmK/njmj1nngcGU8/N4Jw3+EFtei1xpT4F35c/QxfcNnr/csWD8vcJ
0TeOJerDtvIf2CqaowEtEfxkyKVllN3n8fmFRhIzmvK4UBvKEG6uTHGz7EP1A0y6
TAz6ZWrqXazm9RvFLYCJ/P5z2jqXi98mgwFHYui+D65D7Fg3iplEiRh3bZkGLRsF
GPN/Cx7wtwE7vAQ3HZLz
=k1sy
-----END PGP SIGNATURE-----



More information about the Qt-interest-old mailing list