anchor.diff:  rd /s /q %BUILD_PATH%\include
   mkdir %BUILD_PATH%\include
   perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\global
  -perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\bearer
  -perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\publishsubscribe
  -perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\location
  -perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\serviceframework
  -perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\systeminfo
  -perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts
  -perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\multimedia
  -perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\multimedia\experimental
  -perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\messaging
  -perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\versit
  +
  +set MODULES_TEMP=%MOBILITY_MODULES%
  +
  +:generateHeaders
  +
  +for /f "tokens=1,*" %%a in ("%MODULES_TEMP%") do ( 
  +    set FIRST=%%a 
  +    set REMAINING=%%b
  +)
  +
  +if %FIRST% == bearer (
  +    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\bearer
  +) else if %FIRST% == contacts (
  +    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts
  +) else if %FIRST% == location (
  +    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\location
  +) else if %FIRST% == messaging (
  +    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\messaging
  +) else if %FIRST% == multimedia (
  +    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\multimedia
  +    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\multimedia\experimental
  +) else if %FIRST% == publishsubscribe (
  +    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\publishsubscribe
  +) else if %FIRST% == systeminfo (
  +    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\systeminfo
  +) else if %FIRST% == serviceframework (
  +    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\serviceframework
  +) else if %FIRST% == versit (
  +    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\versit
  +)
  +
  +if "%REMAINING%" == "" (
  +    shift
  +) else (
  +    set MODULES_TEMP=%REMAINING%
  +    goto generateHeaders
  +)
  +
  +SET REMAINING=
  +SET FIRST=
  +SET MODULES_TEMP=
   
   if exist config.pri del config.pri
   ren %PROJECT_CONFIG% config.pri
  
positive.code:     echo -no-docs .......... Do not build documentation (build by default)
      echo -modules ^<list^> ... Build only the specified modules (default all)
      echo                     Choose from: bearer location publishsubscribe location
      echo                     multimedia contacts versit messaging systeminfo
      echo                     Modules should be separated by a space. If a
      echo                     selected module depends on other modules they
      echo                     will automatically be enabled.
  
negative.code: echo isEmpty($$QT_MOBILITY_INCLUDE):QT_MOBILITY_INCLUDE=$$QT_MOBILITY_PREFIX/include >> %PROJECT_CONFIG%
  echo isEmpty($$QT_MOBILITY_LIB):QT_MOBILITY_LIB=$$QT_MOBILITY_PREFIX/lib >> %PROJECT_CONFIG%
  echo isEmpty($$QT_MOBILITY_BIN):QT_MOBILITY_BIN=$$QT_MOBILITY_PREFIX/bin >> %PROJECT_CONFIG%
  
  echo mobility_modules = %MOBILITY_MODULES%  >> %PROJECT_CONFIG%
  echo maemo:mobility_modules -= systeminfo  >> %PROJECT_CONFIG%
  