[Qt-interest] What are the rules for capitalization of "config" in .pro files?
Malyushytsky, Alex
alex at wai.com
Tue Feb 8 03:33:57 CET 2011
If we are talking about variables,
even if it may sound weird :)
everything capitalized in documentation
should be capitalized.
http://doc.qt.nokia.com/latest/qmake-variable-reference.html
If we talking about function, it is safe to read documentation too:
http://doc.qt.nokia.com/latest/qmake-variable-reference.html
I guess capitalization comes historically from system environment variables definition traditions.
So one main rule I would follow - follow documentation.
Regards,
Alex
-----Original Message-----
From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of K. Frank
Sent: Friday, February 04, 2011 4:00 PM
To: Qt-interest
Subject: [Qt-interest] What are the rules for capitalization of "config" in .pro files?
Hello All!
I have a .pro file set up to build both the debug and release versions
of an application, linked with the debug and release versions of a
library, respectively.
It seems that sometimes the "config" variable may be specified in
lowercase, but that other times it must be given in uppercase.
(I _think_ that always using uppercase works, but I might have had
a test case where this wasn't true.)
This works.
config += debug_and_release
CONFIG += build_all
CONFIG(debug, debug|release) {
LIBS += -lmylib_debug
}
CONFIG(release, debug|release) {
LIBS += -lmylib_release
}
But changing "CONFIG += build_all" to "config += build_all"
fails (in that running make with no arguments only builds
the debug version, rather than both the debug and release
versions).
Hardly a big deal, but does anyone know what's going on here?
As a practical matter should I always stick to uppercase "CONFIG",
or might that bite me in the future in other ways?
Thanks for any and all enlightenment.
K. Frank
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”
“Please consider our environment before printing this email.”
More information about the Qt-interest-old
mailing list