#include <msp/strings/lexicalcast.h>
#include "builder.h"
#include "component.h"
+#include "csourcefile.h"
#include "datafile.h"
#include "executable.h"
#include "file.h"
-#include "header.h"
#include "objectfile.h"
#include "sharedlibrary.h"
#include "sourcepackage.h"
}
if(type==PROGRAM)
- {
- string strip = pkg.get_config().get_option("strip").value;
- if(lexical_cast<bool>(strip))
- build_info.ldflags.push_back("-s");
- }
- else if(type==LIBRARY)
- {
- build_info.cflags.push_back("-fPIC");
- }
+ build_info.strip = lexical_cast<bool>(pkg.get_config().get_option("strip").value);
build_info.unique();
}
{
FileTarget *hdr = builder.get_vfs().get_target(*i);
if(!hdr)
- hdr = new Header(builder, *this, i->str());
+ hdr = new CSourceFile(builder, *this, *i);
// Install headers if requested
if(type==HEADERS && install)