X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsystemlibrary.h;h=f95217f2673a2199383cee4a8d4ec948be49d478;hb=43bd25ffcb0b4f7882773f4676b209a99cb73c04;hp=bd554296b8b8cda181fc480dad907342306b2850;hpb=b0eb979b0dc79269cb3bb5bb2e67ef4e80689cfe;p=builder.git diff --git a/source/systemlibrary.h b/source/systemlibrary.h index bd55429..f95217f 100644 --- a/source/systemlibrary.h +++ b/source/systemlibrary.h @@ -1,14 +1,20 @@ #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