[x264-devel] windows: Flag debug builds in the resource file

Henrik Gramner git at videolan.org
Tue Apr 12 20:36:15 CEST 2016


x264 | branch: master | Henrik Gramner <henrik at gramner.com> | Sat Feb  6 18:49:46 2016 +0100| [deae1b1001d134f5babc4fad3208bd951a454951] | committer: Henrik Gramner

windows: Flag debug builds in the resource file

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=deae1b1001d134f5babc4fad3208bd951a454951
---

 configure  |    1 +
 x264res.rc |    4 ++++
 2 files changed, 5 insertions(+)

diff --git a/configure b/configure
index 5b9f8af..732b6c9 100755
--- 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
diff --git a/x264res.rc b/x264res.rc
index 8136ed1..89bd6cc 100644
--- a/x264res.rc
+++ b/x264res.rc
@@ -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



More information about the x264-devel mailing list