-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsettings.h
52 lines (43 loc) · 1.36 KB
/
settings.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
51
52
#pragma once
namespace swiftwinrt
{
enum class project_type
{
none = 0x0,
spm = 0x1,
cmake = 0x10,
both = spm & cmake
};
DEFINE_ENUM_FLAG_OPERATORS(project_type)
struct settings_type
{
std::set<std::string> input;
std::set<std::string> reference;
std::filesystem::path output_folder;
std::string support;
bool license{};
bool brackets{};
bool verbose{};
bool log{};
bool component{};
bool test{};
bool spm{};
project_type project{ project_type::none };
std::filesystem::path component_folder;
std::string component_name;
bool component_prefix{};
bool component_overwrite{};
std::string component_lib;
bool component_opt{};
bool component_ignore_velocity{};
std::set<std::string> include;
std::set<std::string> exclude;
winmd::reader::filter projection_filter;
winmd::reader::filter component_filter;
bool fastabi{};
std::map<winmd::reader::TypeDef, winmd::reader::TypeDef> fastabi_cache;
bool has_project_type(project_type type) const { return (project & type) != project_type::none; }
std::string get_c_module_name() const { return test ? "C" + support : "CWinRT"; }
};
extern settings_type settings;
}