#include "conditionalloader.h"
#include "config.h"
#include "feature.h"
+#include "libbuilder_api.h"
#include "package.h"
#include "toolchain.h"
/**
A package that can be built by Builder.
*/
-class SourcePackage: public Package
+class LIBBUILDER_API SourcePackage: public Package
{
public:
class Loader: public Msp::DataFile::DerivedObjectLoader<SourcePackage, Package::Loader>, public FeatureConditional
private:
void finish() override;
+ void exported();
void feature(const std::string &, const std::string &);
template<typename C, typename... Args>
void component(Args..., const std::string &);
using ComponentRegistry = Msp::TypeRegistry<Loader::AddComponent, Loader &>;
private:
+ class ExportLoader: public Msp::DataFile::ObjectLoader<SourcePackage>
+ {
+ public:
+ ExportLoader(SourcePackage &);
+
+ private:
+ void build_info();
+ };
+
std::string version;
std::string interface_version;
std::string description;
const Msp::FS::Path &get_source_directory() const { return source_dir; }
Msp::FS::Path get_temp_directory() const;
Msp::FS::Path get_output_directory() const;
+ Msp::FS::Path get_staging_directory() const;
const Toolchain &get_toolchain() const { return local_tools; }
const Component &get_component(const std::string &) const;