Skip to content
Snippets Groups Projects
gccetoolchain.h 2.43 KiB
Newer Older
con's avatar
con committed
/**************************************************************************
**
** This file is part of Qt Creator
**
hjk's avatar
hjk committed
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
con's avatar
con committed
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Nokia.
**
** GNU Lesser General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** If you are unsure which license is appropriate for your use, please
hjk's avatar
hjk committed
** contact the sales department at http://qt.nokia.com/contact.
con's avatar
con committed
**
**************************************************************************/

con's avatar
con committed
#ifndef GCCETOOLCHAIN_H
#define GCCETOOLCHAIN_H

#include "s60devices.h"

#include <projectexplorer/toolchain.h>

namespace Qt4ProjectManager {
namespace Internal {

class GCCEToolChain : public ProjectExplorer::GccToolChain
con's avatar
con committed
{
    explicit GCCEToolChain(const S60Devices::Device &device,
                           const QString &gcceBinPath,
                           const QString &gcceCommand,
                           ProjectExplorer::ToolChain::ToolChainType type);
public:
    static GCCEToolChain *create(const S60Devices::Device &device,
                                 const QString &gcceRoot,
                                 ProjectExplorer::ToolChain::ToolChainType type);
    QByteArray predefinedMacros();
    virtual QList<ProjectExplorer::HeaderPath> systemHeaderPaths();
    virtual void addToEnvironment(ProjectExplorer::Environment &env);
    virtual ProjectExplorer::ToolChain::ToolChainType type() const;
    virtual QString makeCommand() const;

con's avatar
con committed
protected:
    virtual bool equals(ToolChain *other) const;
con's avatar
con committed

private:
    const S60ToolChainMixin m_mixin;
    const ProjectExplorer::ToolChain::ToolChainType m_type;
    const QString m_gcceBinPath;
con's avatar
con committed
};

} // namespace Internal
} // namespace Qt4ProjectManager

#endif // GCCETOOLCHAIN_H