On 21 May 2018 at 18:57, NIkolai Marchenko <[email protected]> wrote: > Sadly, I think the way Qbs does it is correct.
Why 'sadly', i wasn't complaining, just reporting my findings, and looking for other's opinion. > These subtle naming errors are better found early before they mess up > something when you try to use the project outside the "helpful" build system > as you have just found out. > It's better to fix these early than frantically search for problems when > time is critical. Agree, convenience tends to bring un-repeatable 'magic'. Strictness brings repeatability, but is usually verbose/noisy. Something else I've just discovered about qmake, is that you can 'forget' which Qt module you depend on. Qmake seems to scan your source file and add missing Qt dependencies automagically! How can you trust a tool that do stuff "on your back"... Chris > > On Mon, May 21, 2018 at 1:56 AM, Christian Gagneraud <[email protected]> > wrote: >> >> Hi there, >> >> 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? >> >> Chris >> _______________________________________________ >> Qbs mailing list >> [email protected] >> http://lists.qt-project.org/mailman/listinfo/qbs > > _______________________________________________ Qbs mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qbs
