X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsystemlibrary.h;h=ee647ffa6ce128dd797916ef471e43b7ceb15664;hb=dcaf06c2bba4e02a312cd6af24ddc96410e7be4e;hp=babd494f97a5c5f53b6336619c357f256fa66719;hpb=74266a6e650f019063cdcd1c9a7bd26d8f99041b;p=builder.git diff --git a/source/systemlibrary.h b/source/systemlibrary.h index babd494..ee647ff 100644 --- a/source/systemlibrary.h +++ b/source/systemlibrary.h @@ -1,17 +1,19 @@ #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 &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: + static std::string extract_libname(const Msp::FS::Path &); }; #endif