mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[libjpeg-turbo] use d suffix for debug libs (#4965)
* use d suffix for debug libs, improve compatibility with official FindJPEG.cmake (cmake 3.13) * [libjpeg] fix also non-static case * [libjpeg-turbo] bump version * [libjpeg-turbo] fixes for regression on Linux/macOS * [libjpeg-turbo] fix regression in qt5-base * [linkjpeg-turbo] force CI test
This commit is contained in:
parent
1fe5a31cd7
commit
885ca2ce6c
@ -1,3 +1,3 @@
|
||||
Source: libjpeg-turbo
|
||||
Version: 1.5.3-1
|
||||
Version: 1.5.3-2
|
||||
Description: libjpeg-turbo is a JPEG image codec that uses SIMD instructions (MMX, SSE2, NEON, AltiVec) to accelerate baseline JPEG compression and decompression on x86, x86-64, ARM, and PowerPC systems.
|
||||
|
@ -51,11 +51,14 @@ vcpkg_configure_cmake(
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Rename libraries for static builds
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" AND EXISTS "${CURRENT_PACKAGES_DIR}/lib/jpeg-static.lib")
|
||||
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/jpeg-static.lib")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/jpeg-static.lib" "${CURRENT_PACKAGES_DIR}/lib/jpeg.lib")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/turbojpeg-static.lib" "${CURRENT_PACKAGES_DIR}/lib/turbojpeg.lib")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/jpeg-static.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/jpeg.lib")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/turbojpeg-static.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/turbojpeg.lib")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/jpeg-static.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/jpegd.lib")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/turbojpeg-static.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/turbojpegd.lib")
|
||||
elseif(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/jpeg.lib")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/jpeg.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/jpegd.lib")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/turbojpeg.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/turbojpegd.lib")
|
||||
endif()
|
||||
|
||||
file(COPY
|
||||
|
@ -79,13 +79,14 @@ if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore
|
||||
${CORE_OPTIONS}
|
||||
-mp
|
||||
-opengl desktop # other options are "-no-opengl", "-opengl angle", and "-opengl desktop"
|
||||
LIBJPEG_LIBS="-ljpeg"
|
||||
OPTIONS_RELEASE
|
||||
LIBJPEG_LIBS="-ljpeg"
|
||||
ZLIB_LIBS="-lzlib"
|
||||
LIBPNG_LIBS="-llibpng16"
|
||||
FREETYPE_LIBS="-lfreetype"
|
||||
PSQL_LIBS="-llibpq"
|
||||
OPTIONS_DEBUG
|
||||
LIBJPEG_LIBS="-ljpegd"
|
||||
ZLIB_LIBS="-lzlibd"
|
||||
LIBPNG_LIBS="-llibpng16d"
|
||||
PSQL_LIBS="-llibpqd"
|
||||
@ -100,8 +101,8 @@ elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
${CORE_OPTIONS}
|
||||
-no-sqlite
|
||||
-no-opengl # other options are "-no-opengl", "-opengl angle", and "-opengl desktop"
|
||||
LIBJPEG_LIBS="-ljpeg"
|
||||
OPTIONS_RELEASE
|
||||
"LIBJPEG_LIBS=${CURRENT_INSTALLED_DIR}/lib/libjpeg.a"
|
||||
"QMAKE_LIBS_PRIVATE+=${CURRENT_INSTALLED_DIR}/lib/libpng16.a"
|
||||
"QMAKE_LIBS_PRIVATE+=${CURRENT_INSTALLED_DIR}/lib/libz.a"
|
||||
"ZLIB_LIBS=${CURRENT_INSTALLED_DIR}/lib/libz.a"
|
||||
@ -109,6 +110,7 @@ elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
"FREETYPE_LIBS=${CURRENT_INSTALLED_DIR}/lib/libfreetype.a"
|
||||
"PSQL_LIBS=${CURRENT_INSTALLED_DIR}/lib/libpq.a ${CURRENT_INSTALLED_DIR}/lib/libssl.a ${CURRENT_INSTALLED_DIR}/lib/libcrypto.a"
|
||||
OPTIONS_DEBUG
|
||||
"LIBJPEG_LIBS=${CURRENT_INSTALLED_DIR}/debug/lib/libjpeg.a"
|
||||
"QMAKE_LIBS_PRIVATE+=${CURRENT_INSTALLED_DIR}/debug/lib/libpng16d.a"
|
||||
"QMAKE_LIBS_PRIVATE+=${CURRENT_INSTALLED_DIR}/debug/lib/libz.a"
|
||||
"ZLIB_LIBS=${CURRENT_INSTALLED_DIR}/debug/lib/libz.a"
|
||||
|
@ -47,4 +47,5 @@ vcpkg_copy_pdbs()
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/core/vxl_copyright.h DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
file(INSTALL ${SOURCE_PATH}/core/vxl_copyright.h DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
#
|
Loading…
x
Reference in New Issue
Block a user