Commit cb3e3498 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

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.
parent b6069625
......@@ -349,6 +349,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])
[Build PDB files for windows targets (default off)]))
AS_IF([test "${SYS}" = "mingw32"],[
AS_IF([test "${enable_pdb}" = "yes"], [
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"])
......@@ -364,6 +377,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 Use nasm/yasm only on x86
AC_CHECK_PROGS(X86ASM, [nasm yasm])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment