HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/pkgs/libpng-1.6.39-h8cc25b3_0/info/recipe/bld.bat
mkdir build-%SUBDIR%-%c_compiler%
cd build-%SUBDIR%-%c_compiler%

:: Configure.
cmake -G Ninja                                  ^
      -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX%  ^
      -D ZLIB_LIBRARY=%LIBRARY_LIB%\zlib.lib    ^
      -D ZLIB_INCLUDE_DIR=%LIBRARY_INC%         ^
      -DCMAKE_C_FLAGS="%CFLAGS% -DWIN32"        ^
      -DCMAKE_BUILD_TYPE=Release                ^
      %SRC_DIR%
if errorlevel 1 exit /b 1

cmake --build . --target install
if errorlevel 1 exit /b 1

:: Test.
ctest -C Release
if errorlevel 1 exit 1

:: Make copies of the .lib files without the embedded version number.
copy %LIBRARY_LIB%\libpng16.lib %LIBRARY_LIB%\libpng.lib
if errorlevel 1 exit 1

copy %LIBRARY_LIB%\libpng16_static.lib %LIBRARY_LIB%\libpng_static.lib
if errorlevel 1 exit 1

:: Make copies of the .lib files without the 'lib' prefix.
copy %LIBRARY_LIB%\libpng16.lib %LIBRARY_LIB%\png16.lib
if errorlevel 1 exit 1

copy %LIBRARY_LIB%\libpng16_static.lib %LIBRARY_LIB%\png16_static.lib
if errorlevel 1 exit 1