Home · Overviews · Reference · Classes codeless banner

QBuild Variables

QBuild supports several types of variables.

Normal variables are denoted by $$ and can be braced with {} for disambiguation. For example,

    FOO=$$BAR
    FOO=$${BAR}

Qt variables are braced with []. For example,

    FOO=$$[BAR]

Environment variables are braced with (). For example,

    FOO=$$(BAR)

Function calls also use the normal variable syntax. See QBuild Functions for more information on these functions.

Variables

AVAILABLE_LANGUAGES
CONFIGThe CONFIG variable loads extensions and controls many functions.
DEPENDS
DEPENDS.AUTO_PERSIST
EXTRA_TS_FILES
FORMSThe FORMS variable selects .ui files to build.
HEADERSThe HEADERS variable lists header files used by the project. For libraries that are modules, these headers are installed into the SDK.
HEADERS_NAMEThe HEADERS_NAME variable allows a name other than MODULE_NAME to be used for the include directory.
LANGUAGES
LIBSThe LIBS variable is used to add libs to the link line.
MKSPEC.AR
MKSPEC.CC
MKSPEC.CFLAGS
MKSPEC.CFLAGS_DEBUG
MKSPEC.CFLAGS_HIDESYMS
MKSPEC.CFLAGS_OPTBASE
MKSPEC.CFLAGS_OPTMORE
MKSPEC.CFLAGS_PIC
MKSPEC.CFLAGS_RELEASE
MKSPEC.CFLAGS_THREAD
MKSPEC.CFLAGS_WARN_OFF
MKSPEC.CFLAGS_WARN_ON
MKSPEC.CXX
MKSPEC.CXXFLAGS
MKSPEC.CXXFLAGS_DEBUG
MKSPEC.CXXFLAGS_DISABLE_EXCEPTIONS
MKSPEC.CXXFLAGS_DISABLE_RTTI
MKSPEC.CXXFLAGS_HIDESYMS
MKSPEC.CXXFLAGS_OPTBASE
MKSPEC.CXXFLAGS_OPTMORE
MKSPEC.CXXFLAGS_RELEASE
MKSPEC.CXXFLAGS_WARN_OFF
MKSPEC.CXXFLAGS_WARN_ON
MKSPEC.DEL_FILE
MKSPEC.INSTALL_DIR
MKSPEC.INSTALL_FILE
MKSPEC.INSTALL_PROGRAM
MKSPEC.LFLAGS
MKSPEC.LFLAGS_DEBUG
MKSPEC.LFLAGS_OPTIMIZE
MKSPEC.LFLAGS_PLUGIN
MKSPEC.LFLAGS_RELEASE
MKSPEC.LFLAGS_SHLIB
MKSPEC.LFLAGS_SONAME
MKSPEC.MKDIR
MKSPEC.RPATH
MKSPEC.STRIP
MKSPEC.STRIPFLAGS_SHLIB
MKSPEC.SYMBOLIC_LINK
MOC_COMPILE_EXCEPTIONSSupport for a qmake feature.
MOC_IGNOREtell moc to ignore files
MODULES
MODULE_NAME
NON_PUBLIC_HEADERSThe NON_PUBLIC_HEADERS variable lists header files used by the project. These headers are not installed into the SDK.
PACKAGES
POSTIMAGE_RULESRun rules after the "image" rule.
POSTRUN_RULESRun rules after the "default" rule.
PREIMAGE_RULESRun rules before the "image" rule.
PRERUN_RULESRun rules before the "default" rule.
PRIVATE_HEADERSThe PRIVATE_HEADERS variable lists private header files used by the project. These headers are not installed into the SDK.
PUBLIC_HEADERS_OVERRIDEThe PUBLIC_HEADERS_OVERRIDE variable is used to allow files to be installed as public headers.
RESOURCESThe RESOURCES variable selects .qrc files to embed into the executable.
RUNLAST
SEMI_PRIVATE_HEADERSThe SEMI_PRIVATE_HEADERS variable lists private headers that other projects will use. These headers are not installed into the SDK.
SOURCEPATHThe SOURCEPATH variable is used to locate source code.
SOURCESThe SOURCES variable selects source files used to build the target binary.
STRING_LANGUAGE
SUBDIRS
SUBDIRS_EXCLUDE
SUBDIRS_RULES
TARGETThe TARGET variable names the output binary.
TEMPLATE
TS_DIR
VERSIONThe VERSION variable is used to set the library version.
VPATHThe VPATH variable is used to locate source code.

See also QBuild Script and Qt Variables.


Copyright © 2009 Trolltech
Qt Extended - QBuild Maintainer Guide