3 echo ##########################################################################
\r
4 echo libpng %VERSION%
\r
5 echo ##########################################################################
\r
7 IF NOT DEFINED SAT_DEBUG (
\r
11 REM current built by Opencascade. move to the commented section below once agreed.
\r
12 SET PRODUCT_BUILD_TYPE=Release
\r
13 REM TODO: NGH: not Tested yet
\r
14 REM if %SAT_DEBUG% == 1 (
\r
15 REM set PRODUCT_BUILD_TYPE=Debug
\r
17 if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
\r
18 REM clean BUILD directory
\r
19 if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
\r
24 xcopy include %PRODUCT_INSTALL%\include /E /I /Q
\r
25 if NOT %ERRORLEVEL% == 0 (
\r
26 echo ERROR on xcopy include
\r
30 xcopy bin %PRODUCT_INSTALL%\bin /E /I /Q
\r
31 if NOT %ERRORLEVEL% == 0 (
\r
32 echo ERROR on xcopy bin
\r
39 REM if exist "%PRODUCT_INSTALL%" rmdir /Q /S "%PRODUCT_INSTALL%"
\r
40 REM mkdir %PRODUCT_INSTALL%
\r
42 REM set CMAKE_OPTIONS=-DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/%
\r
43 REM if defined CMAKE_GENERATOR (
\r
44 REM set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR=%CMAKE_GENERATOR%
\r
46 REM set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR="Visual Studio 15 2017 Win64"
\r
49 REM set MSBUILDDISABLENODEREUSE=1
\r
54 REM echo --------------------------------------------------------------------------
\r
55 REM echo *** %CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS%
\r
56 REM echo --------------------------------------------------------------------------
\r
58 REM %CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS% %SOURCE_DIR%
\r
59 REM if NOT %ERRORLEVEL% == 0 (
\r
60 REM echo "ERROR on cmake"
\r
65 REM echo --------------------------------------------------------------------------
\r
66 REM echo *** cmake --build . --config Release --target INSTALL
\r
67 REM echo --------------------------------------------------------------------------
\r
69 REM %CMAKE_ROOT%\bin\cmake --build . --config Release --target INSTALL
\r
70 REM if NOT %ERRORLEVEL% == 0 (
\r
71 REM echo "ERROR on cmake build"
\r
75 REM cp %PRODUCT_INSTALL%\lib\libpng15.lib %PRODUCT_INSTALL%\lib\libpng.lib
\r
76 REM if NOT %ERRORLEVEL% == 0 (
\r
77 REM echo "ERROR on copy libpng15.lib"
\r
81 REM taskkill /F /IM "mspdbsrv.exe"
\r
84 REM echo ########## END
\r