3 #include "executable.h"
4 #include "sourcepackage.h"
9 Executable::Executable(Builder &b, const Component &c, const std::list<ObjectFile *> &objs):
10 Binary(b, c, generate_filename(c), objs)
12 install_location = "bin";
15 string Executable::generate_filename(const Component &comp)
17 const Architecture &arch = comp.get_package().get_builder().get_current_arch();
18 return arch.get_executable_patterns().front().apply(comp.get_name());