From deae1b1001d134f5babc4fad3208bd951a454951 Mon Sep 17 00:00:00 2001 From: Henrik Gramner Date: Sat, 6 Feb 2016 18:49:46 +0100 Subject: [PATCH] windows: Flag debug builds in the resource file --- configure | 1 + x264res.rc | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/configure b/configure index 5b9f8af0..732b6c94 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 8136ed11..89bd6ccf 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 -- 2.39.2