X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Farchitecture.h;h=153230244f6aedfdce7fd6a5648619108fe93d12;hb=HEAD;hp=aa5f8650ddae92803114d9ffd98049b9e6647071;hpb=04c316da6d5d90e43cba262f54d90ca231f703bf;p=builder.git diff --git a/source/architecture.h b/source/architecture.h deleted file mode 100644 index aa5f865..0000000 --- a/source/architecture.h +++ /dev/null @@ -1,50 +0,0 @@ -/* $Id$ - -This file is part of builder -Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef ARCHITECTURE_H_ -#define ARCHITECTURE_H_ - -#include -#include "misc.h" - -class Builder; - -// XXX Add lib/exe prefix/suffix fields. Some archs may need multiple alternatives, how to handle this? -class Architecture -{ -public: - class Loader: public Msp::DataFile::Loader - { - private: - Architecture &arch; - - public: - Loader(Architecture &); - Architecture &get_object() { return arch; } - private: - void tool(const std::string &t, const std::string &p); - }; - -private: - Builder &builder; - std::string name; - bool native; - std::string prefix; - StringMap tools; - -public: - Architecture(Builder &b, const std::string &n, bool a = false); - void set_tool(const std::string &t, const std::string &p); - std::string get_tool(const std::string &t) const; - const std::string &get_name() const { return name; } - bool is_native() const { return native; } - const std::string &get_prefix() const { return prefix; } -}; - -typedef std::map ArchMap; - -#endif