Skip to content
Snippets Groups Projects
Commit b66c8723 authored by Thomas Dinges's avatar Thomas Dinges
Browse files

* Changes for static win32 png libs.

parent 0ebb1a3f
No related branches found
No related tags found
No related merge requests found
......@@ -723,11 +723,7 @@ elseif(WIN32)
set(GETTEXT_LIBRARIES gnu_gettext)
endif()
if(CMAKE_CL_64)
set(PNG_LIBRARIES libpng)
else()
set(PNG_LIBRARIES libpng_st)
endif()
set(JPEG_LIBRARIES libjpeg)
set(PNG "${LIBDIR}/png")
......
......@@ -726,10 +726,6 @@ if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'win64-vc', 'linuxcross'):
# For MinGW and linuxcross static linking will be used
dllsources += ['${LCGDIR}/gettext/lib/gnu_gettext.dll']
#currently win64-vc doesn't appear to have libpng.dll
if env['OURPLATFORM'] != 'win64-vc':
dllsources += ['${BF_PNG_LIBPATH}/libpng.dll']
dllsources += ['${BF_ZLIB_LIBPATH}/zlib.dll']
# Used when linking to libtiff was dynamic
# keep it here until compilation on all platform would be ok
......
......@@ -72,7 +72,7 @@ BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
WITH_BF_PNG = True
BF_PNG = LIBDIR + '/png'
BF_PNG_INC = '${BF_PNG}/include'
BF_PNG_LIB = 'libpng_st'
BF_PNG_LIB = 'libpng'
BF_PNG_LIBPATH = '${BF_PNG}/lib'
WITH_BF_TIFF = True
......
......@@ -491,7 +491,6 @@ elseif(WIN32)
else()
install(
FILES
${LIBDIR}/png/lib/libpng.dll
${LIBDIR}/zlib/lib/zlib.dll
DESTINATION ${TARGETDIR}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment