[vlc-commits] macosx/build: add flag to disable debug mode

Felix Paul Kühne git at videolan.org
Sun Nov 10 03:01:08 CET 2019


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sun Nov 10 11:00:28 2019 +0900| [0a53308907f6444a79d7a488c996037b63acafd9] | committer: Felix Paul Kühne

macosx/build: add flag to disable debug mode

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0a53308907f6444a79d7a488c996037b63acafd9
---

 extras/package/macosx/build.sh | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/extras/package/macosx/build.sh b/extras/package/macosx/build.sh
index 3bf377d4a3..0f3d0f67c9 100755
--- a/extras/package/macosx/build.sh
+++ b/extras/package/macosx/build.sh
@@ -37,6 +37,7 @@ OPTIONS:
    -a <arch>     Use the specified arch (default: $ARCH)
    -C            Use the specified VLC build dir
    -b <url>      Enable breakpad support and send crash reports to this URL
+   -d            Disable debug mode (on by default)
 EOF
 
 }
@@ -51,7 +52,7 @@ spopd()
     popd > /dev/null
 }
 
-while getopts "hvrcpi:k:a:j:C:b:" OPTION
+while getopts "hvrcdpi:k:a:j:C:b:" OPTION
 do
      case $OPTION in
          h)
@@ -62,6 +63,9 @@ do
              set +x
              QUIET="yes"
          ;;
+         d)
+             NODEBUG="yes"
+         ;;
          r)
              REBUILD="yes"
          ;;
@@ -197,6 +201,9 @@ CONFIGFLAGS=""
 if [ ! -z "$BREAKPAD" ]; then
      CONFIGFLAGS="$CONFIGFLAGS --with-breakpad=$BREAKPAD"
 fi
+if [ "$NODEBUG" = "yes" ]; then
+     CONFIGFLAGS="$CONFIGFLAGS --disable-debug"
+fi
 
 if [ "${vlcroot}/configure" -nt Makefile ]; then
 
@@ -209,7 +216,6 @@ if [ "${vlcroot}/configure" -nt Makefile ]; then
       $VLC_CONFIGURE_ARGS > $out
 fi
 
-
 #
 # make
 #



More information about the vlc-commits mailing list