#include <list>
#include <string>
#include <msp/parser/loader.h>
+#include "misc.h"
+/**
+Stores information about compiler command line parameters in a more abstract
+form. Allows combining with other BuildInfos to support package dependencies.
+*/
class BuildInfo
{
public:
void library(const std::string &s) { binfo.libs.push_back(s); }
};
- typedef std::list<std::string> InfoList;
-
- InfoList cflags;
- InfoList defines;
- InfoList incpath;
- InfoList ldflags;
- InfoList libpath;
- InfoList libs;
+ StringList cflags;
+ StringList defines;
+ StringList incpath;
+ StringList ldflags;
+ StringList libpath;
+ StringList libs;
void add(const BuildInfo &);
void unique();
private:
- void unique(InfoList &);
+ void unique(StringList &);
};
#endif