hammer/tools/windows/env.bat
Nicolas Léveillé be30820023 windows build: Add build scripts + appveyor.yml
In order to guarantee that Hammer can build on Windows, an appveyor.yml
and associated build scripts will build hammer and its examples. The idea
is that as soon as the appveyor.yml exists in the repository, pull
requests that would impede Windows portability would be immediately
detected.

The scripts expect CL.EXE to be in the path, and will produce their
results in build/

The highest level of warning is enabled on CL.EXE, minus warnings that
bring CL.EXE to a level that ressembles C99. The only notable warning
that was disabled is the one that tells you about implicit truncating
conversions.

Hammer's source code has quite a few implicit conversions say from a 64bit
unsigned integer to a integer of a lesser size (signed or otherwise)
2015-08-09 22:46:00 +02:00

16 lines
289 B
Batchfile

REM Don't call me directly.
REM
REM Expects HEREPATH (this directory)
REM Exports SRC (hammer's src directory)
REM Exports BUILD (hammer's build directory)
set TOP=%HEREPATH%..\..
REM Get canonical path for TOP
pushd .
cd %TOP%
set TOP=%CD%
popd
set SRC=%TOP%\src
set BUILD=%TOP%\build