compiler.h 492 Bytes
Newer Older
Leander Schulten's avatar
Leander Schulten committed
1
2
3
4
5
6
7
8
#ifndef COMPILER_H
#define COMPILER_H
#include <QFile>

namespace Modules {

class Compiler
{
9
public:
Leander Schulten's avatar
Leander Schulten committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
    static QString compilerCmd;
    static QString compilerLibraryFlags;
    static QString compilerFlags;

public:
    Compiler();
    static void setCompilerCommand(QString s){compilerCmd = s;}
    static int compileToLibrary(const QFile &file,const QString &newLibraryFile);
    static int compileToLibrary(const QString &code,const QString &newLibraryFile);
};


}
#endif // COMPILER_H