add cache() function
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Fri, 27 Apr 2012 16:34:09 +0000 (18:34 +0200)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Tue, 19 Jun 2012 14:39:54 +0000 (16:39 +0200)
commit2702f7637e7a2955d37dcd8e748dbf3faf477b2d
treed42d5dbb97c6ea082752b610e01b46233d0fbf7d
parent64f475aabd7cd57380dd1559c7d33fb3a5d6efa8
add cache() function

this function adds the current contents of the named variable to the
cache. this comprises populating base_vars and appending an assignment
to .qmake.cache. if no cache file exists yet, it will be created in the
current output directory (and inherited by subdirs projects). if called
without a variable name, only create the cache file if missing.

Change-Id: I1e81c2238aa6a5817a6ebbfb022e2b995c349363
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
qmake/project.cpp