From e1350c56c14a5948830203023ed5d4d4221a0f87 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 17 Apr 2015 11:59:53 +0200 Subject: fixqt4headers.pl: Improve detection of Qt 5 location. Obtain the location of the include files by querying the qmake variable QT_INSTALL_HEADERS by default, which can be overridden by the command line option. Task-number: QTBUG-45662 Change-Id: I03a781e9b98f5e2980dbaef86eedd05aec0103ce Reviewed-by: Oswald Buddenhagen --- bin/fixqt4headers.pl | 49 ++++++++++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 19 deletions(-) (limited to 'bin') diff --git a/bin/fixqt4headers.pl b/bin/fixqt4headers.pl index b08deb0ba2..59daecae86 100755 --- a/bin/fixqt4headers.pl +++ b/bin/fixqt4headers.pl @@ -47,7 +47,8 @@ my $stripModule = 0; my $fixedFileCount = 0; my $fileCount = 0; my $verbose = 0; -my $qtdir = $ENV{'QTDIR'}; +my $qtdir; +my $qtIncludeDir; my $USAGE=<