Update dmake to use basepath in lib.pri.

This commit is contained in:
Kimmo Varis 2010-12-18 17:11:19 +02:00
parent 67713e47bd
commit 4ebdbec621
1 changed files with 3 additions and 3 deletions

View File

@ -140,21 +140,21 @@ int main(int argc, char **argv)
fout1 << "# no manual edits - this file is autogenerated by dmake\n\n";
fout1 << "LIBS += -L../externals -lpcre\n";
fout1 << "INCLUDEPATH += ../externals\n";
fout1 << "HEADERS += $$PWD/check.h \\\n";
fout1 << "HEADERS += $${BASEPATH}check.h \\\n";
for (unsigned int i = 0; i < libfiles.size(); ++i)
{
std::string fname(libfiles[i].substr(4));
if (fname.find(".cpp") == std::string::npos)
continue; // shouldn't happen
fname.erase(fname.find(".cpp"));
fout1 << std::string(11, ' ') << "$$PWD/" << fname << ".h";
fout1 << std::string(11, ' ') << "$${BASEPATH}" << fname << ".h";
if (i < libfiles.size() - 1)
fout1 << " \\\n";
}
fout1 << "\n\nSOURCES += ";
for (unsigned int i = 0; i < libfiles.size(); ++i)
{
fout1 << "$$PWD/" << libfiles[i].substr(4);
fout1 << "$${BASEPATH}" << libfiles[i].substr(4);
if (i < libfiles.size() - 1)
fout1 << " \\\n" << std::string(11, ' ');
}