#include <list>
#include <string>
#include <msp/datafile/objectloader.h>
-#include "misc.h"
+#include <msp/fs/path.h>
/**
Stores information about compiler command line parameters in a more abstract
private:
void incpath(const std::string &);
void define(const std::string &, const std::string &);
+ void libmode_for_lib(const std::string &, LibraryMode);
void libpath(const std::string &);
void library(const std::string &);
+ void local_incpath(const std::string &);
+ void sysroot(const std::string &);
};
enum UpdateLevel
typedef std::map<std::string, std::string> DefineMap;
typedef std::list<Msp::FS::Path> PathList;
typedef std::list<std::string> WordList;
+ typedef std::map<std::string, LibraryMode> LibModeMap;
+ Tracked<Msp::FS::Path> sysroot;
DefineMap defines;
PathList incpath;
+ PathList local_incpath;
PathList libpath;
WordList libs;
Tracked<LibraryMode> libmode;
+ LibModeMap libmodes;
Tracked<bool> threads;
Tracked<bool> debug;
Tracked<int> optimize;
BuildInfo();
+ /** Returns the library mode for linking a particular library. If no mode
+ has been specified for that library, the the global library mode is
+ returned. */
+ LibraryMode get_libmode_for(const std::string &) const;
+
/** Updates the BuildInfo from another one. Lists are concatenated, with
the first occurrence of each item preserved. Scalars are overwritten.