X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstaticlibrary.cpp;h=be88b41bf31d61a34257ea75bfc726df4dca5adf;hb=HEAD;hp=f6c8e56e49fc409382e0b7c399340eb6fa60ad1e;hpb=2606b03da59dc10e3826b833a2fceb0831d79972;p=builder.git diff --git a/source/staticlibrary.cpp b/source/staticlibrary.cpp deleted file mode 100644 index f6c8e56..0000000 --- a/source/staticlibrary.cpp +++ /dev/null @@ -1,29 +0,0 @@ -#include "builder.h" -#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) -{ - const Architecture &arch = c.get_package().get_builder().get_current_arch(); - return c.get_package().get_out_dir()/ - arch.get_static_library_patterns().front().apply(c.get_name()); -}