]> git.tdb.fi Git - builder.git/blobdiff - source/systemlibrary.h
Replace per-file copyright notices with a single file
[builder.git] / source / systemlibrary.h
index edd50a25099e98fd88dad77546cc3f3a416e10af..f95217f2673a2199383cee4a8d4ec948be49d478 100644 (file)
@@ -1,20 +1,20 @@
 #ifndef SYSTEMLIBRARY_H_
 #define SYSTEMLIBRARY_H_
 
-#include "target.h"
+#include "library.h"
 
 /**
 A library that doesn't belong to any known package.
 */
-class SystemLibrary: public Target
+class SystemLibrary: public Library
 {
 public:
-       SystemLibrary(Builder &, const std::string &);
-       const char        *get_type() const    { return "SystemLibrary"; }
-       const std::string &get_libname() const { return libname; }
-       Action            *build()             { return 0; }
+       SystemLibrary(Builder &, const Msp::FS::Path &);
+       virtual const char *get_type() const { return "SystemLibrary"; }
 private:
-       std::string libname;
+       virtual Action *create_action() { return 0; }
+
+       static std::string extract_libname(const Msp::FS::Path &);
 };
 
 #endif