X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finstall.cpp;h=b5d70f45557fda665241fb67509b9929a509a59c;hb=b3ce9052ba98a4585aec75117265d170b7ccfdb8;hp=a0029ac1eed33244fea945686d43347d3a8b6628;hpb=36a7c1a4d4d2b45be16c1e5d862af51e0ded1e93;p=builder.git diff --git a/source/install.cpp b/source/install.cpp index a0029ac..b5d70f4 100644 --- a/source/install.cpp +++ b/source/install.cpp @@ -9,6 +9,7 @@ Distributed under the LGPL #include "builder.h" #include "copy.h" #include "executable.h" +#include "datafile.h" #include "header.h" #include "install.h" #include "package.h" @@ -73,6 +74,8 @@ FS::Path Install::generate_target_path(const FileTarget &tgt, const std::string mid="lib"; else if(dynamic_cast(&tgt)) mid="lib/pkgconfig"; + else if(dynamic_cast(&tgt)) + mid="share/"+tgt.get_package()->get_name(); if(mid.empty()) throw InvalidParameterValue("Don't know where to install "+tgtname);