RedPanda-CPP/RedPandaIDE/compiler/projectcompiler.h

30 lines
719 B
C
Raw Normal View History

2021-09-13 07:49:36 +08:00
#ifndef PROJECTCOMPILER_H
#define PROJECTCOMPILER_H
#include "compiler.h"
#include <QObject>
class Project;
class ProjectCompiler : public Compiler
{
Q_OBJECT
public:
ProjectCompiler(std::shared_ptr<Project> project, bool silent,bool onlyCheckSyntax);
private:
void buildMakeFile();
2021-09-13 10:48:44 +08:00
void createStandardMakeFile();
void newMakeFile(QFile& file);
void writeMakeHeader(QFile& file);
void writeMakeDefines(QFile& file);
2021-09-13 19:09:15 +08:00
void writeMakeTarget(QFile& file);
2021-09-13 10:48:44 +08:00
void writeln(QFile& file, const QString& s="");
2021-09-13 07:49:36 +08:00
// Compiler interface
protected:
bool prepareForCompile() override;
QString pipedText() override;
bool prepareForRebuild() override;
};
#endif // PROJECTCOMPILER_H