Changeset 953 for trunk/qmake


Ignore:
Timestamp:
Aug 10, 2011, 5:20:40 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: gnumake/os2: More precise escaping of illegal characters.

Escaping is now even more smart and will not try to escape strings like
'$(basename $(MYVAR)).ext', instead properly replacing them with
'$(basename $(call q,$(MYVAR))).ext'. This in particular affects extra
targets (that can have something like above in the .target spec).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/generators/os2/gnumake.cpp

    r934 r953  
    9797    // it at runtime.
    9898    QString ret = path;
    99     QString trimmed = path.trimmed();
    100     if (!trimmed.startsWith("$(") || !trimmed.endsWith(")")) {
     99   
     100   
    101101        ret.remove('\"');
    102102        ret.replace(' ', "\\ ");
    103         // but we still want to normalize slashes as this is what we do in
     103        // we still want to normalize slashes as this is what we do in
    104104        // other places (e.g. .cpp targets); this function will do it for
    105105        // QMAKE_EXTRA_TARGETS as well
     
    107107        if (!isDosLikeShell())
    108108            ret.replace('\\', '/');
    109     } else {
    110         ret = escapeFileVars(ret);
    111109    }
    112110    return ret;
Note: See TracChangeset for help on using the changeset viewer.