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

UnixMakefileGenerator Class Reference

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

Inheritance diagram for UnixMakefileGenerator:

Inheritance graph
[legend]
Collaboration diagram for UnixMakefileGenerator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UnixMakefileGenerator (QMakeProject *p)
 ~UnixMakefileGenerator ()

Protected Member Functions

virtual bool doPrecompiledHeaders () const
virtual bool doDepends () const
virtual QString defaultInstall (const QString &)
virtual void processPrlVariable (const QString &, const QStringList &)
virtual void processPrlFiles ()
virtual bool findLibraries ()
virtual QString findDependency (const QString &)
virtual QStringListfindDependencies (const QString &)
virtual void init ()
void writeMakeParts (QTextStream &)
void writeSubdirs (QTextStream &, bool=TRUE)

Private Member Functions

bool writeMakefile (QTextStream &)
void writeExtraVariables (QTextStream &)
QString libtoolFileName ()
void writeLibtoolFile ()
QString pkgConfigPrefix () const
QString pkgConfigFileName ()
QString pkgConfigFixPath (QString) const
void writePkgConfigFile ()
QStringList combineSetLFlags (const QStringList &list1, const QStringList &list2)
void writePrlFile (QTextStream &)
void init2 ()

Private Attributes

bool init_flag
bool include_deps

Constructor & Destructor Documentation

UnixMakefileGenerator::UnixMakefileGenerator QMakeProject p  ) 
 

Definition at line 46 of file unixmake2.cpp.

UnixMakefileGenerator::~UnixMakefileGenerator  )  [inline]
 

Definition at line 78 of file unixmake.h.


Member Function Documentation

QStringList UnixMakefileGenerator::combineSetLFlags const QStringList list1,
const QStringList list2
[private]
 

Definition at line 375 of file unixmake.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), QValueList< T >::end(), FALSE, QValueList< T >::find(), QValueList< T >::findIndex(), i, QMakeProject::isActiveConfig(), QString::isEmpty(), QString::mid(), MakefileGenerator::project, QValueList< T >::remove(), and TRUE.

Referenced by processPrlFiles(), and processPrlVariable().

QString UnixMakefileGenerator::defaultInstall const QString  )  [protected, virtual]
 

Reimplemented from MakefileGenerator.

Definition at line 720 of file unixmake.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), QDir::currentDirPath(), d, Option::dir_sep, QValueList< T >::end(), FALSE, MakefileGenerator::fileFixify(), QString::find(), QString::findRev(), QMakeProject::first(), Option::fixPathToLocalOS(), Option::fixPathToTargetOS(), QMakeProject::isActiveConfig(), QValueList< T >::isEmpty(), QMakeProject::isEmpty(), QString::isEmpty(), QDir::isRelativePath(), QString::left(), QString::length(), Option::libtool_ext, mkdir_p_asstring(), Option::output_dir, QString::prepend(), MakefileGenerator::project, resource, QString::right(), Option::TARG_MAC9_MODE, Option::TARG_MACX_MODE, Option::TARG_UNIX_MODE, Option::TARG_WIN_MODE, Option::target_mode, TRUE, MakefileGenerator::var(), and QMakeProject::variables().

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

Reimplemented from MakefileGenerator.

Reimplemented in ProjectBuilderMakefileGenerator.

Definition at line 61 of file unixmake.h.

References MakefileGenerator::doDepends(), and include_deps.

virtual bool UnixMakefileGenerator::doPrecompiledHeaders  )  const [inline, protected, virtual]
 

Reimplemented in ProjectBuilderMakefileGenerator.

Definition at line 60 of file unixmake.h.

References QMakeProject::isActiveConfig(), and MakefileGenerator::project.

Referenced by findDependencies(), init(), and writeMakeParts().

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

Reimplemented from MakefileGenerator.

Definition at line 509 of file unixmake.cpp.

References QValueList< T >::begin(), QValueList< T >::contains(), Option::cpp_ext, Option::dir_sep, doPrecompiledHeaders(), QValueList< T >::end(), QString::endsWith(), MakefileGenerator::findDependencies(), QMakeProject::first(), QMakeProject::isEmpty(), and MakefileGenerator::project.

Referenced by writeMakeParts().

QString UnixMakefileGenerator::findDependency const QString  )  [protected, virtual]
 

Reimplemented from MakefileGenerator.

Definition at line 471 of file unixmake.cpp.

References QFileInfo::baseName(), QValueList< T >::begin(), QValueList< T >::end(), QString::endsWith(), QFileInfo::fileName(), MakefileGenerator::findDependency(), Option::fixPathToLocalOS(), input, QString::isEmpty(), out, MakefileGenerator::project, QString::replace(), MakefileGenerator::var(), and QMakeProject::variables().

bool UnixMakefileGenerator::findLibraries  )  [protected, virtual]
 

Reimplemented from MakefileGenerator.

Definition at line 537 of file unixmake.cpp.

References QPtrList< type >::append(), QValueList< T >::begin(), QRegExp::cap(), Option::dir_sep, QValueList< T >::end(), QRegExp::exactMatch(), QFile::exists(), FALSE, QString::findRev(), QPtrList< type >::first(), fixEnvVariables(), i, QMakeProject::isActiveConfig(), QString::isEmpty(), QString::isNull(), l, QString::left(), QString::length(), Option::libtool_ext, QString::mid(), QPtrList< type >::next(), QString::null, MakefileGenerator::project, QString::replace(), QString::right(), QPtrCollection::setAutoDelete(), QString::startsWith(), stub(), TRUE, and QMakeProject::variables().

void UnixMakefileGenerator::init  )  [protected, virtual]
 

Reimplemented from MakefileGenerator.

Definition at line 46 of file unixmake.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), QValueList< T >::count(), QDir::currentDirPath(), Option::dir_sep, doPrecompiledHeaders(), QValueList< T >::end(), QFile::exists(), FALSE, MakefileGenerator::fileFixify(), QValueList< T >::findIndex(), QString::findRev(), QValueList< T >::first(), QMakeProject::first(), Option::fixPathToLocalOS(), Option::fixPathToTargetOS(), i, include_deps, MakefileGenerator::init(), init2(), init_flag, MakefileGenerator::initOutPaths(), QMakeProject::isActiveConfig(), QValueList< T >::isEmpty(), QString::isEmpty(), QMakeProject::isEmpty(), QString::isNull(), QDir::isRelativePath(), l, QString::left(), QString::mid(), min, QString::null, QString::number(), Option::obj_ext, Option::output_dir, QString::prepend(), MakefileGenerator::project, Option::mkfile::project_files, QValueList< T >::remove(), QDir::separator(), MakefileGenerator::setMocAware(), MakefileGenerator::specdir(), QStringList::split(), QString::sprintf(), QString::startsWith(), TRUE, QMakeProject::values(), MakefileGenerator::var(), MakefileGenerator::varGlue(), and QMakeProject::variables().

void UnixMakefileGenerator::init2  )  [private]
 

Definition at line 1177 of file unixmake2.cpp.

References QFileInfo::baseName(), QValueList< T >::begin(), QFileInfo::convertToAbs(), QValueList< T >::end(), FALSE, QFileInfo::fileName(), QFileInfo::filePath(), QMakeProject::first(), Option::fixPathToLocalOS(), Option::fixPathToTargetOS(), in, input, QMakeProject::isActiveConfig(), QString::isEmpty(), QMakeProject::isEmpty(), QDir::isRelativePath(), l, Option::libtool_ext, out, MakefileGenerator::project, QStringList::split(), and QMakeProject::variables().

Referenced by init().

QString UnixMakefileGenerator::libtoolFileName  )  [private]
 

Definition at line 1400 of file unixmake2.cpp.

References Option::dir_sep, QString::find(), QString::findRev(), QMakeProject::isEmpty(), QString::left(), QString::length(), Option::libtool_ext, QString::prepend(), MakefileGenerator::project, QString::right(), and MakefileGenerator::var().

Referenced by writeLibtoolFile(), and writeMakeParts().

QString UnixMakefileGenerator::pkgConfigFileName  )  [private]
 

Definition at line 1485 of file unixmake2.cpp.

References QDir::currentDirPath(), Option::dir_sep, MakefileGenerator::fileFixify(), QString::find(), QString::findRev(), Option::fixPathToLocalOS(), QMakeProject::isEmpty(), QString::left(), QString::length(), QString::mid(), Option::output_dir, Option::pkgcfg_ext, QString::prepend(), MakefileGenerator::project, QString::right(), QString::startsWith(), and MakefileGenerator::var().

Referenced by writeMakeParts(), and writePkgConfigFile().

QString UnixMakefileGenerator::pkgConfigFixPath QString   )  const [private]
 

Definition at line 1513 of file unixmake2.cpp.

References pkgConfigPrefix(), QString::replace(), and QString::startsWith().

Referenced by writePkgConfigFile().

QString UnixMakefileGenerator::pkgConfigPrefix  )  const [private]
 

Definition at line 1505 of file unixmake2.cpp.

References QMakeProject::first(), QMakeProject::isEmpty(), MakefileGenerator::project, and qInstallPath().

Referenced by pkgConfigFixPath(), and writePkgConfigFile().

void UnixMakefileGenerator::processPrlFiles  )  [protected, virtual]
 

Reimplemented from MakefileGenerator.

Definition at line 639 of file unixmake.cpp.

References QValueList< T >::append(), QPtrList< type >::append(), QValueList< T >::begin(), combineSetLFlags(), Option::dir_sep, QValueList< T >::end(), QFile::exists(), FALSE, QPtrList< type >::first(), fixEnvVariables(), i, QDict< type >::insert(), QMakeProject::isActiveConfig(), QString::isEmpty(), QString::isNull(), l, QString::length(), Option::libtool_ext, linkLib(), QString::mid(), QPtrList< type >::next(), QString::null, MakefileGenerator::processPrlFile(), MakefileGenerator::project, QString::replace(), QString::right(), QPtrCollection::setAutoDelete(), QString::startsWith(), TRUE, and QMakeProject::variables().

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

Reimplemented from MakefileGenerator.

Definition at line 461 of file unixmake.cpp.

References combineSetLFlags(), MakefileGenerator::processPrlVariable(), MakefileGenerator::project, and QMakeProject::variables().

void UnixMakefileGenerator::writeExtraVariables QTextStream  )  [private]
 

Definition at line 100 of file unixmake2.cpp.

References QValueList< T >::begin(), QMap< Key, T >::begin(), QValueList< T >::end(), QMap< Key, T >::end(), Opie::Core::endl(), QRegExp::exactMatch(), FALSE, MakefileGenerator::project, TRUE, and QMakeProject::variables().

Referenced by writeMakeParts(), and writeSubdirs().

void UnixMakefileGenerator::writeLibtoolFile  )  [private]
 

Definition at line 1416 of file unixmake2.cpp.

References QValueList< T >::begin(), Option::dir_sep, QValueList< T >::end(), FALSE, QString::findRev(), QMakeProject::first(), Option::fixPathToTargetOS(), IO_WriteOnly, QMakeProject::isActiveConfig(), QString::isEmpty(), QMakeProject::isEmpty(), QTextStream::left, QString::length(), Option::libtool_ext, libtoolFileName(), min, NULL, QFile::open(), MakefileGenerator::project, qmake_version(), QT_VERSION_STR, t, MakefileGenerator::var(), and QMakeProject::variables().

Referenced by writePrlFile().

bool UnixMakefileGenerator::writeMakefile QTextStream  )  [private, virtual]
 

Reimplemented from MakefileGenerator.

Reimplemented in ProjectBuilderMakefileGenerator.

Definition at line 69 of file unixmake2.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), Opie::Core::endl(), FALSE, QMakeProject::isEmpty(), MakefileGenerator::project, TRUE, MakefileGenerator::var(), QMakeProject::variables(), MakefileGenerator::writeHeader(), MakefileGenerator::writeMakefile(), writeMakeParts(), MakefileGenerator::writeMakeQmake(), and writeSubdirs().

void UnixMakefileGenerator::writeMakeParts QTextStream  )  [protected]
 

Reimplemented in ProjectBuilderMakefileGenerator.

Definition at line 122 of file unixmake2.cpp.

References QValueList< T >::append(), QFileInfo::baseName(), QValueList< T >::begin(), MakefileGenerator::buildArgs(), QValueList< T >::count(), Option::cpp_ext, Option::cpp_moc_ext, QDir::currentDirPath(), Option::dir_sep, QFileInfo::dirPath(), doPrecompiledHeaders(), QValueList< T >::end(), Opie::Core::endl(), QFile::exists(), FALSE, MakefileGenerator::fileFixify(), QFileInfo::fileName(), QString::find(), findDependencies(), QString::findRev(), QValueList< T >::first(), QMakeMetaInfo::first(), QMakeProject::first(), fixEnvVariables(), Option::fixPathToLocalOS(), Option::fixPathToTargetOS(), flags, Option::h_ext, i, in, include_deps, input, QMakeProject::isActiveConfig(), QMakeMetaInfo::isEmpty(), QValueList< T >::isEmpty(), QMakeProject::isEmpty(), QString::isEmpty(), QString::isNull(), QStringList::join(), l, QString::latin1(), QString::left(), QString::length(), Option::lex_mod, libtoolFileName(), moc, MakefileGenerator::mocAware(), name, QString::null, Option::obj_ext, out, outfile, Option::output, Option::output_dir, pkgConfigFileName(), QString::prepend(), MakefileGenerator::project, Option::mkfile::project_files, QMakeProject::projectFile(), QT_POPEN, QMakeMetaInfo::readLib(), QString::replace(), QString::right(), QString::section(), MakefileGenerator::specdir(), TRUE, MakefileGenerator::val(), MakefileGenerator::valList(), MakefileGenerator::var(), MakefileGenerator::varGlue(), QMakeProject::variables(), MakefileGenerator::varList(), writeExtraVariables(), MakefileGenerator::writeMakeQmake(), Opie::MM::x, and Option::yacc_mod.

Referenced by writeMakefile().

void UnixMakefileGenerator::writePkgConfigFile  )  [private]
 

Definition at line 1522 of file unixmake2.cpp.

References QValueList< T >::begin(), Option::dir_sep, QValueList< T >::end(), Opie::Core::endl(), QString::findRev(), QMakeProject::first(), IO_WriteOnly, QMakeProject::isActiveConfig(), QMakeProject::isEmpty(), QString::isEmpty(), QTextStream::left, QString::length(), Option::libtool_ext, QFile::open(), pkgConfigFileName(), pkgConfigFixPath(), pkgConfigPrefix(), MakefileGenerator::project, QString::replace(), t, upper(), MakefileGenerator::varGlue(), and QMakeProject::variables().

Referenced by writePrlFile().

void UnixMakefileGenerator::writePrlFile QTextStream  )  [private, virtual]
 

Reimplemented from MakefileGenerator.

Definition at line 52 of file unixmake2.cpp.

References QMakeProject::first(), QMakeProject::isActiveConfig(), MakefileGenerator::project, warn_msg(), WarnLogic, writeLibtoolFile(), writePkgConfigFile(), and MakefileGenerator::writePrlFile().

void UnixMakefileGenerator::writeSubdirs QTextStream ,
bool  = TRUE
[protected]
 

Reimplemented in ProjectBuilderMakefileGenerator.

Definition at line 998 of file unixmake2.cpp.

References QPtrList< type >::append(), QValueList< T >::begin(), MakefileGenerator::buildArgs(), QPtrListIterator< type >::current(), Option::dir_sep, SubDir::directory, QValueList< T >::end(), Opie::Core::endl(), MakefileGenerator::fileFixify(), QString::findRev(), QMakeProject::isActiveConfig(), QMakeProject::isEmpty(), QString::isEmpty(), QString::left(), QString::length(), SubDir::makefile, QString::mid(), mkdir_p_asstring(), QFile::name(), out, Option::output, QString::prepend(), SubDir::profile, MakefileGenerator::project, QString::replace(), QString::right(), sd, QString::section(), SubDir::target, QPtrListIterator< type >::toFirst(), MakefileGenerator::var(), QMakeProject::variables(), writeExtraVariables(), MakefileGenerator::writeInstalls(), and MakefileGenerator::writeMakeQmake().

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


Member Data Documentation

bool UnixMakefileGenerator::include_deps [private]
 

Definition at line 43 of file unixmake.h.

Referenced by doDepends(), init(), and writeMakeParts().

bool UnixMakefileGenerator::init_flag [private]
 

Definition at line 43 of file unixmake.h.

Referenced by init().


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