]> git.tdb.fi Git - builder.git/blobdiff - source/systemlibrary.h
Rework the Target class hierarchy
[builder.git] / source / systemlibrary.h
index bd554296b8b8cda181fc480dad907342306b2850..9048a69aa21963948bf9a606dcf0fbdad820a8a4 100644 (file)
@@ -1,14 +1,27 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #ifndef SYSTEMLIBRARY_H_
 #define SYSTEMLIBRARY_H_
 
-#include "target.h"
+#include "library.h"
 
-class SystemLibrary: public Target
+/**
+A library that doesn't belong to any known package.
+*/
+class SystemLibrary: public Library
 {
 public:
-       SystemLibrary(Builder &b, const std::string &n): Target(b,0,n) { }
-       const char *get_type() const { return "SystemLibrary"; }
-       Action *build() { return 0; }
+       SystemLibrary(Builder &, const Msp::FS::Path &);
+       virtual const char *get_type() const { return "SystemLibrary"; }
+private:
+       virtual Action *create_action() { return 0; }
+
+       static std::string extract_libname(const Msp::FS::Path &);
 };
 
 #endif