[Qbs] qbs, qmake and filename case sensitivity

Christian Kandeler christian.kandeler at qt.io
Tue May 22 13:16:28 CEST 2018


On Mon, 21 May 2018 10:56:24 +1200
Christian Gagneraud <chgans at gmail.com> wrote:

> In a mixed Linux/Windows environment, qmake seems to deal with
> filename case sensitivity automagically.
> I have a '.pro' file that contains say FOOBar.ccp, but on disk - on
> Linux, FOOBar.cpp doesn't exists and FooBar.cpp does.
> QMake magically generates a Makefile file with FooBar.cpp instead of
> FOOBar.cpp, and the build passes.
> 
> This '.pro' file is automatically generated from Visual Studio
> solution and project files using in-house python scripts, which means
> that the 'error' is inside vcxproj files but as Windows doesn't care
> about case sensistivity, it is not a problem - on Windows.
> 
> Using this system of python scripts, i'm now generating 'qbs' files,
> the Qbs file contains 'FOOBar.cpp, and this time Qbs - on Linux -
> complains (rightly) that FOOBar.cpp doesn't exist.
> 
> I am not sure what is the best behaviour:
> - QMake being convenient.
> - Qbs being strict.
> 
> Should Qbs mimic what qmake does?

To me, an upper vs lower case error is no different from other kinds of typos, like extra or missing characters. I don't think we should have dedicated code detecting or even fixing that.
Maybe some "did you mean ..." kind of functionality would be somewhat nice to have, but again that would not be specific to upper/lower case issues.


Christian



More information about the Qbs mailing list