]> git.tdb.fi Git - builder.git/blobdiff - source/androidtools.h
Rudimentary support for compiling things for Android
[builder.git] / source / androidtools.h
diff --git a/source/androidtools.h b/source/androidtools.h
new file mode 100644 (file)
index 0000000..3ccedcb
--- /dev/null
@@ -0,0 +1,42 @@
+#ifndef ANDROIDTOOLS_H_
+#define ANDROIDTOOLS_H_
+
+#include <msp/fs/path.h>
+#include "toolchain.h"
+
+class Architecture;
+class Builder;
+
+class AndroidNdk
+{
+private:
+       Builder &builder;
+       const Architecture &architecture;
+       Msp::FS::Path ndk_root;
+       Msp::FS::Path bin_dir;
+       Msp::FS::Path platform_sysroot;
+
+public:
+       AndroidNdk(Builder &, const Architecture &);
+
+private:
+       void find_toolchain_dir();
+       void find_platform_dir();
+
+public:
+       const Msp::FS::Path &get_root_dir() const { return ndk_root; }
+       const Msp::FS::Path &get_bin_dir() const { return bin_dir; }
+       const Msp::FS::Path &get_platform_sysroot() const { return platform_sysroot; }
+};
+
+
+class AndroidTools: public Toolchain
+{
+private:
+       AndroidNdk ndk;
+
+public:
+       AndroidTools(Builder &, const Architecture &);
+};
+
+#endif