]> git.sesse.net Git - x264/commitdiff
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 5b9f8af0b5bec87a0e1bfd5b3c11af9f2dfcd368..732b6c942e6a391b8f8d5db2d1f173e2627411da 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 8136ed116dcdb93db97c0e3d51e409e57a05e159..89bd6ccf7629795fa2f521b52b6dba22b3858eb9 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