]> git.tdb.fi Git - builder.git/blob - source/microsofttools.h
Add drivers for the MSVC toolchain
[builder.git] / source / microsofttools.h
1 #ifndef MICROSOFTTOOLS_H_
2 #define MICROSOFTTOOLS_H_
3
4 #include <msp/fs/path.h>
5 #include "toolchain.h"
6
7 class Architecture;
8 class Builder;
9
10 class MicrosoftTools: public Toolchain
11 {
12 private:
13         Msp::FS::Path vc_base_dir;
14         Msp::FS::Path vc_bin_dir;
15         Msp::FS::Path win_sdk_dir;
16         std::string win_sdk_version;
17
18 public:
19         MicrosoftTools(Builder &, const Architecture &);
20
21 private:
22         void find_vc_bin_dir(Builder &, const Architecture &);
23         void find_windows_sdk_dir(Builder &);
24
25 public:
26         const Msp::FS::Path &get_vc_base_dir() const { return vc_base_dir; }
27         const Msp::FS::Path &get_vc_bin_dir() const { return vc_bin_dir; }
28         const Msp::FS::Path &get_windows_sdk_dir() const { return win_sdk_dir; }
29         const std::string &get_windows_sdk_version() const { return win_sdk_version; }
30 };
31
32 #endif