void Component::create_build_info()
{
- build_info=pkg.get_build_info();
+ build_info.add(pkg.get_build_info());
build_info.unique();
}
add("source", &Loader::source);
add("install", &Component::install);
add("install_headers", &Component::install_headers);
+ add("cflag", &Loader::cflag);
}
void Component::Loader::source(const string &s)
{
comp.sources.push_back(comp.pkg.get_source()/s);
}
+
+void Component::Loader::cflag(const string &f)
+{
+ comp.build_info.cflags.push_back(f);
+}
Component ∁
void source(const std::string &);
+ void cflag(const std::string &);
};
enum Type
+#include <msp/path/utils.h>
#include "builder.h"
#include "copy.h"
#include "header.h"
#include "package.h"
using namespace std;
+using namespace Msp;
Install::Install(Builder &b, const Package &p, Target &tgt, const string &n):
Target(b, &p, n)
{
Target *dep=depends.front();
if(dep->get_mtime()>mtime)
- mark_rebuild(dep->get_name()+" has changed");
+ mark_rebuild(Path::basename(dep->get_name())+" has changed");
else if(dep->get_rebuild())
- mark_rebuild(dep->get_name()+" needs rebuilding");
+ mark_rebuild(Path::basename(dep->get_name())+" needs rebuilding");
}
}
info.push_back("-lGL");
else if(name=="pthread")
info.push_back("-lpthread");
+ else if(name=="gmpxx")
+ info.push_back("-lgmpxx");
else
return 0;
}