3 This file is part of builder
4 Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef ARCHITECTURE_H_
9 #define ARCHITECTURE_H_
11 #include <msp/datafile/loader.h>
16 // XXX Add lib/exe prefix/suffix fields. Some archs may need multiple alternatives, how to handle this?
20 class Loader: public Msp::DataFile::Loader
23 Loader(Architecture &);
24 Architecture &get_object() { return arch; }
28 void tool(const std::string &t, const std::string &p);
31 Architecture(Builder &b, const std::string &n, bool a=false);
32 void set_tool(const std::string &t, const std::string &p);
33 std::string get_tool(const std::string &t) const;
34 const std::string &get_name() const { return name; }
35 bool is_native() const { return native; }
36 const std::string &get_prefix() const { return prefix; }
45 typedef std::map<std::string, Architecture> ArchMap;