X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsystemlibrary.h;h=ee647ffa6ce128dd797916ef471e43b7ceb15664;hb=338eefb513953ae55e8e3614c009c242ba8ad74e;hp=2b56f4cf61f41e22822890e8f96d9ccdf88d8844;hpb=be8a901dfc026f61db46d5d64a41cecc619bc97d;p=builder.git diff --git a/source/systemlibrary.h b/source/systemlibrary.h index 2b56f4c..ee647ff 100644 --- a/source/systemlibrary.h +++ b/source/systemlibrary.h @@ -1,28 +1,19 @@ -/* $Id$ - -This file is part of builder -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #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; } -private: - std::string libname; + SystemLibrary(Builder &, const Msp::FS::Path &); - virtual Action *create_action() { return 0; } + virtual const char *get_type() const { return "SystemLibrary"; } +private: + static std::string extract_libname(const Msp::FS::Path &); }; #endif