Skip to content

Commit

Permalink
Sylvain Debaudringhien:
Browse files Browse the repository at this point in the history
Updated Visual Studio build script, to get it to work using VS2017 command prompt. Added .obj files cleanup.
  • Loading branch information
SylvainDebaudringhien committed May 15, 2018
1 parent 9a70e55 commit 07390d2
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions build/MSVC/make_vs.bat
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
cd /d %~dp0..\..\

echo release
cl /nologo /DFLIF_USE_STB_IMAGE /Feflif.exe flif.cpp build\MSVC\getopt\*.c* -I build\MSVC\getopt\ /DSTATIC_GETOPT flif-dec.cpp flif-enc.cpp common.cpp io.cpp maniac\*.c* transform\*.cpp image\*.c* /WX /EHsc /Ox /Oy /MT /DNDEBUG

echo debug
cl /nologo /DFLIF_USE_STB_IMAGE /Feflif-d.exe flif.cpp build\MSVC\getopt\*.c* -I build\MSVC\getopt\ /DSTATIC_GETOPT flif-dec.cpp flif-enc.cpp common.cpp io.cpp maniac\*.c* transform\*.cpp image\*.c* /WX /EHsc /Zi /Oy- /MDd /DDEBUG

echo test
if exist output.flif del output.flif
flif tools/kodim01.png output.flif
if exist output.png del output.png
flif output.flif output.png
start output.png


echo release
cl /nologo /DFLIF_USE_STB_IMAGE /Feflif.exe -I getopt\ /DSTATIC_GETOPT ..\..\src\flif.cpp ..\..\src\flif-dec.cpp ..\..\src\flif-enc.cpp ..\..\src\common.cpp ..\..\src\io.cpp ..\..\src\maniac\*.c* ..\..\src\transform\*.cpp ..\..\src\image\*.c* getopt/getopt.c ..\..\extern\lodepng.cpp /WX /EHsc /Ox /Oy /MT /DNDEBUG

echo debug
cl /nologo /DFLIF_USE_STB_IMAGE /Feflif-d.exe -I getopt\ /DSTATIC_GETOPT ..\..\src\flif.cpp ..\..\src\flif-dec.cpp ..\..\src\flif-enc.cpp ..\..\src\common.cpp ..\..\src\io.cpp ..\..\src\maniac\*.c* ..\..\src\transform\*.cpp ..\..\src\image\*.c* getopt/getopt.c ..\..\extern\lodepng.cpp /WX /EHsc /Zi /Oy- /MDd /DDEBUG

del *.obj

echo test
if exist output.flif del output.flif
flif ..\..\tools/kodim01.png output.flif
if exist output.png del output.png
flif output.flif output.png
start output.png

0 comments on commit 07390d2

Please sign in to comment.