]> git.tdb.fi Git - builder.git/blobdiff - source/sourcepackage.h
Redesign the library mode system
[builder.git] / source / sourcepackage.h
index fa1492d61605862b4eb44f54706f03b229c957ab..e5f6d9d460433a718bf2eca654ff11a92b9e244c 100644 (file)
@@ -12,6 +12,7 @@
 #include "package.h"
 
 class Builder;
+class BuildType;
 
 class bad_expansion: public std::runtime_error
 {
@@ -50,6 +51,7 @@ private:
        std::string description;
 
        Msp::FS::Path source;
+       const BuildType *build_type;
        FeatureList features;
        BuildInfo build_info;
        ConditionList conditions;
@@ -59,7 +61,6 @@ private:
 
 public:
        SourcePackage(Builder &, const std::string &, const Msp::FS::Path &);
-       const std::string &get_name() const { return name; }
        const std::string &get_version() const { return version; }
        const std::string &get_description() const { return description; }
        const Msp::FS::Path &get_source() const { return source; }
@@ -67,8 +68,8 @@ public:
        Msp::FS::Path get_out_dir() const;
        const ComponentList &get_components() const { return components; }
        const Config &get_config() const { return config; }
+       void set_build_type(const BuildType &);
        const BuildInfo &get_build_info() const { return build_info; }
-       const BuildInfo &get_exported_binfo() const { return export_binfo; }
        Builder &get_builder() const { return builder; }
 
        LibMode get_library_mode() const;