Changeset 356 for trunk/qmake/generators


Ignore:
Timestamp:
Nov 28, 2009, 8:45:18 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: Use case-insensitive path comparison on Win32 and OS/2 when simplifying file paths in the generated Makefiles.

File:
1 edited

Legend:

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

    r199 r356  
    27342734}
    27352735
     2736
     2737
     2738
     2739
     2740
     2741
     2742
     2743
     2744
     2745
     2746
     2747
     2748
     2749
     2750
     2751
     2752
     2753
    27362754QString
    27372755MakefileGenerator::fileFixify(const QString& file, const QString &out_d, const QString &in_d,
     
    27872805            ret = Option::fixPathToTargetOS(ret, false, canon);
    27882806            if(canon && qfileinfo.exists() &&
    2789                file == Option::fixPathToTargetOS(ret, true, canon))
     2807               ))
    27902808                ret = Option::fixPathToTargetOS(qfileinfo.canonicalFilePath());
    27912809            QString match_dir = Option::fixPathToTargetOS(out_dir, false, canon);
    2792             if(ret == match_dir) {
     2810            if() {
    27932811                ret = "";
    2794             } else if(ret.startsWith(match_dir + Option::dir_sep)) {
     2812            } else if(match_dir + Option::dir_sep)) {
    27952813                ret = ret.mid(match_dir.length() + Option::dir_sep.length());
    27962814            } else {
     
    28132831                    if(match_dir.isEmpty())
    28142832                        break;
    2815                     if(ret.startsWith(match_dir + Option::dir_sep)) {
     2833                    if(match_dir + Option::dir_sep)) {
    28162834                        //concat
    28172835                        int remlen = ret.length() - (match_dir.length() + 1);
Note: See TracChangeset for help on using the changeset viewer.