#include "androidtools.h"
AndroidArchiver::AndroidArchiver(Builder &b, const Architecture &a, const AndroidNdk &ndk):
- GnuArchiver(b, a)
+ CustomizedTool(b, "AR", a)
{
if(ndk.get_root_dir().empty())
problems.push_back("Android NDK not found");
#ifndef ANDROIDARCHIVER_H_
#define ANDROIDARCHIVER_H_
-#include "gnuarchiver.h"
+#include "customizedtool.h"
class AndroidNdk;
-class AndroidArchiver: public GnuArchiver
+class AndroidArchiver: public CustomizedTool
{
public:
AndroidArchiver(Builder &, const Architecture &, const AndroidNdk &);
using namespace Msp;
AndroidCompiler::AndroidCompiler(Builder &b, const Architecture &a, const string &t, const AndroidNdk &n):
- GnuCompiler(b, &a, t),
+ CustomizedTool(b, t, a),
ndk(n)
{
if(ndk.get_root_dir().empty())
{
const Architecture &arch = *static_cast<const Tool &>(tool).get_architecture();
- GnuCompiler::do_prepare(tool);
+ CustomizedTool::do_prepare(tool);
if(tag=="CXX")
{
unsigned version = tool.extra_data;
#ifndef ANDROIDCOMPILER_H_
#define ANDROIDCOMPILER_H_
-#include "gnucompiler.h"
+#include "customizedtool.h"
class AndroidNdk;
-class AndroidCompiler: public GnuCompiler
+class AndroidCompiler: public CustomizedTool
{
private:
const AndroidNdk &ndk;
using namespace std;
AndroidLinker::AndroidLinker(Builder &b, const Architecture &a, const AndroidNdk &ndk):
- GnuLinker(b, a)
+ CustomizedTool(b, "LINK", a)
{
build_info.sysroot = ndk.get_platform_sysroot();
}
Target *AndroidLinker::create_target(const vector<Target *> &sources, const string &)
{
- return GnuLinker::create_target(sources, "shared");
+ return CustomizedTool::create_target(sources, "shared");
}
#ifndef ANDROIDLINKER_H_
#define ANDROIDLINKER_H_
-#include "gnulinker.h"
+#include "customizedtool.h"
class AndroidNdk;
-class AndroidLinker: public GnuLinker
+class AndroidLinker: public CustomizedTool
{
public:
AndroidLinker(Builder &, const Architecture &, const AndroidNdk &);
using namespace Msp;
ClangCompiler::ClangCompiler(Builder &b, const Architecture &a, const string &t):
- GnuCompiler(b, a, t)
+ CustomizedTool(b, t, a)
{
set_command((tag=="CXX" ? "clang++" : "clang"), true);
}
#ifndef CLANGCOMPILER_H_
#define CLANGCOMPILER_H_
-#include "gnucompiler.h"
+#include "customizedtool.h"
-class ClangCompiler: public GnuCompiler
+class ClangCompiler: public CustomizedTool
{
public:
ClangCompiler(Builder &, const Architecture &, const std::string &);