[x265] [PATCH x265-stable] Install symbol files in MinGW

Mahesh Pittala mahesh at multicorewareinc.com
Mon Dec 4 05:55:30 CET 2017


# HG changeset patch
# User Mahesh Pittala <mahesh at multicorewareinc.com>
# Date 1512049185 -19800
#      Thu Nov 30 19:09:45 2017 +0530
# Branch stable
# Node ID 7a3a539c8e12f0facb4186d9db2d227b813409e6
# Parent  b0d89eaaebcf3534204e054243d402b6cf646234
Install symbol files in MinGW

In debug and RelWithDebInfo configuration, .pdb files are installed.

diff -r b0d89eaaebcf -r 7a3a539c8e12 source/CMakeLists.txt
--- a/source/CMakeLists.txt	Wed Nov 29 08:52:18 2017 +0530
+++ b/source/CMakeLists.txt	Thu Nov 30 19:09:45 2017 +0530
@@ -548,10 +548,17 @@
 install(FILES x265.h "${PROJECT_BINARY_DIR}/x265_config.h" DESTINATION include)
 
 if(WIN32)
-    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)
-    install(FILES "${PROJECT_BINARY_DIR}/Debug/libx265.pdb" DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS Debug OPTIONAL NAMELINK_ONLY)
-    install(FILES "${PROJECT_BINARY_DIR}/RelWithDebInfo/libx265.pdb" DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS RelWithDebInfo OPTIONAL NAMELINK_ONLY)
+    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)
+        install(FILES "${PROJECT_BINARY_DIR}/Debug/libx265.pdb" DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS Debug OPTIONAL NAMELINK_ONLY)
+        install(FILES "${PROJECT_BINARY_DIR}/RelWithDebInfo/libx265.pdb" DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS RelWithDebInfo OPTIONAL NAMELINK_ONLY)
+    else()
+        install(FILES "${PROJECT_BINARY_DIR}/x265.pdb" DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS Debug)
+        install(FILES "${PROJECT_BINARY_DIR}/x265.pdb" DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS RelWithDebInfo)
+        install(FILES "${PROJECT_BINARY_DIR}/libx265.pdb" DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS Debug OPTIONAL NAMELINK_ONLY)
+        install(FILES "${PROJECT_BINARY_DIR}/libx265.pdb" DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS RelWithDebInfo OPTIONAL NAMELINK_ONLY)
+    endif()
 endif()
 
 if(CMAKE_RC_COMPILER)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: public_x265.patch
Type: text/x-patch
Size: 2311 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20171204/972174ae/attachment-0001.bin>


More information about the x265-devel mailing list