1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

Add WXDEBUG_LEVEL=0 to non-debug builds

This commit is contained in:
Leland Lucius
2015-07-29 14:44:51 -05:00
parent f2d87803d3
commit e869099643
12 changed files with 590 additions and 124 deletions

View File

@@ -45,18 +45,6 @@ CXXFLAGS="$cxxflags_save"
dnl Build Options
AC_ARG_ENABLE(static-wx,
[AS_HELP_STRING([--enable-static-wx],
[link wx statically [default=no]])],
static_wx_preference="--static=$enableval",
static_wx_preference="")
AC_ARG_ENABLE(unicode,
[AS_HELP_STRING([--enable-unicode],
[enable unicode support [default=yes]])],
unicode_preference="--unicode=$enableval",
unicode_preference="--unicode=yes")
AC_ARG_ENABLE(debug,
[AS_HELP_STRING([--enable-debug],
[enable debug support [default=no]])],
@@ -68,17 +56,20 @@ AC_ARG_WITH(wx-version,
[select wxWidgets version (if both installed) [2.8,]])],
wx_preference="--version=$withval",
wx_preference="")
dnl Right now only support wx 2.8
dnl Right now only support wx 3.0
dnl ----------------------------------------------------
dnl If user asked for debug, put debug in compiler flags
dnl ----------------------------------------------------
if test "$debug_preference" = "yes"; then
if test x"$debug_preference" = "xyes" ; then
dnl we want debuging on
AC_MSG_NOTICE([Adding -g for debugging to CFLAGS and CXXFLAGS ...])
CFLAGS="${CFLAGS} -g "
CXXFLAGS="${CXXFLAGS} -g "
CFLAGS="${CFLAGS} -g -DWXDEBUG_LEVEL=1"
CXXFLAGS="${CXXFLAGS} -g -DWXDEBUG_LEVEL=1"
else
CFLAGS="${CFLAGS} -DWXDEBUG_LEVEL=0"
CXXFLAGS="${CXXFLAGS} -DWXDEBUG_LEVEL=0"
fi
dnl --------------------------------------------------------------------------