X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstaticlibrary.cpp;h=be88b41bf31d61a34257ea75bfc726df4dca5adf;hb=HEAD;hp=556ee54295963e8c55b7483947f6289160207da1;hpb=dc4b917034c9d3718f07139e2f0f3631a080c6f3;p=builder.git diff --git a/source/staticlibrary.cpp b/source/staticlibrary.cpp deleted file mode 100644 index 556ee54..0000000 --- a/source/staticlibrary.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "component.h" -#include "objectfile.h" -#include "sourcepackage.h" -#include "staticlibrary.h" - -using namespace std; -using namespace Msp; - -StaticLibrary::StaticLibrary(Builder &b, const FS::Path &p): - FileTarget(b, 0, p) -{ } - -StaticLibrary::StaticLibrary(Builder &b, const Component &c, const list &objs): - FileTarget(b, &c.get_package(), generate_target_path(c)) -{ - component = &c; - for(list::const_iterator i=objs.begin(); i!=objs.end(); ++i) - add_depend(*i); - - install_location = "lib"; -} - -Msp::FS::Path StaticLibrary::generate_target_path(const Component &c) -{ - return c.get_package().get_out_dir()/("lib"+c.get_name()+".a"); -}