forked from mogemimi/daily-snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCompileOptions.h
42 lines (34 loc) · 984 Bytes
/
CompileOptions.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
// Copyright (c) 2015 mogemimi. Distributed under the MIT license.
#pragma once
#include <map>
#include <string>
#include <vector>
namespace somera {
struct GeneratorError {
GeneratorError()
: hasError(false)
{
}
explicit GeneratorError(const std::string& desc)
: description(desc)
, hasError(true)
{}
std::string description;
bool hasError = false;
};
struct CompileOptions {
std::string generatorOutputDirectory;
std::string productName;
std::string targetName;
std::vector<std::string> sources;
std::vector<std::string> libraries;
std::vector<std::string> includeSearchPaths;
std::vector<std::string> librarySearchPaths;
std::vector<std::string> preprocessorDefinitions;
std::vector<std::string> otherLinkerFlags;
std::map<std::string, std::string> buildSettings;
std::string author;
bool enableCppExceptions = true;
bool enableCppRtti = true;
};
} // namespace somera