]> git.tdb.fi Git - builder.git/blobdiff - source/buildinfo.h
Make warnings configurable through build_info and command line
[builder.git] / source / buildinfo.h
index fbd186c617d1af03a239a30e262175dbf79625fa..9b208c1709bcd88acc882d8744ef9b53f6c63d1b 100644 (file)
@@ -10,7 +10,7 @@ Distributed under the LGPL
 
 #include <list>
 #include <string>
-#include <msp/parser/loader.h>
+#include <msp/datafile/loader.h>
 #include "misc.h"
 
 /**
@@ -20,7 +20,7 @@ form.  Allows combining with other BuildInfos to support package dependencies.
 class BuildInfo
 {
 public:
-       class Loader: public Msp::Parser::Loader
+       class Loader: public Msp::DataFile::Loader
        {
        public:
                Loader(BuildInfo &);
@@ -33,6 +33,7 @@ public:
                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); }
+               void warning(const std::string &s) { binfo.warnings.push_back(s); }
        };
        
        StringList cflags;
@@ -41,6 +42,7 @@ public:
        StringList ldflags;
        StringList libpath;
        StringList libs;
+       StringList warnings;
 
        void add(const BuildInfo &);
        void unique();