summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Vanhauwaert <bart@grafitroniks.fr>2010-08-02 14:00:45 +0200
committerBart Vanhauwaert <bart@grafitroniks.fr>2010-08-02 14:00:45 +0200
commita6c49957cc9eb474df922af619686a468a98a877 (patch)
tree51c794aa3123a9d8ce3ddb5c7888a7ab517831fc
parentBetter error reporting for missing libraries (diff)
downloadbldit-a6c49957cc9eb474df922af619686a468a98a877.tar.xz
bldit-a6c49957cc9eb474df922af619686a468a98a877.zip
Write header information to configuration as well for linkcomponents
-rw-r--r--Component.cc1
-rw-r--r--Component.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/Component.cc b/Component.cc
index 9bb26bf..db6ccd6 100644
--- a/Component.cc
+++ b/Component.cc
@@ -265,6 +265,7 @@ SharedPtr<ConfiguredComponent> LinkComponent::readFromSystemConfiguration(const
void LinkComponent::writeSystemConfiguration(SharedPtr<ConfiguredComponent> CC, const Configurable& UseIn)
{
+ HeaderOnlyComponent::writeSystemConfiguration(CC, UseIn);
Project::it().systemConfiguration().configureKey(name()+uniqueString(UseIn)+".librarydir",CC->linkDirectories());
Project::it().systemConfiguration().configureKey(name()+uniqueString(UseIn)+".linkpart",CC->linkParts());
}
diff --git a/Component.h b/Component.h
index 7ed683d..58d7555 100644
--- a/Component.h
+++ b/Component.h
@@ -61,10 +61,10 @@ class HeaderOnlyComponent : public Component
protected:
virtual SharedPtr<ConfiguredComponent> discoverFor(const Configurable& UseIn);
virtual SharedPtr<ConfiguredComponent> readFromSystemConfiguration(const Configurable& UseIn);
+ virtual void writeSystemConfiguration(SharedPtr<ConfiguredComponent> CC, const Configurable& UseIn);
virtual std::string uniqueString(const Configurable& UseIn);
private:
- virtual void writeSystemConfiguration(SharedPtr<ConfiguredComponent> CC, const Configurable& UseIn);
virtual bool matches(SharedPtr<ConfiguredComponent> CC, const Configurable& UseIn);
bool works(const std::string& IncludeDir);