X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsourcepackage.h;h=5a1eddde5bd1b2793cf9b8e03b90ec9544434725;hb=d914c5f40ca1194e7fd6a2b30664ac4717e38786;hp=66296001e44229265753f3c52056cef6a2652b02;hpb=35f2979869bff43706f3163ec0979c7084aaa3c4;p=builder.git diff --git a/source/sourcepackage.h b/source/sourcepackage.h index 6629600..5a1eddd 100644 --- a/source/sourcepackage.h +++ b/source/sourcepackage.h @@ -6,6 +6,7 @@ #include "buildinfo.h" #include "cache.h" #include "component.h" +#include "conditionalloader.h" #include "config.h" #include "feature.h" #include "package.h" @@ -14,7 +15,7 @@ class Builder; class BuildType; class FileTarget; -class TarballComponent; +class SourceArchiveComponent; /** A package that can be built by Builder. @@ -22,7 +23,7 @@ A package that can be built by Builder. class SourcePackage: public Package { public: - class Loader: public Msp::DataFile::DerivedObjectLoader + class Loader: public Msp::DataFile::DerivedObjectLoader, public FeatureConditional { private: const Config::InputOptions *options; @@ -40,9 +41,8 @@ public: void component_arg(const std::string &); void build_info(); void generate(const std::string &); - void if_feature(const std::string &); void interface_version(const std::string &); - void source_tarball(); + void source_archive(); void tarball(const std::string &); void version(const std::string &); }; @@ -63,7 +63,7 @@ private: FeatureList features; BuildInfo build_info; ComponentList components; - TarballComponent *source_tarball; + SourceArchiveComponent *source_archive; Config config; mutable Cache cache;