Changeset 967 for trunk


Ignore:
Timestamp:
Aug 11, 2011, 9:05:41 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: Added replace functions fixpath_target and fixpath_local.

They match to Option::fixPathToTargetOS() and Option::fixPathToTargetOS()
respectively. These operations are frequently used to fix paths when generating
makefiles and having them in .pro allows to do many things that would otherwise
require patching qmake itself. See the next changeset for a real life example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/project.cpp

    r847 r967  
    8484                  E_FIND, E_SYSTEM, E_UNIQUE, E_QUOTE, E_ESCAPE_EXPAND,
    8585                  E_UPPER, E_LOWER, E_FILES, E_PROMPT, E_RE_ESCAPE, E_REPLACE,
    86                   E_SIZE, E_GENERATE_UID };
     86                  E_SIZE, E_GENERATE_UID };
    8787QMap<QString, ExpandFunc> qmake_expandFunctions()
    8888{
     
    117117        qmake_expand_functions->insert("size", E_SIZE);
    118118        qmake_expand_functions->insert("generate_uid", E_GENERATE_UID);
     119
     120
    119121    }
    120122    return *qmake_expand_functions;
     
    22502252        }
    22512253        break;
     2254
     2255
     2256
     2257
     2258
     2259
     2260
     2261
     2262
     2263
     2264
     2265
     2266
     2267
     2268
     2269
     2270
     2271
     2272
    22522273    default: {
    22532274        fprintf(stderr, "%s:%d: Unknown replace function: %s\n",
Note: See TracChangeset for help on using the changeset viewer.