Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MakefileGenerator Class Reference

#include </home/clem/local/src/opie/qmake/generators/makefile.h>

Inheritance diagram for MakefileGenerator:

Inheritance graph
[legend]
Collaboration diagram for MakefileGenerator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MakefileGenerator (QMakeProject *p)
virtual ~MakefileGenerator ()
virtual bool write ()
virtual bool openOutput (QFile &) const

Static Public Member Functions

static MakefileGeneratorcreate (QMakeProject *)

Protected Member Functions

void writeObj (QTextStream &, const QString &obj, const QString &src)
void writeUicSrc (QTextStream &, const QString &ui)
void writeMocObj (QTextStream &, const QString &obj, const QString &src)
void writeMocSrc (QTextStream &, const QString &src)
void writeLexSrc (QTextStream &, const QString &lex)
void writeYaccSrc (QTextStream &, const QString &yac)
void writeInstalls (QTextStream &t, const QString &installs)
void writeImageObj (QTextStream &t, const QString &obj)
void writeImageSrc (QTextStream &t, const QString &images)
bool generateDependencies (QPtrList< MakefileDependDir > &dirs, const QString &x, bool recurse)
QString buildArgs ()
QString specdir ()
QString cleanFilePath (const QString &file) const
bool generateMocList (const QString &fn)
QString findMocSource (const QString &moc_file) const
QString findMocDestination (const QString &src_file) const
virtual QStringListfindDependencies (const QString &file)
void setNoIO (bool o)
bool noIO () const
void setMocAware (bool o)
bool mocAware () const
void logicWarn (const QString &, const QString &)
virtual bool doDepends () const
bool writeHeader (QTextStream &)
virtual bool writeMakefile (QTextStream &)
virtual bool writeMakeQmake (QTextStream &)
void initOutPaths ()
virtual void init ()
virtual void usePlatformDir ()
virtual QString defaultInstall (const QString &)
bool processPrlFile (QString &)
virtual void processPrlVariable (const QString &, const QStringList &)
virtual void processPrlFiles ()
virtual void writePrlFile (QTextStream &)
virtual bool findLibraries ()
virtual QString findDependency (const QString &)
void setProcessedDependencies (const QString &file, bool b)
bool processedDependencies (const QString &file)
virtual QString var (const QString &var)
QString varGlue (const QString &var, const QString &before, const QString &glue, const QString &after)
QString varList (const QString &var)
QString val (const QStringList &varList)
QString valGlue (const QStringList &varList, const QString &before, const QString &glue, const QString &after)
QString valList (const QStringList &varList)
QString fileFixify (const QString &file, const QString &out_dir=QString::null, const QString &in_dir=QString::null, bool force_fix=FALSE, bool canon=TRUE) const
QStringList fileFixify (const QStringList &files, const QString &out_dir=QString::null, const QString &in_dir=QString::null, bool force_fix=FALSE, bool canon=TRUE) const

Protected Attributes

QMakeProjectproject

Private Member Functions

QStringList createObjectList (const QString &var)
QString build_args ()
QString dependencyKey (const QString &file) const

Private Attributes

QString spec
bool init_opath_already
bool init_already
bool moc_aware
bool no_io
QMap< QString, bool > depProcessed
QMap< QString, QStringdepHeuristics
QMap< QString, QStringfileFixed
QMap< QString, QStringmocablesToMOC
QMap< QString, QStringmocablesFromMOC
QMap< QString, QStringListdepends

Classes

class  MakefileDependDir

Constructor & Destructor Documentation

MakefileGenerator::MakefileGenerator QMakeProject p  ) 
 

Definition at line 93 of file makefile.cpp.

MakefileGenerator::~MakefileGenerator  )  [inline, virtual]
 

Definition at line 185 of file makefile.h.


Member Function Documentation

QString MakefileGenerator::build_args  )  [private]
 

Definition at line 2115 of file makefile.cpp.

References buildArgs(), fileFixify(), QMakeProject::first(), Option::fixPathToTargetOS(), QString::isEmpty(), QStringList::join(), name, Option::output, project, and Option::mkfile::project_files.

Referenced by writeHeader(), and writeMakeQmake().

QString MakefileGenerator::buildArgs  )  [protected]
 

Definition at line 2066 of file makefile.cpp.

References Option::after_user_vars, Option::before_user_vars, QValueList< T >::begin(), QValueList< T >::count(), Option::mkfile::do_cache, Option::mkfile::do_dep_heuristics, Option::mkfile::do_deps, Option::mkfile::do_mocs, QValueList< T >::end(), QMakeProject::first(), QMakeProject::isEmpty(), QString::isEmpty(), project, Option::mkfile::qmakespec_commandline, qstrlen(), Option::user_template, Option::warn_level, WarnAll, WarnNone, and WarnParser.

Referenced by build_args(), UnixMakefileGenerator::writeMakeParts(), writeMakeQmake(), Win32MakefileGenerator::writeSubDirs(), and UnixMakefileGenerator::writeSubdirs().

QString MakefileGenerator::cleanFilePath const QString file  )  const [protected]
 

Definition at line 2324 of file makefile.cpp.

References fileFixify(), and Option::fixPathToTargetOS().

Referenced by findMocDestination(), findMocSource(), generateMocList(), and init().

MakefileGenerator * MakefileGenerator::create QMakeProject  )  [static]
 

Definition at line 2461 of file makefile.cpp.

References QString::isEmpty(), QString::latin1(), NULL, Option::QMAKE_GENERATE_PROJECT, and Option::qmake_mode.

Referenced by main().

QStringList MakefileGenerator::createObjectList const QString var  )  [private]
 

Definition at line 2024 of file makefile.cpp.

References QString::append(), QFileInfo::baseName(), QValueList< T >::begin(), Option::dir_sep, QValueList< T >::end(), FALSE, QString::findRev(), QMakeProject::first(), Option::fixPathToLocalOS(), Option::fixPathToTargetOS(), QMakeProject::isActiveConfig(), QString::isEmpty(), l, QString::left(), Option::obj_ext, project, TRUE, and QMakeProject::variables().

Referenced by init().

QString MakefileGenerator::defaultInstall const QString  )  [inline, protected, virtual]
 

Reimplemented in UnixMakefileGenerator.

Definition at line 176 of file makefile.h.

Referenced by writeInstalls().

QString MakefileGenerator::dependencyKey const QString file  )  const [private]
 

Definition at line 2352 of file makefile.cpp.

References Option::dir_sep, QString::find(), QString::findRev(), Option::fixPathToTargetOS(), QString::length(), and QString::right().

Referenced by findDependencies(), init(), processedDependencies(), and setProcessedDependencies().

virtual bool MakefileGenerator::doDepends  )  const [inline, protected, virtual]
 

Reimplemented in MetrowerksMakefileGenerator, ProjectBuilderMakefileGenerator, UnixMakefileGenerator, and VcprojGenerator.

Definition at line 99 of file makefile.h.

References Option::mkfile::do_deps.

Referenced by UnixMakefileGenerator::doDepends(), init(), and writeObj().

QStringList MakefileGenerator::fileFixify const QStringList files,
const QString out_dir = QString::null,
const QString in_dir = QString::null,
bool  force_fix = FALSE,
bool  canon = TRUE
const [protected]
 

Definition at line 2190 of file makefile.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), fileFixify(), and QValueList< T >::isEmpty().

QString MakefileGenerator::fileFixify const QString file,
const QString out_dir = QString::null,
const QString in_dir = QString::null,
bool  force_fix = FALSE,
bool  canon = TRUE
const [protected]
 

Definition at line 2204 of file makefile.cpp.

References QString::at(), Option::mkfile::cachefile_depth, QMap< Key, T >::contains(), QFileInfo::convertToAbs(), QDir::currentDirPath(), debug_msg(), depth, Option::dir_sep, QFile::exists(), FALSE, fileFixed, QFileInfo::filePath(), QString::findRev(), QMakeProject::first(), Option::fixPathToLocalOS(), Option::fixPathToTargetOS(), i, QMakeProject::isActiveConfig(), QMakeProject::isEmpty(), QString::isEmpty(), QChar::isNull(), QString::isNull(), QDir::isRelativePath(), QString::latin1(), QString::left(), QString::length(), QString::mid(), QString::number(), o, Option::output_dir, QString::prepend(), project, Option::QMAKE_GENERATE_MAKEFILE, Option::QMAKE_GENERATE_PRL, Option::qmake_mode, quote(), QString::right(), QDir::separator(), QString::startsWith(), and TRUE.

Referenced by ProjectGenerator::addFile(), DspMakefileGenerator::beginGroupForFile(), build_args(), cleanFilePath(), UnixMakefileGenerator::defaultInstall(), fileFixify(), generateDependencies(), generateMocList(), UnixMakefileGenerator::init(), ProjectGenerator::init(), init(), initOutPaths(), UnixMakefileGenerator::pkgConfigFileName(), processPrlFile(), write(), BorlandMakefileGenerator::writeBorlandParts(), writeHeader(), writeInstalls(), writeLexSrc(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), writeMakeQmake(), NmakeMakefileGenerator::writeNmakeParts(), Win32MakefileGenerator::writeSubDirs(), VcprojGenerator::writeSubDirs(), UnixMakefileGenerator::writeSubdirs(), ProjectBuilderMakefileGenerator::writeSubdirs(), writeUicSrc(), and writeYaccSrc().

QStringList & MakefileGenerator::findDependencies const QString file  )  [protected, virtual]
 

Reimplemented in UnixMakefileGenerator, and NmakeMakefileGenerator.

Definition at line 2377 of file makefile.cpp.

References dependencyKey(), and depends.

Referenced by NmakeMakefileGenerator::findDependencies(), UnixMakefileGenerator::findDependencies(), generateDependencies(), ProjectGenerator::init(), init(), DspMakefileGenerator::writeDspParts(), writeImageSrc(), writeLexSrc(), MetrowerksMakefileGenerator::writeMakeParts(), writeMocObj(), writeObj(), and writeUicSrc().

QString MakefileGenerator::findDependency const QString  )  [inline, protected, virtual]
 

Reimplemented in UnixMakefileGenerator, and Win32MakefileGenerator.

Definition at line 182 of file makefile.h.

Referenced by Win32MakefileGenerator::findDependency(), UnixMakefileGenerator::findDependency(), and generateDependencies().

bool MakefileGenerator::findLibraries  )  [inline, protected, virtual]
 

Reimplemented in UnixMakefileGenerator, MingwMakefileGenerator, DspMakefileGenerator, VcprojGenerator, and Win32MakefileGenerator.

Definition at line 179 of file makefile.h.

References TRUE.

Referenced by write().

QString MakefileGenerator::findMocDestination const QString src_file  )  const [inline, protected]
 

Definition at line 155 of file makefile.h.

References cleanFilePath(), QMap< Key, T >::contains(), and mocablesToMOC.

Referenced by VCFilter::addMOCstage(), generateMocList(), ProjectGenerator::init(), init(), DspMakefileGenerator::writeDspParts(), and writeMocSrc().

QString MakefileGenerator::findMocSource const QString moc_file  )  const [inline, protected]
 

Definition at line 146 of file makefile.h.

References cleanFilePath(), QMap< Key, T >::contains(), and mocablesFromMOC.

Referenced by VCFilter::addMOCstage(), generateDependencies(), DspMakefileGenerator::writeDspParts(), MetrowerksMakefileGenerator::writeMakeParts(), and writeMocObj().

bool MakefileGenerator::generateDependencies QPtrList< MakefileDependDir > &  dirs,
const QString x,
bool  recurse
[protected]
 

Definition at line 243 of file makefile.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), QString::contains(), QMap< Key, T >::contains(), Option::cpp_ext, Option::cpp_moc_ext, QDir::currentDirPath(), d, debug_msg(), depHeuristics, Option::dir_sep, Option::mkfile::do_dep_heuristics, QValueList< T >::end(), QString::endsWith(), FALSE, fileFixify(), QString::find(), findDependencies(), findDependency(), QValueList< T >::findIndex(), findMocSource(), QString::findRev(), QMakeProject::first(), QPtrList< type >::first(), QValueList< T >::first(), Option::fixPathToLocalOS(), Option::fixPathToTargetOS(), gimme_buffer(), Option::h_ext, Option::h_moc_ext, QMap< Key, T >::insert(), QMakeProject::isActiveConfig(), QMakeProject::isEmpty(), QString::isEmpty(), QString::isNull(), QStringList::join(), l, QString::latin1(), QString::left(), QString::length(), Option::lex_ext, Option::lex_mod, MakefileGenerator::MakefileDependDir::local_dir, moc, mocAware(), QPtrList< type >::next(), QString::null, Option::output_dir, processedDependencies(), project, QMAKE_EOL, quote(), MakefileGenerator::MakefileDependDir::real_dir, QValueList< T >::remove(), QString::right(), s, S_ISDIR, QRegExp::search(), QString::section(), QDir::separator(), setProcessedDependencies(), Option::TARG_MAC9_MODE, Option::TARG_MACX_MODE, Option::TARG_QNX6_MODE, Option::TARG_UNIX_MODE, Option::TARG_WIN_MODE, Option::target_mode, TRUE, Option::ui_ext, QMakeProject::values(), QMakeProject::variables(), warn_msg(), WarnLogic, Opie::MM::x, Option::yacc_ext, and Option::yacc_mod.

Referenced by ProjectGenerator::init(), and init().

bool MakefileGenerator::generateMocList const QString fn  )  [protected]
 

Definition at line 109 of file makefile.cpp.

References QValueList< T >::begin(), cleanFilePath(), COMP_LEN, Option::cpp_ext, Option::cpp_moc_ext, Option::cpp_moc_mod, QDir::currentDirPath(), debug_msg(), Option::dir_sep, DIS_LEN, QValueList< T >::end(), FALSE, fileFixify(), findMocDestination(), QString::findRev(), QMakeProject::first(), Option::fixPathToLocalOS(), Option::fixPathToTargetOS(), gimme_buffer(), Option::h_ext, Option::h_moc_ext, Option::h_moc_mod, QString::isEmpty(), QMakeProject::isEmpty(), QString::latin1(), QString::left(), len, QString::length(), logicWarn(), QString::mid(), mocablesFromMOC, mocablesToMOC, OBJ_LEN, Option::output_dir, project, QMAKE_EOL, QString::right(), S_ISDIR, SYMBOL_CHAR, TRUE, QMakeProject::variables(), and Opie::MM::x.

Referenced by ProjectGenerator::init(), and init().

void MakefileGenerator::init  )  [protected, virtual]
 

Reimplemented in MetrowerksMakefileGenerator, ProjectGenerator, UnixMakefileGenerator, BorlandMakefileGenerator, MingwMakefileGenerator, DspMakefileGenerator, NmakeMakefileGenerator, and VcprojGenerator.

Definition at line 719 of file makefile.cpp.

References QValueList< T >::append(), QPtrList< type >::append(), QFileInfo::baseName(), QMap< Key, T >::begin(), QValueList< T >::begin(), cleanFilePath(), QValueList< T >::clear(), QMap< Key, T >::clear(), QFile::close(), QValueList< T >::contains(), QDir::count(), Option::cpp_ext, createObjectList(), QDir::currentDirPath(), d, debug_msg(), dependencyKey(), depends, depHeuristics, Option::dir_sep, QFileInfo::dirPath(), Option::mkfile::do_deps, Option::mkfile::do_mocs, doDepends(), QMap< Key, T >::end(), QValueList< T >::end(), Opie::Core::endl(), QString::endsWith(), QTextStream::eof(), QFileInfo::exists(), QFile::exists(), f, FALSE, fileFixify(), QString::find(), findDependencies(), findMocDestination(), QString::findRev(), QValueList< T >::first(), QMakeProject::first(), Option::fixPathToLocalOS(), Option::fixPathToTargetOS(), generateDependencies(), generateMocList(), Option::h_ext, Option::h_moc_ext, Option::h_moc_mod, i, init_already, initOutPaths(), QValueList< T >::insert(), QDict< type >::insert(), IO_ReadOnly, IO_Translate, IO_WriteOnly, QMakeProject::isActiveConfig(), QMap< Key, T >::isEmpty(), QValueList< T >::isEmpty(), QString::isEmpty(), QMakeProject::isEmpty(), QString::isNull(), QDir::isRelativePath(), QStringList::join(), l, QFileInfo::lastModified(), QString::latin1(), QString::left(), QString::length(), Option::lex_ext, Option::lex_mod, logicWarn(), moc, mocablesFromMOC, mocablesToMOC, mocAware(), QFile::name(), noIO(), QString::null, QFile::open(), Option::output, Option::output_dir, QString::prepend(), processedDependencies(), project, Option::QMAKE_GENERATE_PROJECT, Option::qmake_mode, qmake_version(), QTextStream::readLine(), QValueList< T >::remove(), QDict< type >::replace(), QString::replace(), QString::right(), QDir::separator(), QPtrCollection::setAutoDelete(), setProcessedDependencies(), QStringList::split(), QString::stripWhiteSpace(), TRUE, v, var(), QMakeProject::variables(), warn_msg(), WarnLogic, Opie::MM::x, Opie::MM::y, and Option::yacc_mod.

Referenced by NmakeMakefileGenerator::init(), DspMakefileGenerator::init(), MingwMakefileGenerator::init(), BorlandMakefileGenerator::init(), UnixMakefileGenerator::init(), MetrowerksMakefileGenerator::init(), VcprojGenerator::initOld(), and write().

void MakefileGenerator::initOutPaths  )  [protected]
 

Definition at line 618 of file makefile.cpp.

References QDir::absPath(), QValueList< T >::begin(), Option::mkfile::cachefile, QDir::cd(), QMap< Key, T >::clear(), QMap< Key, T >::contains(), QFileInfo::convertToAbs(), QDir::current(), QDir::currentDirPath(), d, debug_msg(), Option::dir_sep, QFileInfo::dirPath(), Option::mkfile::do_cache, QValueList< T >::end(), QDir::exists(), QFile::exists(), FALSE, fileFixify(), QMakeProject::first(), Option::fixPathToLocalOS(), Option::fixPathToTargetOS(), init_opath_already, QMap< Key, T >::insert(), QMap< Key, T >::isEmpty(), QString::isEmpty(), QDir::isRelativePath(), QString::latin1(), QString::length(), QDir::mkdir(), noIO(), QString::null, Option::output_dir, project, QString::right(), QStringList::split(), TRUE, v, QMakeProject::variables(), warn_msg(), WarnLogic, and Opie::MM::x.

Referenced by UnixMakefileGenerator::init(), and init().

void MakefileGenerator::logicWarn const QString ,
const QString
[protected]
 

Definition at line 2329 of file makefile.cpp.

References QValueList< T >::begin(), Option::dir_sep, QValueList< T >::end(), QString::findRev(), l, QString::latin1(), QString::length(), project, QString::right(), QMakeProject::variables(), Option::warn_level, warn_msg(), and WarnLogic.

Referenced by generateMocList(), and init().

bool MakefileGenerator::mocAware  )  const [inline, protected]
 

Definition at line 167 of file makefile.h.

References moc_aware.

Referenced by generateDependencies(), init(), UnixMakefileGenerator::writeMakeParts(), and MetrowerksMakefileGenerator::writeMakeParts().

bool MakefileGenerator::noIO  )  const [inline, protected]
 

Definition at line 173 of file makefile.h.

References no_io.

Referenced by init(), and initOutPaths().

bool MakefileGenerator::openOutput QFile  )  const [virtual]
 

Reimplemented in MetrowerksMakefileGenerator, ProjectBuilderMakefileGenerator, ProjectGenerator, DspMakefileGenerator, and VcprojGenerator.

Definition at line 2411 of file makefile.cpp.

References createDir(), Option::dir_sep, QFileInfo::dirPath(), FALSE, QMakeProject::first(), Option::fixPathToTargetOS(), IO_Translate, IO_WriteOnly, QFileInfo::isDir(), QMakeProject::isEmpty(), QString::isEmpty(), QDir::isRelativePath(), QFileInfo::isSymLink(), QFile::name(), QFile::open(), Option::output, Option::output_dir, QString::prepend(), project, QFileInfo::readLink(), QDir::separator(), QFile::setName(), TRUE, and QMakeProject::variables().

Referenced by main(), VcprojGenerator::openOutput(), DspMakefileGenerator::openOutput(), ProjectGenerator::openOutput(), ProjectBuilderMakefileGenerator::openOutput(), and MetrowerksMakefileGenerator::openOutput().

bool MakefileGenerator::processedDependencies const QString file  )  [protected]
 

Definition at line 2368 of file makefile.cpp.

References QMap< Key, T >::contains(), dependencyKey(), depProcessed, and FALSE.

Referenced by generateDependencies(), and init().

bool MakefileGenerator::processPrlFile QString  )  [protected]
 

Definition at line 1240 of file makefile.cpp.

References QMap< Key, T >::begin(), QDir::currentDirPath(), debug_msg(), Option::dir_sep, QMap< Key, T >::end(), QString::endsWith(), f, FALSE, fileFixify(), QString::find(), QMakeMetaInfo::findLib(), QString::findRev(), QMakeMetaInfo::first(), Option::fixPathToLocalOS(), QMakeProject::isActiveConfig(), QMakeMetaInfo::isEmpty(), QDir::isRelativePath(), QString::latin1(), QString::left(), QString::length(), QMakeMetaInfo::libExists(), Option::output_dir, processPrlVariable(), project, QMakeMetaInfo::readLib(), QString::right(), QString::startsWith(), TRUE, QMakeMetaInfo::type(), QMakeMetaInfo::variables(), QMakeProject::variables(), warn_msg(), and WarnLogic.

Referenced by Win32MakefileGenerator::processPrlFiles(), UnixMakefileGenerator::processPrlFiles(), processPrlFiles(), and MetrowerksMakefileGenerator::processPrlFiles().

void MakefileGenerator::processPrlFiles  )  [protected, virtual]
 

Reimplemented in MetrowerksMakefileGenerator, UnixMakefileGenerator, and Win32MakefileGenerator.

Definition at line 1352 of file makefile.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), QValueList< T >::end(), FALSE, QMakeProject::first(), QDict< type >::insert(), QString::isEmpty(), QMakeProject::isEmpty(), l, processPrlFile(), project, TRUE, and QMakeProject::variables().

Referenced by write().

void MakefileGenerator::processPrlVariable const QString ,
const QStringList
[protected, virtual]
 

Reimplemented in MetrowerksMakefileGenerator, UnixMakefileGenerator, DspMakefileGenerator, and VcprojGenerator.

Definition at line 1330 of file makefile.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), QValueList< T >::end(), QValueList< T >::findIndex(), QMakeProject::first(), QMakeProject::isEmpty(), out, project, and QMakeProject::variables().

Referenced by processPrlFile(), VcprojGenerator::processPrlVariable(), DspMakefileGenerator::processPrlVariable(), UnixMakefileGenerator::processPrlVariable(), and MetrowerksMakefileGenerator::processPrlVariable().

void MakefileGenerator::setMocAware bool  o  )  [inline, protected]
 

Definition at line 164 of file makefile.h.

References moc_aware.

Referenced by NmakeMakefileGenerator::init(), DspMakefileGenerator::init(), MingwMakefileGenerator::init(), BorlandMakefileGenerator::init(), UnixMakefileGenerator::init(), MetrowerksMakefileGenerator::init(), and VcprojGenerator::initOld().

void MakefileGenerator::setNoIO bool  o  )  [inline, protected]
 

Definition at line 170 of file makefile.h.

References no_io.

Referenced by VcprojGenerator::writeSubDirs().

void MakefileGenerator::setProcessedDependencies const QString file,
bool  b
[protected]
 

Definition at line 2362 of file makefile.cpp.

References dependencyKey(), and depProcessed.

Referenced by generateDependencies(), and init().

QString MakefileGenerator::specdir  )  [protected]
 

Definition at line 2384 of file makefile.cpp.

References QFileInfo::absFilePath(), d, QString::endsWith(), Option::fixPathToTargetOS(), QString::isEmpty(), QString::length(), Option::mkfile::qmakespec, QString::replace(), QDir::separator(), spec, QString::startsWith(), and QString::truncate().

Referenced by DspMakefileGenerator::init(), UnixMakefileGenerator::init(), VcprojGenerator::initOld(), BorlandMakefileGenerator::writeBorlandParts(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), writeMakeQmake(), MingwMakefileGenerator::writeMingwParts(), and NmakeMakefileGenerator::writeNmakeParts().

void MakefileGenerator::usePlatformDir  )  [protected, virtual]
 

Definition at line 1465 of file makefile.cpp.

References QString::findRev(), QMakeProject::first(), QString::isEmpty(), QString::left(), QString::mid(), project, QDir::separator(), and QMakeProject::variables().

Referenced by write().

QString MakefileGenerator::val const QStringList varList  )  [protected]
 

Definition at line 1984 of file makefile.cpp.

References valGlue().

Referenced by var(), UnixMakefileGenerator::writeMakeParts(), and ProjectBuilderMakefileGenerator::writeMakeParts().

QString MakefileGenerator::valGlue const QStringList varList,
const QString before,
const QString glue,
const QString after
[protected]
 

Definition at line 1996 of file makefile.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), and QString::isEmpty().

Referenced by val(), valList(), varGlue(), DspMakefileGenerator::writeDspParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), and ProjectBuilderMakefileGenerator::writeSubdirs().

QString MakefileGenerator::valList const QStringList varList  )  [protected]
 

Definition at line 2017 of file makefile.cpp.

References valGlue().

Referenced by varList(), BorlandMakefileGenerator::writeBorlandParts(), UnixMakefileGenerator::writeMakeParts(), MingwMakefileGenerator::writeMingwParts(), and NmakeMakefileGenerator::writeNmakeParts().

QString MakefileGenerator::var const QString var  )  [protected, virtual]
 

Reimplemented in NmakeMakefileGenerator.

Definition at line 1978 of file makefile.cpp.

References project, val(), and QMakeProject::variables().

Referenced by VCFilter::addIMGstage(), VCFilter::addMOCstage(), VCFilter::addUICstage(), UnixMakefileGenerator::defaultInstall(), QMakeProperty::exec(), Win32MakefileGenerator::findDependency(), UnixMakefileGenerator::findDependency(), MetrowerksMakefileGenerator::fixifyToMacPath(), DspMakefileGenerator::init(), UnixMakefileGenerator::init(), init(), VcprojGenerator::initPostBuildEventTools(), UnixMakefileGenerator::libtoolFileName(), UnixMakefileGenerator::pkgConfigFileName(), NmakeMakefileGenerator::var(), write(), BorlandMakefileGenerator::writeBorlandParts(), DspMakefileGenerator::writeDspParts(), writeHeader(), writeImageObj(), writeInstalls(), UnixMakefileGenerator::writeLibtoolFile(), VcprojGenerator::writeMakefile(), DspMakefileGenerator::writeMakefile(), MingwMakefileGenerator::writeMakefile(), BorlandMakefileGenerator::writeMakefile(), UnixMakefileGenerator::writeMakefile(), ProjectBuilderMakefileGenerator::writeMakefile(), MetrowerksMakefileGenerator::writeMakefile(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MetrowerksMakefileGenerator::writeMakeParts(), MingwMakefileGenerator::writeMingwParts(), writeMocObj(), writeObj(), Win32MakefileGenerator::writeSubDirs(), UnixMakefileGenerator::writeSubdirs(), and writeYaccSrc().

QString MakefileGenerator::varGlue const QString var,
const QString before,
const QString glue,
const QString after
[protected]
 

Definition at line 1990 of file makefile.cpp.

References project, valGlue(), and QMakeProject::variables().

Referenced by DspMakefileGenerator::init(), UnixMakefileGenerator::init(), BorlandMakefileGenerator::writeBorlandParts(), DspMakefileGenerator::writeDspParts(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MingwMakefileGenerator::writeMingwParts(), NmakeMakefileGenerator::writeNmakeParts(), UnixMakefileGenerator::writePkgConfigFile(), Win32MakefileGenerator::writeSubDirs(), and ProjectBuilderMakefileGenerator::writeSubdirs().

QString MakefileGenerator::varList const QString var  )  [protected]
 

Definition at line 2011 of file makefile.cpp.

References project, valList(), and QMakeProject::variables().

Referenced by BorlandMakefileGenerator::writeBorlandParts(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MingwMakefileGenerator::writeMingwParts(), and NmakeMakefileGenerator::writeNmakeParts().

bool MakefileGenerator::write  )  [virtual]
 

Definition at line 1420 of file makefile.cpp.

References QDir::currentDirPath(), Option::dir_sep, fileFixify(), QString::find(), findLibraries(), QString::findRev(), QMakeProject::first(), Option::fixPathToLocalOS(), init(), IO_WriteOnly, QMakeProject::isActiveConfig(), QMakeProject::isEmpty(), QString::left(), QString::length(), QFile::open(), Option::output, Option::output_dir, QString::prepend(), Option::prl_ext, processPrlFiles(), project, Option::QMAKE_GENERATE_MAKEFILE, Option::QMAKE_GENERATE_PRL, Option::QMAKE_GENERATE_PROJECT, Option::qmake_mode, QString::right(), t, TRUE, usePlatformDir(), var(), QMakeProject::variables(), writeMakefile(), and writePrlFile().

Referenced by main().

bool MakefileGenerator::writeHeader QTextStream  )  [protected]
 

Definition at line 2137 of file makefile.cpp.

References build_args(), Opie::Core::endl(), fileFixify(), NULL, project, QMakeProject::projectFile(), qmake_version(), QT_VERSION_STR, TRUE, and var().

Referenced by NmakeMakefileGenerator::writeMakefile(), DspMakefileGenerator::writeMakefile(), MingwMakefileGenerator::writeMakefile(), BorlandMakefileGenerator::writeMakefile(), UnixMakefileGenerator::writeMakefile(), MetrowerksMakefileGenerator::writeMakefile(), ProjectBuilderMakefileGenerator::writeMakeParts(), and VcprojGenerator::writeSubDirs().

void MakefileGenerator::writeImageObj QTextStream t,
const QString obj
[protected]
 

Definition at line 1772 of file makefile.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), Opie::Core::endl(), FALSE, QMakeProject::first(), QMakeProject::isEmpty(), Option::obj_ext, p, project, QString::replace(), var(), and QMakeProject::variables().

Referenced by writeMakefile().

void MakefileGenerator::writeImageSrc QTextStream t,
const QString images
[protected]
 

Definition at line 1804 of file makefile.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), Opie::Core::endl(), findDependencies(), QMakeProject::first(), l, project, and QMakeProject::variables().

Referenced by writeMakefile(), and ProjectBuilderMakefileGenerator::writeMakeParts().

void MakefileGenerator::writeInstalls QTextStream t,
const QString installs
[protected]
 

Definition at line 1827 of file makefile.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), QDir::count(), QDir::currentDirPath(), debug_msg(), defaultInstall(), Option::dir_sep, QValueList< T >::end(), Opie::Core::endl(), QFile::exists(), FALSE, fileFixify(), QString::findRev(), fixEnvVariables(), Option::fixPathToLocalOS(), Option::fixPathToTargetOS(), QMakeProject::isActiveConfig(), QFileInfo::isDir(), QMakeProject::isEmpty(), QString::isEmpty(), QValueList< T >::isEmpty(), QFileInfo::isExecutable(), QStringList::join(), l, QString::latin1(), QString::left(), mkdir_p_asstring(), QString::null, project, QString::right(), TRUE, var(), QMakeProject::variables(), warn_msg(), WarnLogic, and Opie::MM::x.

Referenced by writeMakefile(), Win32MakefileGenerator::writeSubDirs(), and UnixMakefileGenerator::writeSubdirs().

void MakefileGenerator::writeLexSrc QTextStream ,
const QString lex
[protected]
 

Definition at line 1735 of file makefile.cpp.

References QFileInfo::baseName(), QValueList< T >::begin(), QValueList< T >::count(), Option::cpp_ext, QDir::currentDirPath(), Option::dir_sep, QFileInfo::dirPath(), QValueList< T >::end(), Opie::Core::endl(), fileFixify(), findDependencies(), QValueList< T >::first(), QMakeProject::first(), QMakeProject::isActiveConfig(), QString::isEmpty(), QMakeProject::isEmpty(), l, Option::lex_mod, Option::output_dir, project, QString::replace(), QString::right(), stub(), TRUE, QMakeProject::variables(), warn_msg(), and WarnLogic.

Referenced by writeMakefile(), and ProjectBuilderMakefileGenerator::writeMakeParts().

bool MakefileGenerator::writeMakefile QTextStream  )  [protected, virtual]
 

Reimplemented in MetrowerksMakefileGenerator, ProjectBuilderMakefileGenerator, ProjectGenerator, UnixMakefileGenerator, BorlandMakefileGenerator, MingwMakefileGenerator, DspMakefileGenerator, NmakeMakefileGenerator, and VcprojGenerator.

Definition at line 2046 of file makefile.cpp.

References Opie::Core::endl(), TRUE, writeImageObj(), writeImageSrc(), writeInstalls(), writeLexSrc(), writeMocObj(), writeMocSrc(), writeObj(), writeUicSrc(), and writeYaccSrc().

Referenced by write(), NmakeMakefileGenerator::writeMakefile(), MingwMakefileGenerator::writeMakefile(), BorlandMakefileGenerator::writeMakefile(), and UnixMakefileGenerator::writeMakefile().

bool MakefileGenerator::writeMakeQmake QTextStream  )  [protected, virtual]
 

Definition at line 2154 of file makefile.cpp.

References build_args(), buildArgs(), Option::mkfile::cachefile, Option::dir_sep, Option::mkfile::do_cache, Opie::Core::endl(), QFile::exists(), fileFixify(), QMakeProject::first(), Option::fixPathToLocalOS(), Option::fixPathToTargetOS(), QMakeProject::isActiveConfig(), QString::isEmpty(), QMakeProject::isEmpty(), QStringList::join(), name, Option::output, project, Option::mkfile::project_files, QMakeProject::projectFile(), QDir::separator(), specdir(), TRUE, and QMakeProject::variables().

Referenced by BorlandMakefileGenerator::writeBorlandParts(), NmakeMakefileGenerator::writeMakefile(), MingwMakefileGenerator::writeMakefile(), UnixMakefileGenerator::writeMakefile(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MingwMakefileGenerator::writeMingwParts(), NmakeMakefileGenerator::writeNmakeParts(), Win32MakefileGenerator::writeSubDirs(), and UnixMakefileGenerator::writeSubdirs().

void MakefileGenerator::writeMocObj QTextStream ,
const QString obj,
const QString src
[protected]
 

Definition at line 1636 of file makefile.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), Opie::Core::endl(), FALSE, findDependencies(), findMocSource(), QMakeProject::isEmpty(), Option::obj_ext, p, project, QString::replace(), var(), and QMakeProject::variables().

Referenced by writeMakefile().

void MakefileGenerator::writeMocSrc QTextStream ,
const QString src
[protected]
 

Definition at line 1669 of file makefile.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), Opie::Core::endl(), findMocDestination(), Option::fixPathToTargetOS(), QMakeProject::isActiveConfig(), QString::isEmpty(), l, project, and QMakeProject::variables().

Referenced by writeMakefile(), and ProjectBuilderMakefileGenerator::writeMakeParts().

void MakefileGenerator::writeObj QTextStream ,
const QString obj,
const QString src
[protected]
 

Definition at line 1518 of file makefile.cpp.

References QValueList< T >::begin(), Option::cpp_ext, Option::cpp_moc_ext, doDepends(), QValueList< T >::end(), Opie::Core::endl(), FALSE, findDependencies(), QMakeProject::isEmpty(), QString::isEmpty(), Option::obj_ext, p, project, QString::replace(), var(), and QMakeProject::variables().

Referenced by writeMakefile().

void MakefileGenerator::writePrlFile QTextStream  )  [protected, virtual]
 

Reimplemented in UnixMakefileGenerator.

Definition at line 1379 of file makefile.cpp.

References QValueList< T >::begin(), QDir::currentDirPath(), Option::dir_sep, QValueList< T >::end(), Opie::Core::endl(), QString::findRev(), QMakeProject::first(), QMakeProject::isActiveConfig(), QMakeProject::isEmpty(), QString::isEmpty(), QString::length(), Option::output_dir, project, QMakeProject::projectFile(), QString::right(), and QMakeProject::variables().

Referenced by write(), and UnixMakefileGenerator::writePrlFile().

void MakefileGenerator::writeUicSrc QTextStream ,
const QString ui
[protected]
 

Definition at line 1580 of file makefile.cpp.

References QValueList< T >::begin(), Option::cpp_ext, createDir(), QDir::currentDirPath(), Option::dir_sep, QValueList< T >::end(), Opie::Core::endl(), fileFixify(), findDependencies(), QString::findRev(), QMakeProject::first(), Option::h_ext, QMakeProject::isEmpty(), QDir::isRelativePath(), QStringList::join(), QString::length(), QString::mid(), Option::output_dir, project, QValueList< T >::remove(), QString::replace(), QString::right(), QString::section(), Option::ui_ext, and QMakeProject::variables().

Referenced by writeMakefile(), and ProjectBuilderMakefileGenerator::writeMakeParts().

void MakefileGenerator::writeYaccSrc QTextStream ,
const QString yac
[protected]
 

Definition at line 1687 of file makefile.cpp.

References QFileInfo::baseName(), QValueList< T >::begin(), QValueList< T >::count(), Option::cpp_ext, QDir::currentDirPath(), Option::dir_sep, QFileInfo::dirPath(), QValueList< T >::end(), Opie::Core::endl(), fileFixify(), QValueList< T >::first(), QMakeProject::first(), Option::h_ext, QMakeProject::isActiveConfig(), QString::isEmpty(), QMakeProject::isEmpty(), l, Option::output_dir, project, QString::replace(), QString::right(), TRUE, var(), QMakeProject::variables(), warn_msg(), WarnLogic, and Option::yacc_mod.

Referenced by writeMakefile(), and ProjectBuilderMakefileGenerator::writeMakeParts().


Member Data Documentation

QMap<QString, QStringList> MakefileGenerator::depends [private]
 

Definition at line 58 of file makefile.h.

Referenced by findDependencies(), and init().

QMap<QString, QString> MakefileGenerator::depHeuristics [private]
 

Definition at line 56 of file makefile.h.

Referenced by generateDependencies(), and init().

QMap<QString, bool> MakefileGenerator::depProcessed [private]
 

Definition at line 55 of file makefile.h.

Referenced by processedDependencies(), and setProcessedDependencies().

QMap<QString, QString> MakefileGenerator::fileFixed [private]
 

Definition at line 56 of file makefile.h.

Referenced by fileFixify().

bool MakefileGenerator::init_already [private]
 

Definition at line 51 of file makefile.h.

Referenced by init().

bool MakefileGenerator::init_opath_already [private]
 

Definition at line 51 of file makefile.h.

Referenced by initOutPaths().

bool MakefileGenerator::moc_aware [private]
 

Definition at line 51 of file makefile.h.

Referenced by mocAware(), and setMocAware().

QMap<QString, QString> MakefileGenerator::mocablesFromMOC [private]
 

Definition at line 57 of file makefile.h.

Referenced by findMocSource(), generateMocList(), and init().

QMap<QString, QString> MakefileGenerator::mocablesToMOC [private]
 

Definition at line 57 of file makefile.h.

Referenced by findMocDestination(), generateMocList(), and init().

bool MakefileGenerator::no_io [private]
 

Definition at line 51 of file makefile.h.

Referenced by noIO(), and setNoIO().

QMakeProject* MakefileGenerator::project [protected]
 

Definition at line 73 of file makefile.h.

Referenced by ProjectGenerator::addConfig(), ProjectGenerator::addFile(), VCFilter::addIMGstage(), DspMakefileGenerator::beginGroupForFile(), build_args(), buildArgs(), UnixMakefileGenerator::combineSetLFlags(), createObjectList(), UnixMakefileGenerator::defaultInstall(), VcprojGenerator::defaultMakefile(), UnixMakefileGenerator::doPrecompiledHeaders(), DspMakefileGenerator::endGroups(), fileFixify(), NmakeMakefileGenerator::findDependencies(), UnixMakefileGenerator::findDependencies(), Win32MakefileGenerator::findDependency(), UnixMakefileGenerator::findDependency(), Win32MakefileGenerator::findHighestVersion(), Win32MakefileGenerator::findLibraries(), UnixMakefileGenerator::findLibraries(), ProjectBuilderMakefileGenerator::fixEnvs(), ProjectBuilderMakefileGenerator::fixEnvsList(), generateDependencies(), generateMocList(), VcprojGenerator::getProjectUUID(), ProjectGenerator::getWritableVar(), ProjectBuilderMakefileGenerator::ideType(), VcprojGenerator::init(), NmakeMakefileGenerator::init(), DspMakefileGenerator::init(), MingwMakefileGenerator::init(), BorlandMakefileGenerator::init(), UnixMakefileGenerator::init(), ProjectGenerator::init(), init(), MetrowerksMakefileGenerator::init(), UnixMakefileGenerator::init2(), VcprojGenerator::initCompilerTool(), VcprojGenerator::initConfiguration(), VcprojGenerator::initFormsFiles(), VcprojGenerator::initHeaderFiles(), VcprojGenerator::initLexYaccFiles(), VcprojGenerator::initLibrarianTool(), VcprojGenerator::initLinkerTool(), VcprojGenerator::initMOCFiles(), VcprojGenerator::initOld(), initOutPaths(), VcprojGenerator::initPostBuildEventTools(), VcprojGenerator::initProject(), VcprojGenerator::initResourceFiles(), VcprojGenerator::initSourceFiles(), VcprojGenerator::initTranslationFiles(), VcprojGenerator::initUICFiles(), ProjectBuilderMakefileGenerator::keyFor(), UnixMakefileGenerator::libtoolFileName(), logicWarn(), VcprojGenerator::openOutput(), DspMakefileGenerator::openOutput(), openOutput(), ProjectBuilderMakefileGenerator::openOutput(), MetrowerksMakefileGenerator::openOutput(), VcprojGenerator::outputVariables(), ProjectBuilderMakefileGenerator::pbuilderVersion(), UnixMakefileGenerator::pkgConfigFileName(), UnixMakefileGenerator::pkgConfigPrefix(), processPrlFile(), Win32MakefileGenerator::processPrlFiles(), UnixMakefileGenerator::processPrlFiles(), processPrlFiles(), MetrowerksMakefileGenerator::processPrlFiles(), VcprojGenerator::processPrlVariable(), DspMakefileGenerator::processPrlVariable(), UnixMakefileGenerator::processPrlVariable(), processPrlVariable(), MetrowerksMakefileGenerator::processPrlVariable(), usePlatformDir(), var(), varGlue(), varList(), write(), BorlandMakefileGenerator::writeBorlandParts(), DspMakefileGenerator::writeDspParts(), UnixMakefileGenerator::writeExtraVariables(), writeHeader(), writeImageObj(), writeImageSrc(), writeInstalls(), writeLexSrc(), UnixMakefileGenerator::writeLibtoolFile(), VcprojGenerator::writeMakefile(), NmakeMakefileGenerator::writeMakefile(), DspMakefileGenerator::writeMakefile(), MingwMakefileGenerator::writeMakefile(), BorlandMakefileGenerator::writeMakefile(), UnixMakefileGenerator::writeMakefile(), ProjectGenerator::writeMakefile(), ProjectBuilderMakefileGenerator::writeMakefile(), MetrowerksMakefileGenerator::writeMakefile(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MetrowerksMakefileGenerator::writeMakeParts(), writeMakeQmake(), MingwMakefileGenerator::writeMingwParts(), writeMocObj(), writeMocSrc(), NmakeMakefileGenerator::writeNmakeParts(), writeObj(), UnixMakefileGenerator::writePkgConfigFile(), UnixMakefileGenerator::writePrlFile(), writePrlFile(), Win32MakefileGenerator::writeSubDirs(), VcprojGenerator::writeSubDirs(), UnixMakefileGenerator::writeSubdirs(), ProjectBuilderMakefileGenerator::writeSubdirs(), writeUicSrc(), and writeYaccSrc().

QString MakefileGenerator::spec [private]
 

Definition at line 50 of file makefile.h.

Referenced by specdir().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:39:42 2005 for OPIE by  doxygen 1.4.2