vlc/vlc-3.0 | branch: master | Steve Lhomme <[email protected]> | Fri Feb 22 15:40:03 2019 +0100| [837088118599de4dc5c7f71f9a07de7b5f71bdfe] | committer: Steve Lhomme
configure: add an option to generate PDB files when building This will only be enabled when building windows targets and will only work when compiling with Clang. (cherry picked from commit cb3e3498d8269e21490dc4db5a98b89523a0b00e) (rebased) rebased: - the code around the added AM_CONDITIONAL is different in this branch Signed-off-by: Steve Lhomme <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=837088118599de4dc5c7f71f9a07de7b5f71bdfe --- configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configure.ac b/configure.ac index 2e0d2eca5b..6ac9a9f256 100644 --- a/configure.ac +++ b/configure.ac @@ -336,6 +336,19 @@ AS_IF([test "${SYS}" = "mingw32"],[ ]) AC_DEFINE_UNQUOTED(VLC_WINSTORE_APP, ${vlc_winstore_app}, [Define to 1 if you want to build for Windows Store apps]) +vlc_build_pdb=0 +AC_ARG_ENABLE([pdb], + AS_HELP_STRING([--enable-pdb], + [Build PDB files for windows targets (default off)])) +AS_IF([test "${SYS}" = "mingw32"],[ + AS_IF([test "${enable_pdb}" = "yes"], [ + vlc_build_pdb=1 + AX_APPEND_FLAG([-g -gcodeview],[CFLAGS]) + AX_APPEND_FLAG([-g -gcodeview],[CXXFLAGS]) + LDFLAGS="${LDFLAGS} -Wl,-pdb=" + ],[]) +]) + AM_CONDITIONAL(HAVE_LINUX, test "${SYS}" = "linux") AM_CONDITIONAL(HAVE_OS2, test "${SYS}" = "os2") @@ -351,6 +364,7 @@ AM_CONDITIONAL(HAVE_WIN32, test "${SYS}" = "mingw32") AM_CONDITIONAL(HAVE_WIN64, test "${HAVE_WIN64}" = "1") dnl Only used for the packaging AM_CONDITIONAL([HAVE_WINSTORE], [test "$vlc_winstore_app" = "1"]) AM_CONDITIONAL([HAVE_WIN32_DESKTOP], [test "${SYS}" = "mingw32" -a "$vlc_winstore_app" = "0"]) +AM_CONDITIONAL([ENABLE_PDB], [test "$vlc_build_pdb" = "1"]) dnl dnl Sadly autoconf does not think about testing foo.exe when ask to test _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
