X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstaticlibrary.cpp;h=be88b41bf31d61a34257ea75bfc726df4dca5adf;hb=HEAD;hp=b61f70a03333a59256590559c7ad6495fceb94e4;hpb=43bd25ffcb0b4f7882773f4676b209a99cb73c04;p=builder.git diff --git a/source/staticlibrary.cpp b/source/staticlibrary.cpp deleted file mode 100644 index b61f70a..0000000 --- a/source/staticlibrary.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include "archive.h" -#include "component.h" -#include "objectfile.h" -#include "sourcepackage.h" -#include "staticlibrary.h" - -using namespace std; - -StaticLibrary::StaticLibrary(Builder &b, const Component &c, const list &objs): - FileTarget(b, &c.get_package(), generate_target_path(c)), - Library(b, package, path, c.get_name()), - comp(c) -{ - buildable = true; - for(list::const_iterator i=objs.begin(); i!=objs.end(); ++i) - add_depend(*i); -} - -Action *StaticLibrary::create_action() -{ - return new Archive(builder, *this); -} - -Msp::FS::Path StaticLibrary::generate_target_path(const Component &c) -{ - return c.get_package().get_out_dir()/("lib"+c.get_name()+".a"); -}