X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcomponent.cpp;h=5c859f7eaf80e01d0734f0d3fc4de4891be736c1;hb=1d687970cc35e54c3335f4aa2fdef23424fe0a06;hp=a340f3cc28b00efb091341ad6e3a593f9375e071;hpb=b1f8964a6b466f9b0c86e82706bf9e72133ecfcf;p=builder.git diff --git a/source/component.cpp b/source/component.cpp index a340f3c..5c859f7 100644 --- a/source/component.cpp +++ b/source/component.cpp @@ -6,12 +6,12 @@ #include #include "builder.h" #include "component.h" +#include "csourcefile.h" #include "datafile.h" #include "executable.h" #include "file.h" #include "objectfile.h" #include "sharedlibrary.h" -#include "sourcefile.h" #include "sourcepackage.h" #include "staticlibrary.h" #include "tarball.h" @@ -77,8 +77,6 @@ void Component::create_build_info() if(type==PROGRAM) build_info.strip = lexical_cast(pkg.get_config().get_option("strip").value); - - build_info.unique(); } void Component::create_targets() const @@ -169,7 +167,7 @@ void Component::create_targets() const { FileTarget *hdr = builder.get_vfs().get_target(*i); if(!hdr) - hdr = new SourceFile(builder, *this, *i); + hdr = new CSourceFile(builder, *this, *i); // Install headers if requested if(type==HEADERS && install) @@ -275,7 +273,7 @@ void Component::Loader::source(const string &s) void Component::Loader::require(const string &n) { - Package *req = comp.pkg.get_builder().get_package(n); + Package *req = comp.pkg.get_builder().get_package_manager().find_package(n); if(req) comp.requires.push_back(req); }