Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7369


Ignore:
Timestamp:
01/19/12 10:29:06 (13 years ago)
Author:
abeham
Message:

#1759: Added processor architecture detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/FxCop.cmd

    r7352 r7369  
    22
    33SET Outdir=bin
    4 SET FXCOPCMD=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\FxCopCmd.exe
     4SET FXCOPCMD=
    55
    66ECHO. > FxCopResults.txt
    77
     8IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
     9  SET FXCOPCMD="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\FxCopCmd.exe"
     10) ELSE (
     11  IF "%PROCESSOR_ARCHITECTURE%"=="x86" (
     12    REM If the PROCESSOR_ARCHITECTURE indicates x86, the OS need not necessarily by 32bit.
     13    REM For WOW64 processes, a special environment variable will indicate the real architecture.
     14    IF "%PROCESSOR_ARCHITEW6432%"=="AMD64" (
     15      SET FXCOPCMD="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\FxCopCmd.exe"
     16    ) ELSE (
     17      SET FXCOPCMD="C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\FxCopCmd.exe"
     18    )
     19  ) ELSE (
     20    ECHO Unknown architecture: %PROCESSOR_ARCHITECTURE%
     21    GOTO :end
     22  )
     23)
     24
     25IF NOT EXIST %FXCOPCMD% (
     26  ECHO FxCopCmd.exe could not be found.
     27  GOTO :end
     28)
     29
    830FOR /F "tokens=*" %%G IN ('DIR /B %Outdir%\HeuristicLab.*.dll') DO (
    931  ECHO Performing Code Analysis on %Outdir%\%%G
    10   "%FXCOPCMD%" /file:%Outdir%\%%G /rule:+HeuristicLab.FxCop.dll /directory:%Outdir% /console /quiet >> FxCopResults.txt
     32  %FXCOPCMD% /file:%Outdir%\%%G /rule:+HeuristicLab.FxCop.dll /directory:%Outdir% /console /quiet >> FxCopResults.txt
    1133)
    1234
     35:end
     36
    1337PAUSE
Note: See TracChangeset for help on using the changeset viewer.