X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstaticlibrary.cpp;h=be88b41bf31d61a34257ea75bfc726df4dca5adf;hb=HEAD;hp=2bb17fc04b9ff47b1f0552039f04687a2cc571f5;hpb=69cdee2c53972c1dd7e1b9d83ddcd8f6c3c589f7;p=builder.git diff --git a/source/staticlibrary.cpp b/source/staticlibrary.cpp deleted file mode 100644 index 2bb17fc..0000000 --- a/source/staticlibrary.cpp +++ /dev/null @@ -1,28 +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, p) -{ } - -StaticLibrary::StaticLibrary(Builder &b, const Component &c, const list &objs): - FileTarget(b, c.get_package(), c.get_package().get_out_dir()/generate_filename(c)) -{ - component = &c; - for(list::const_iterator i=objs.begin(); i!=objs.end(); ++i) - add_dependency(**i); - - install_location = "lib"; -} - -string StaticLibrary::generate_filename(const Component &comp) -{ - const Architecture &arch = comp.get_package().get_builder().get_current_arch(); - return arch.get_static_library_patterns().front().apply(comp.get_name()); -}