vlc/vlc-3.0 | branch: master | Steve Lhomme <[email protected]> | Tue May 21 11:25:00 2019 +0200| [cd1870e22da32765f20661ec9cf28470f620d5b9] | committer: Steve Lhomme
win32: build.sh: add an option to build with PDB (cherry picked from commit 377b00bf1ed90478ebff1753aa665d0f5feb8cf0) (rebased) rebased: - this branch doesn't have the MSI only option Signed-off-by: Steve Lhomme <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=cd1870e22da32765f20661ec9cf28470f620d5b9 --- extras/package/win32/build.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/extras/package/win32/build.sh b/extras/package/win32/build.sh index 9e2982d65f..173d96d6e0 100755 --- a/extras/package/win32/build.sh +++ b/extras/package/win32/build.sh @@ -27,11 +27,12 @@ OPTIONS: -i <n|r|u> Create an Installer (n: nightly, r: release, u: unsigned release archive) -s Interactive shell (get correct environment variables for build) -b <url> Enable breakpad support and send crash reports to this URL + -d Create PDB files during the build EOF } ARCH="x86_64" -while getopts "hra:pcli:sb:" OPTION +while getopts "hra:pcli:sb:d" OPTION do case $OPTION in h) @@ -63,6 +64,9 @@ do b) BREAKPAD=$OPTARG ;; + d) + WITH_PDB="yes" + ;; esac done shift $(($OPTIND - 1)) @@ -118,6 +122,9 @@ info "Building contribs" echo $PATH mkdir -p contrib/contrib-$SHORTARCH && cd contrib/contrib-$SHORTARCH +if [ ! -z "$WITH_PDB" ]; then + CONTRIBFLAGS="$CONTRIBFLAGS --enable-pdb" +fi if [ ! -z "$BREAKPAD" ]; then CONTRIBFLAGS="$CONTRIBFLAGS --enable-breakpad" fi @@ -158,6 +165,9 @@ fi if [ ! -z "$BREAKPAD" ]; then CONFIGFLAGS="$CONFIGFLAGS --with-breakpad=$BREAKPAD" fi +if [ ! -z "$WITH_PDB" ]; then + CONFIGFLAGS="$CONFIGFLAGS --enable-pdb" +fi ../extras/package/win32/configure.sh --host=$TRIPLET $CONFIGFLAGS _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
