Commit ed4a1577 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

tst_licenses.pl: Fall back to QT_INSTALL_PREFIX/src when looking for qtbase


This makes it possible to check modules that are not checked out
next to qtbase.

Change-Id: I68c244c7449513d07c1e1e582de5d37c77467c20
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: default avatarAlexandru Croitor <alexandru.croitor@qt.io>
No related merge requests found
Showing with 5 additions and 0 deletions
......@@ -578,6 +578,11 @@ sub run
@moduleExcludedFiles = readRegularExpressionsFromFile(catfile($QT_MODULE_TO_TEST, ".qt-license-check.exclude"));
my $qtbase_path = first { -d $_ } @qtbase_paths;
if (! $qtbase_path) {
my $output = `qmake -query QT_INSTALL_PREFIX/src`;
chomp($output);
$qtbase_path = $output if -d $output;
}
if (! $qtbase_path) {
fail("Cannot find qtbase module, looked at: @qtbase_paths");
return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment