free hit counter

Tuesday, March 27, 2007

accessing environment variables in qmake

Funny how the most common things seem to be the hardest to find information about on the information-super-highway.

I forgot how to reference environment variables in qmake, and don't have access to my super complicated build files from two lives ago.

The answer:

$$(AN_ENV_VAR)

e.g.

contains($$(USERDOMAIN), "riansanderson.com")
{
#special processing
}

Labels:

0 Comments:

Post a Comment

<< Home