From: Henrik Gramner Date: Sat, 6 Feb 2016 17:49:46 +0000 (+0100) Subject: windows: Flag debug builds in the resource file X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=deae1b1001d134f5babc4fad3208bd951a454951;p=x264 windows: Flag debug builds in the resource file --- 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