From d2e3935376f922f05a44ff90c4ec707639c68ac8 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 11 Oct 2014 00:44:37 +0300 Subject: [PATCH] Provide the AR tool on Android --- source/androidarchiver.cpp | 8 ++++++++ source/androidarchiver.h | 14 ++++++++++++++ source/androidtools.cpp | 2 ++ 3 files changed, 24 insertions(+) create mode 100644 source/androidarchiver.cpp create mode 100644 source/androidarchiver.h diff --git a/source/androidarchiver.cpp b/source/androidarchiver.cpp new file mode 100644 index 0000000..71bc5ff --- /dev/null +++ b/source/androidarchiver.cpp @@ -0,0 +1,8 @@ +#include "androidarchiver.h" +#include "androidtools.h" + +AndroidArchiver::AndroidArchiver(Builder &b, const Architecture &a, const AndroidNdk &ndk): + GnuArchiver(b, a) +{ + set_command((ndk.get_bin_dir()/command).str()); +} diff --git a/source/androidarchiver.h b/source/androidarchiver.h new file mode 100644 index 0000000..e09ccec --- /dev/null +++ b/source/androidarchiver.h @@ -0,0 +1,14 @@ +#ifndef ANDROIDARCHIVER_H_ +#define ANDROIDARCHIVER_H_ + +#include "gnuarchiver.h" + +class AndroidNdk; + +class AndroidArchiver: public GnuArchiver +{ +public: + AndroidArchiver(Builder &, const Architecture &, const AndroidNdk &); +}; + +#endif diff --git a/source/androidtools.cpp b/source/androidtools.cpp index 122dc23..7fd0408 100644 --- a/source/androidtools.cpp +++ b/source/androidtools.cpp @@ -3,6 +3,7 @@ #include #include #include +#include "androidarchiver.h" #include "androidassetpackagingtool.h" #include "androidccompiler.h" #include "androidcxxcompiler.h" @@ -192,6 +193,7 @@ AndroidTools::AndroidTools(Builder &builder, const Architecture &arch): add_tool(new AndroidCCompiler(builder, arch, ndk)); add_tool(new AndroidCxxCompiler(builder, arch, ndk)); add_tool(new AndroidLinker(builder, arch, ndk)); + add_tool(new AndroidArchiver(builder, arch, ndk)); add_tool(new AndroidManifestGenerator(builder)); add_tool(new AndroidAssetPackagingTool(builder, sdk)); add_tool(new ApkBuilder(builder)); -- 2.45.2