+++ /dev/null
-#ifndef BUILDINFO_H_
-#define BUILDINFO_H_
-
-#include <list>
-#include <string>
-#include <msp/parser/loader.h>
-
-class BuildInfo
-{
-public:
- class Loader: public Msp::Parser::Loader
- {
- public:
- Loader(BuildInfo &);
- private:
- BuildInfo &binfo;
-
- void cflag(const std::string &s) { binfo.cflags.push_back(s); }
- void incpath(const std::string &s) { binfo.incpath.push_back(s); }
- void define(const std::string &s) { binfo.defines.push_back(s); }
- void ldflag(const std::string &s) { binfo.ldflags.push_back(s); }
- void libpath(const std::string &s) { binfo.libpath.push_back(s); }
- 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;
-
- void add(const BuildInfo &);
- void unique();
-private:
- void unique(InfoList &);
-};
-
-#endif