]> git.tdb.fi Git - builder.git/blobdiff - source/component.h
Add support for building datafiles
[builder.git] / source / component.h
index b1b6aea994d3142ceb89f33dc3afb2c770c0790f..1b32bfa10cf4dde67dd50ce33b6007f24d5f46d3 100644 (file)
@@ -48,10 +48,12 @@ public:
        enum Type
        {
                HEADERS,
-               PROGRAM,
                LIBRARY,
+               PROGRAM,
                MODULE,
-               TARBALL
+               DATAFILE,
+               TARBALL,
+               INSTALL
        };
 
 protected:
@@ -74,9 +76,9 @@ public:
        const PathList &get_sources() const { return sources; }
        const BuildInfo &get_build_info() const { return build_info; }
        bool get_install() const { return install; }
-       bool get_modular() const { return modular; }
+       bool is_modular() const { return modular; }
        const PackageList &get_requires() const { return requires; }
-       bool get_default() const { return deflt; }
+       bool is_default() const { return deflt; }
 
        /** Prepares the build information for building.  Pulls build info from the
        parent and dependency packages, and adds any component-specific flags. */