[vlc-commits] [Git][videolan/vlc][master] package/macos: also build contribs out of tree

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Jul 18 05:21:26 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
a72e41ee by Steve Lhomme at 2025-07-18T04:47:35+00:00
package/macos: also build contribs out of tree

If an out of tree build is requested, the contribs should also be out of tree
so the source tree remains clean.

- - - - -


1 changed file:

- extras/package/macosx/build.sh


Changes:

=====================================
extras/package/macosx/build.sh
=====================================
@@ -162,6 +162,11 @@ fi
 make > $out
 spopd
 
+if [ ! -z "$VLCBUILDDIR" ];then
+    mkdir -p $VLCBUILDDIR
+    pushd $VLCBUILDDIR
+fi
+
 #
 # vlc/contribs
 #
@@ -170,7 +175,8 @@ vlcSetSymbolEnvironment
 vlcSetContribEnvironment "$MINIMAL_OSX_VERSION"
 
 info "Building contribs"
-spushd "${vlcroot}/contrib"
+mkdir -p contrib
+spushd "contrib"
 
 case $LICENSE in
     l)
@@ -191,7 +197,7 @@ if [ "$REBUILD" = "yes" ]; then
     rm -rf $HOST_TRIPLET
 fi
 mkdir -p contrib-$HOST_TRIPLET && cd contrib-$HOST_TRIPLET
-../bootstrap --build=$BUILD_TRIPLET --host=$HOST_TRIPLET $CONTRIBFLAGS > $out
+${vlcroot}/contrib/bootstrap --build=$BUILD_TRIPLET --host=$HOST_TRIPLET $CONTRIBFLAGS > $out
 
 make list
 if [ "$CONTRIBFROMSOURCE" != "yes" ]; then
@@ -233,10 +239,6 @@ fi
 spopd
 
 
-if [ ! -z "$VLCBUILDDIR" ];then
-    mkdir -p $VLCBUILDDIR
-    pushd $VLCBUILDDIR
-fi
 #
 # vlc/configure
 #
@@ -260,6 +262,7 @@ if [ "${vlcroot}/configure" -nt Makefile ]; then
   ${vlcroot}/extras/package/macosx/configure.sh \
       --build=$BUILD_TRIPLET \
       --host=$HOST_TRIPLET \
+      --with-contrib=contrib/$HOST_TRIPLET \
       --with-macosx-version-min=$MINIMAL_OSX_VERSION \
       --with-macosx-sdk=$SDKROOT \
       $CONFIGFLAGS \



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a72e41eef352af3c5e91589ab1f1515d03c5d168

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a72e41eef352af3c5e91589ab1f1515d03c5d168
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list