-
Notifications
You must be signed in to change notification settings - Fork 0
/
ndsmake.h
50 lines (34 loc) · 1.08 KB
/
ndsmake.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef NDSMAKE_H
#define NDSMAKE_H
#include <string>
#include <vector>
#include "qtcreatorprofile.h"
namespace ribi {
struct QtCreatorProFile;
namespace ndsm {
struct Ndsmake
{
///Call ndsmake on a .pro file
Ndsmake(
const std::string& argv0,
const std::string& pro_file_name
);
void CreateMakefile() const noexcept;
const std::string& GetCommand() const noexcept { return m_command; }
static std::vector<std::string> GetHelp() noexcept;
static std::vector<std::string> GetLicence() noexcept;
///Obtain the TARGET of the possibly multiple QtCreatorProFile::m_targets
std::string GetTarget() const noexcept;
static std::string GetVersion() noexcept;
static std::vector<std::string> GetVersionHistory() noexcept;
private:
std::string m_argv0; //argv[0]
std::string m_command; //A terminal command
QtCreatorProFile m_pro_file;
std::string CreateCommand() const;
//From http://www.richelbilderbeek.nl/CppRemoveExtension.htm
static std::string RemoveExtension(const std::string& filename);
};
} //~namespace ndsm
} //~namespace ribi
#endif // NDSMAKE_H