Hi,
My application has been written in such a manner that a stripped back 'lite' version can be compiled simply by not including the extra .h and .cpp files.
As far as I understand it this can be achieved in the .pro file like so:
CONFIG += full_version
SOURCES += core.cpp
HEADERS += core.h
full_version {
SOURCES += extra.cpp
HEADERS += extra.h
.....
}
CONFIG += full_version
SOURCES += core.cpp
HEADERS += core.h
full_version {
SOURCES += extra.cpp
HEADERS += extra.h
.....
}
To copy to clipboard, switch view to plain text mode
The first time I compiled and ran this I got the full application in the exe. However if I make a change to the pro file, say, comment out the Config line, effectively asking for a 'lite' version I still get the full application. I thought possibly something was getting cached somewhere so I deleted the makefile, makefile.debug, makefile.release and everything in the debug and release folders, cleaned the project, ran qmake and built the project again. But I still got the full application. I repeated this a couple of times and on the last time I got my lite version. So I uncommented the config line again and now cannot get the full version back!
I believe the code is right in the .pro file but am I missing something when making changes to it?
Thanks, C.
Bookmarks