]> git.tdb.fi Git - builder.git/blob - source/androidtools.h
3ccedcbdb9ef44ac1417abd0de8a6e8bdb9ae496
[builder.git] / source / androidtools.h
1 #ifndef ANDROIDTOOLS_H_
2 #define ANDROIDTOOLS_H_
3
4 #include <msp/fs/path.h>
5 #include "toolchain.h"
6
7 class Architecture;
8 class Builder;
9
10 class AndroidNdk
11 {
12 private:
13         Builder &builder;
14         const Architecture &architecture;
15         Msp::FS::Path ndk_root;
16         Msp::FS::Path bin_dir;
17         Msp::FS::Path platform_sysroot;
18
19 public:
20         AndroidNdk(Builder &, const Architecture &);
21
22 private:
23         void find_toolchain_dir();
24         void find_platform_dir();
25
26 public:
27         const Msp::FS::Path &get_root_dir() const { return ndk_root; }
28         const Msp::FS::Path &get_bin_dir() const { return bin_dir; }
29         const Msp::FS::Path &get_platform_sysroot() const { return platform_sysroot; }
30 };
31
32
33 class AndroidTools: public Toolchain
34 {
35 private:
36         AndroidNdk ndk;
37
38 public:
39         AndroidTools(Builder &, const Architecture &);
40 };
41
42 #endif