3 #include "executable.h"
4 #include "sourcepackage.h"
9 Executable::Executable(Builder &b, const FS::Path &p):
13 Executable::Executable(Builder &b, const Component &c, const list<ObjectFile *> &objs):
14 Binary(b, c, generate_filename(c), objs)
16 install_location = "bin";
19 string Executable::generate_filename(const Component &comp)
21 const Architecture &arch = comp.get_package().get_builder().get_current_arch();
22 return arch.get_executable_patterns().front().apply(comp.get_name());