windows: Flag debug builds in the resource file
authorHenrik Gramner <henrik@gramner.com>
Sat, 6 Feb 2016 17:49:46 +0000 (18:49 +0100)
committerHenrik Gramner <henrik@gramner.com>
Tue, 12 Apr 2016 15:10:39 +0000 (17:10 +0200)
configure
x264res.rc

index 5b9f8af..732b6c9 100755 (executable)
--- a/configure
+++ b/configure
@@ -1171,6 +1171,7 @@ fi
 
 if [ "$debug" = "yes" ]; then
     CFLAGS="-O1 -g $CFLAGS"
+    RCFLAGS="$RCFLAGS -DDEBUG"
 else
     CFLAGS="-O3 -ffast-math $CFLAGS"
 fi
index 8136ed1..89bd6cc 100644 (file)
@@ -39,7 +39,11 @@ VS_VERSION_INFO VERSIONINFO
 FILEVERSION     0, X264_BUILD, X264_REV, X264_REV_DIFF
 PRODUCTVERSION  0, X264_BUILD, X264_REV, X264_REV_DIFF
 FILEFLAGSMASK   VS_FFI_FILEFLAGSMASK
+#ifdef DEBUG
+FILEFLAGS       VS_FF_DEBUG
+#else
 FILEFLAGS       0
+#endif
 FILEOS          VOS_NT_WINDOWS32 /* Identical for x86-64 */
 #ifdef DLL
 FILETYPE        VFT_DLL