add ability to override the generated pkg-config file name
introduce the QMAKE_PKGCONFIG_FILE variable for that purpose. this is another feature that is needed for a bugfix ... Change-Id: I08f470e1b2b7dd318af9195330c15d813fcd55ef Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
dcada2a05d
commit
5a0ec1b0f3
@ -3110,15 +3110,18 @@ MakefileGenerator::openOutput(QFile &file, const QString &build) const
|
||||
QString
|
||||
MakefileGenerator::pkgConfigFileName(bool fixify)
|
||||
{
|
||||
QString ret = var("TARGET");
|
||||
int slsh = ret.lastIndexOf(Option::dir_sep);
|
||||
if(slsh != -1)
|
||||
ret = ret.right(ret.length() - slsh - 1);
|
||||
if(ret.startsWith("lib"))
|
||||
ret = ret.mid(3);
|
||||
int dot = ret.indexOf('.');
|
||||
if(dot != -1)
|
||||
ret = ret.left(dot);
|
||||
QString ret = project->first("QMAKE_PKGCONFIG_FILE").toQString();
|
||||
if (ret.isEmpty()) {
|
||||
ret = project->first("TARGET").toQString();
|
||||
int slsh = ret.lastIndexOf(Option::dir_sep);
|
||||
if (slsh != -1)
|
||||
ret = ret.right(ret.length() - slsh - 1);
|
||||
if (ret.startsWith("lib"))
|
||||
ret = ret.mid(3);
|
||||
int dot = ret.indexOf('.');
|
||||
if (dot != -1)
|
||||
ret = ret.left(dot);
|
||||
}
|
||||
ret += Option::pkgcfg_ext;
|
||||
QString subdir = project->first("QMAKE_PKGCONFIG_DESTDIR").toQString();
|
||||
if(!subdir.isEmpty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user