[vlc-commits] win32: build.sh: Add breakpad support

Hugo Beauzée-Luyssen git at videolan.org
Sat Dec 23 23:15:13 CET 2017


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Dec 21 18:10:45 2017 +0100| [57e3e13d7d47d47c784b0fc0cd485ad9ac3f9459] | committer: Hugo Beauzée-Luyssen

win32: build.sh: Add breakpad support

(cherry picked from commit 7610a35ae623b72ea84c167e6be947c1dbe62d48)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=57e3e13d7d47d47c784b0fc0cd485ad9ac3f9459
---

 extras/package/win32/build.sh | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/extras/package/win32/build.sh b/extras/package/win32/build.sh
index a9ad76de71..cd305442b4 100755
--- a/extras/package/win32/build.sh
+++ b/extras/package/win32/build.sh
@@ -25,11 +25,12 @@ OPTIONS:
    -c            Create a Prebuilt contrib package (rarely used)
    -l            Enable translations (can be slow)
    -i <n|r|u>    Create an Installer (n: nightly, r: release, u: unsigned release archive)
+   -b <url>      Enable breakpad support and send crash reports to this URL
 EOF
 }
 
 ARCH="x86_64"
-while getopts "hra:pcli:" OPTION
+while getopts "hra:pcli:b:" OPTION
 do
      case $OPTION in
          h)
@@ -55,6 +56,9 @@ do
          i)
              INSTALLER=$OPTARG
          ;;
+         b)
+             BREAKPAD=$OPTARG
+         ;;
      esac
 done
 shift $(($OPTIND - 1))
@@ -112,7 +116,10 @@ export PKG_CONFIG_LIBDIR=$PWD/contrib/$TRIPLET/lib/pkgconfig
 export PATH=$PWD/contrib/$TRIPLET/bin:$PATH
 echo $PATH
 
-./bootstrap
+if [ ! -z "$BREAKPAD" ]; then
+     CONFIGFLAGS="$CONFIGFLAGS --with-breakpad=$BREAKPAD"
+fi
+./bootstrap $CONTRIBFLAGS
 
 info "Configuring VLC"
 mkdir $SHORTARCH || true
@@ -125,6 +132,10 @@ fi
 if [ "$I18N" != "yes" ]; then
      CONFIGFLAGS="$CONFIGFLAGS --disable-nls"
 fi
+if [ ! -z "$BREAKPAD" ]; then
+     CONFIGFLAGS="$CONFIGFLAGS --with-breakpad=$BREAKPAD"
+fi
+
 ../extras/package/win32/configure.sh --host=$TRIPLET $CONFIGFLAGS
 
 info "Compiling"



More information about the vlc-commits mailing list