forked from FLIF-hub/FLIF
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Visual Studio build script, to get it to work using VS2017 command prompt. Added .obj files cleanup.
- Loading branch information
1 parent
9a70e55
commit 07390d2
Showing
1 changed file
with
14 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |