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

pbuilder_pbx.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** 
00003 **
00004 ** Definition of ProjectBuilderMakefileGenerator class.
00005 **
00006 ** Copyright (C) 1992-2003 Trolltech AS.  All rights reserved.
00007 **
00008 ** This file is part of qmake.
00009 **
00010 ** This file may be distributed under the terms of the Q Public License
00011 ** as defined by Trolltech AS of Norway and appearing in the file
00012 ** LICENSE.QPL included in the packaging of this file.
00013 **
00014 ** This file may be distributed and/or modified under the terms of the
00015 ** GNU General Public License version 2 as published by the Free Software
00016 ** Foundation and appearing in the file LICENSE.GPL included in the
00017 ** packaging of this file.
00018 **
00019 ** Licensees holding valid Qt Enterprise Edition licenses may use this
00020 ** file in accordance with the Qt Commercial License Agreement provided
00021 ** with the Software.
00022 **
00023 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00024 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00025 **
00026 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00027 **   information about Qt Commercial License Agreements.
00028 ** See http://www.trolltech.com/qpl/ for QPL licensing information.
00029 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00030 **
00031 ** Contact info@trolltech.com if any conditions of this licensing are
00032 ** not clear to you.
00033 **
00034 **********************************************************************/
00035 
00036 #ifndef __PBUILDER_PBX_H__
00037 #define __PBUILDER_PBX_H__
00038 
00039 #include "unixmake.h"
00040 
00041 class ProjectBuilderMakefileGenerator : public UnixMakefileGenerator
00042 {
00043     QString pbx_dir;
00044     int pbuilderVersion() const;
00045     bool writeSubdirs(QTextStream &, bool);
00046     bool writeMakeParts(QTextStream &);
00047     bool writeMakefile(QTextStream &);
00048 
00049     QString pbxbuild();
00050     QMap<QString, QString> keys;
00051     QString keyFor(const QString &file);
00052     QString fixQuotes(const QString &val);
00053     QString fixEnvs(const QString &file);
00054     QString fixEnvsList(const QString &where);
00055     int     reftypeForFile(const QString &where);
00056     QString projectSuffix() const;
00057 
00058     enum IDE_TYPE { MAC_XCODE, MAC_PBUILDER };
00059     IDE_TYPE ideType() const;
00060 
00061 public:
00062     ProjectBuilderMakefileGenerator(QMakeProject *p);
00063     ~ProjectBuilderMakefileGenerator();
00064 
00065     virtual bool openOutput(QFile &) const;
00066 protected:
00067     bool doPrecompiledHeaders() const { return FALSE; }
00068     virtual bool doDepends() const { return FALSE; } //never necesary
00069 };
00070 
00071 inline ProjectBuilderMakefileGenerator::~ProjectBuilderMakefileGenerator()
00072 { }
00073 
00074 
00075 #endif /* __PBUILDER_PBX_H__ */

Generated on Sat Nov 5 16:18:19 2005 for OPIE by  doxygen 1.4.2