#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"; }
- void find_depends() { }
- Action *build() { return 0; }
+ SystemLibrary(Builder &, const Msp::FS::Path &);
+
+ virtual const char *get_type() const { return "SystemLibrary"; }
+private:
+ static std::string extract_libname(const Msp::FS::Path &);
};
#endif