Commit 61a02242 authored by Steve Lhomme's avatar Steve Lhomme

contrib: x265: do not copy .pdb files that don't exist

parent 4c333e42
......@@ -27,6 +27,7 @@ x265: x265-$(X265_VERSION).tar.bz2 .sum-x265
mkdir -p $@-$(X265_VERSION)
tar xvjf "$<" --strip-components=1 -C $@-$(X265_VERSION)
$(APPLY) $(SRC)/x265/x265-ldl-linking.patch
$(APPLY) $(SRC)/x265/x265-no-pdb-install.patch
$(call pkg_static,"source/x265.pc.in")
ifndef HAVE_WIN32
$(APPLY) $(SRC)/x265/x265-pkg-libs.patch
......
--- x265/source/CMakeLists.txt.nopdb 2018-05-18 16:28:43.150790700 +0200
+++ x265/source/CMakeLists.txt 2018-05-18 16:28:53.838634400 +0200
@@ -546,7 +546,7 @@ if(ENABLE_HDR10_PLUS)
ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
endif()
install(FILES x265.h "${PROJECT_BINARY_DIR}/x265_config.h" DESTINATION include)
-if(WIN32)
+if(WIN32 AND MSVC_IDE)
if(MSVC_IDE)
install(FILES "${PROJECT_BINARY_DIR}/Debug/x265.pdb" DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS Debug)
install(FILES "${PROJECT_BINARY_DIR}/RelWithDebInfo/x265.pdb" DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS RelWithDebInfo)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment