don't add DEPENDSPATH to VPATH
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Mon, 19 Nov 2012 10:43:06 +0000 (11:43 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 20 Nov 2012 17:57:54 +0000 (18:57 +0100)
follow suit with qmake ...

Change-Id: Ie1748d2056c7218b76d75cddd0bc7fb3f66cf8f7
Reviewed-by: hjk <qthjk@ovi.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
src/linguist/lupdate/main.cpp
tests/auto/linguist/lupdate/testdata/good/proparsing/project.pro
tests/auto/linguist/lupdate/testdata/good/proparsing/project.ts.result
tests/auto/linguist/lupdate/testdata/good/proparsing/vpaths/dependpath/main_dependpath.cpp

index 8ce881f..afc0d48 100644 (file)
@@ -287,7 +287,6 @@ static QStringList getSources(const ProFileEvaluator &visitor, const QString &pr
     QStringList baseVPaths;
     baseVPaths += visitor.absolutePathValues(QLatin1String("VPATH"), projectDir);
     baseVPaths << projectDir; // QMAKE_ABSOLUTE_SOURCE_PATH
-    baseVPaths += visitor.absolutePathValues(QLatin1String("DEPENDPATH"), projectDir);
     baseVPaths.removeDuplicates();
 
     QStringList sourceFiles;
index b6d2266..65391d6 100644 (file)
@@ -20,7 +20,7 @@ SOURCES += wildcard/main*.cpp \
             wildcard*.cpp
 
 
-DEPENDPATH = vpaths/dependpath
+VPATH = vpaths/dependpath
 
 # The purpose of this test is to test expansion of environment variables,
 # and to test if the DEPENDPATH variable is considered correctly.
index 556ca07..9b48d78 100644 (file)
@@ -56,8 +56,8 @@
     <name>QCoreApplication</name>
     <message>
         <location filename="vpaths/dependpath/main_dependpath.cpp" line="48"/>
-        <source>Hello from a DEPENDPATH</source>
-        <comment>See if the DEPENDPATH thing works</comment>
+        <source>Hello from a VPATH</source>
+        <comment>See if the VPATH thing works</comment>
         <translation type="unfinished"></translation>
     </message>
 </context>
index b960245..c628879 100644 (file)
@@ -45,7 +45,7 @@
 
 int main(int argc, char **argv)
 {
-    QCoreApplication::tr("Hello from a DEPENDPATH", "See if the DEPENDPATH thing works");
+    QCoreApplication::tr("Hello from a VPATH", "See if the VPATH thing works");
 }