]> git.tdb.fi Git - builder.git/blobdiff - source/buildinfo.h
Make BuildInfo able to handle chained dependencies
[builder.git] / source / buildinfo.h
index 0d7b64aeae4e8e82be35bfe9117cf26f7cd3c2e0..c7c89ac649e5a6089c0e8adf95b163f6d3e691c8 100644 (file)
@@ -27,6 +27,13 @@ public:
                void warning(const std::string &);
        };
        
+       enum UpdateLevel
+       {
+               LOCAL,
+               DEPENDENCY,
+               CHAINED
+       };
+
        StringList cflags;
        StringList defines;
        StringList incpath;
@@ -36,7 +43,7 @@ public:
        StringList warnings;
 
        /** Adds another BuildInfo to the end of this one. */
-       void update_from(const BuildInfo &);
+       void update_from(const BuildInfo &, UpdateLevel = LOCAL);
 
        /** Makes sure there are no duplicate entries in the lists.  For warnings,
        contradicting flags are eliminated and the last one stays in effect. */