Home · Overviews · Reference · Classes codeless banner

cpp_compiler Extension

The cpp_compiler extension handles interaction with the C/C++ compiler.

Rules

The cpp_compiler creates the following rules.

Rule nameUser ruleDescription
objectsYes
clean_objectsYes
force_clean_objectsYes
targetYes
compiler_depends_dependsNo
compiler_source_dependsNo

Variables

TypeNameDescription
InputTARGETDIROutput directory for linked binaries. If omitted the project directory is used.
InputTARGETTarget name.
InputTYPE == COMPILER_CONFIGUsed to propagate compiler configuration
InputCOMPILER.OUTPUTexe, lib or staticlib
OutputCOMPILER.CFLAGS
OutputCOMPILER.CXXFLAGS
OutputCOMPILER.DEFINES
OutputCOMPILER.LFLAGS
OutputCOMPILER.INCLUDEPATH.DEPENDS_RULES
OutputCOMPILER.INCLUDEPATH
OutputCOMPILER.SOURCE_DEPENDS
OutputCOMPILER.SOURCE_DEPENDS_RULES
OutputCOMPILER.LIBS
OutputCOMPILER.LIBS.DEPENDS_RULES
OutputCOMPILER.TARGETDIR
OutputCOMPILER.OBJDIR
OutputCOMPILER.DEPDIR
OutputCOMPILER.TARGET
OutputCOMPILER.VERSION(lib/staticlib)
OutputCOMPILER.STATICLIB(staticlib)
OutputCOMPILER.SHAREDLIB(lib)
OutputCOMPILER.SHAREDLIB_SONAME(lib)
OutputCOMPILER.EXECUTABLE(exe)
OutputCOMPILER.ARGS_TEST_FILE

See also QBuild Extensions and QBuild Script.


Copyright © 2009 Trolltech
Qt Extended - QBuild Maintainer Guide