]> git.tdb.fi Git - builder.git/blobdiff - source/staticlibrary.h
Use build info to store static library dependencies
[builder.git] / source / staticlibrary.h
index 033e98a0e2cc889fe061967e7cfe071cc9e3d6de..c76b314cd441021cbffc99c8ee968eb4d69b7e42 100644 (file)
@@ -11,6 +11,12 @@ A static library target.
 */
 class StaticLibrary: public FileTarget
 {
+private:
+       /* TODO this really belongs in a Component, but some refactoring is required
+       to allow non-builder packages to have components.  Rename BinaryPackage to
+       ExternalPackage, add BuildableComponent and ExternalComponent classes. */
+       BuildInfo build_info;
+
 public:
        StaticLibrary(Builder &, const Msp::FS::Path &);
        StaticLibrary(Builder &, const Component &, const std::list<ObjectFile *> &);
@@ -19,6 +25,9 @@ private:
 
 public:
        virtual const char *get_type() const { return "StaticLibrary"; }
+
+       void add_required_library(const std::string &);
+       virtual void collect_build_info(BuildInfo &) const;
 };
 
 #endif