Changeset 1044


Ignore:
Timestamp:
Sep 1, 2011, 6:48:13 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: Make MakefileGenerator::fileFixify() honor file name case sensitivity.

On platforms with case-insensitive file names (Windows, OS/2), this fixes
the procedure of shortening relative paths which would not work if the file
and in/out directory names had different cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/generators/makefile.cpp

    r998 r1044  
    5353#include <qsettings.h>
    5454#include <qdatetime.h>
     55
    5556#if defined(Q_OS_UNIX)
    5657#include <unistd.h>
     
    28712872        return cacheVal;
    28722873
     2874
     2875
     2876
    28732877    //do the fixin'
    28742878    QString pwd = qmake_getpwd();
     
    29122916            if(ret == match_dir) {
    29132917                ret = "";
    2914             } else if(ret.startsWith(match_dir + Option::dir_sep)) {
     2918            } else if(ret.startsWith(match_dir + Option::dir_sep)) {
    29152919                ret = ret.mid(match_dir.length() + Option::dir_sep.length());
    29162920            } else {
     
    29332937                    if(match_dir.isEmpty())
    29342938                        break;
    2935                     if(ret.startsWith(match_dir + Option::dir_sep)) {
     2939                    if(ret.startsWith(match_dir + Option::dir_sep)) {
    29362940                        //concat
    29372941                        int remlen = ret.length() - (match_dir.length() + 1);
Note: See TracChangeset for help on using the changeset viewer.