X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcomponent.h;h=3a743d0c41987324ab7da79818cab037059984e4;hb=8170b77be8c1ec66f4e860fe88dafa791031e57f;hp=2e9e534c0ca0973d2638a8902446c926bdfe0b67;hpb=62ad932589407842cc1026af6e6d9f4012e60c67;p=builder.git diff --git a/source/component.h b/source/component.h index 2e9e534..3a743d0 100644 --- a/source/component.h +++ b/source/component.h @@ -24,10 +24,13 @@ public: public: Loader(Component &); private: - void source(const std::string &); - void require(const std::string &); void build_info(); + void if_arch(const std::string &); + void if_feature(const std::string &); void install_map(); + void overlay(const std::string &); + void require(const std::string &); + void source(const std::string &); void use(const std::string &); }; @@ -36,12 +39,13 @@ public: LIBRARY, PROGRAM, MODULE, - DATAFILE, + DATAPACK, INSTALL, TARBALL }; typedef std::list SourceList; + typedef std::list OverlayList; typedef std::list UseList; protected: @@ -49,6 +53,7 @@ protected: Type type; std::string name; SourceList sources; + OverlayList overlays; bool install; BuildInfo build_info; Package::Requirements requires; @@ -67,6 +72,8 @@ public: directories or individual files. */ const SourceList &get_sources() const { return sources; } + const OverlayList &get_overlays() const { return overlays; } + protected: /** Returns a list of all source files for the component. */ SourceList collect_source_files() const; @@ -87,6 +94,8 @@ public: const BuildInfo &get_build_info() const { return build_info; } + BuildInfo get_build_info_for_path(const Msp::FS::Path &) const; + void create_targets() const; };