The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/libsodium/test/default/wintest.bat

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 @ECHO OFF
    2 
    3 if "%1" == "" (
    4   echo "Usage: wintest.bat <Release | ReleaseDLL | Debug | DebugDLL"
    5         goto :END
    6 )
    7 
    8 if not exist sodium_version.c (
    9         CD test\default
   10         if not exist sodium_version.c (
   11                 echo "Are you on the right path?" %CD%
   12                 goto :END
   13         )
   14 )
   15 
   16 if "%2" == "x64" (SET ARCH=x64) else (SET ARCH=Win32)
   17 SET CFLAGS=/nologo /DTEST_SRCDIR=\".\" /I..\..\src\libsodium\include\sodium /I..\..\src\libsodium\include /I..\quirks
   18 SET LDFLAGS=/link /LTCG advapi32.lib ..\..\Build\%1\%ARCH%\libsodium.lib
   19 if "%1" == "ReleaseDLL" ( goto :ReleaseDLL )
   20 if "%1" == "DebugDLL"   ( goto :DebugDLL )
   21 if "%1" == "Release"   ( goto :Release )
   22 if "%1" == "Debug"   ( goto :Debug )
   23 echo "Invalid build type"
   24 goto :END
   25 :ReleaseDLL
   26         SET CFLAGS=%CFLAGS% /MD /Ox 
   27         SET PATH=..\..\Build\%1\%ARCH%;%PATH% 
   28         goto :COMPILE
   29 :Release
   30         SET CFLAGS=%CFLAGS% /MT /Ox /DSODIUM_STATIC /DSODIUM_EXPORT=
   31         goto :COMPILE
   32 :DebugDLL
   33         SET CFLAGS=%CFLAGS% /GS /MDd /Od
   34         SET PATH=..\..\Build\%1\%ARCH%;%PATH%
   35         goto :COMPILE
   36 :Debug
   37         SET CFLAGS=%CFLAGS% /GS /MTd /Od /DSODIUM_STATIC /DSODIUM_EXPORT=
   38         goto :COMPILE
   39 :COMPILE
   40 echo Running the test suite:
   41 FOR %%f in (*.c) DO (
   42         cl %CFLAGS% %%f %LDFLAGS% /OUT:%%f.exe > NUL 2>&1
   43         if not exist %%f.exe (
   44                 echo %%f compile failed
   45                 goto :END
   46         )
   47         %%f.exe
   48         if errorlevel 1 ( 
   49                 echo %%f failed
   50         ) else (
   51                 echo %%f ok
   52         )
   53 )
   54 REM Remove temporary files
   55 del *.exe *.obj *.res 
   56 :END

Cache object: 382f16f6e13d01f07766a37656ff457d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.