]> git.tdb.fi Git - builder.git/blobdiff - source/staticlibrary.h
Support building static libraries (but not using them yet)
[builder.git] / source / staticlibrary.h
diff --git a/source/staticlibrary.h b/source/staticlibrary.h
new file mode 100644 (file)
index 0000000..f7f178a
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef STATICLIB_H_
+#define STATICLIB_H_
+
+#include "target.h"
+
+class Component;
+class ObjectFile;
+
+class StaticLibrary: public Target
+{
+public:
+       StaticLibrary(Builder &, const Component &, const std::list<ObjectFile *> &);
+       const char *get_type() const { return "StaticLibrary"; }
+       const Component &get_component() const { return comp; }
+       Action *build();
+private:
+       const Component &comp;
+
+       std::string generate_target_name(const Component &);
+};
+
+#endif