Commit 0eddd8fe authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

medialibrary-win64: Use win32 build script instead of a manual one

parent 691eda85
Pipeline #68050 passed with stage
in 17 minutes and 42 seconds
FROM registry.videolan.org/vlc-debian-llvm-mingw:20201201162707 FROM registry.videolan.org/vlc-debian-llvm-mingw:20201201162707
ENV IMAGE_DATE=202102121949 ENV IMAGE_DATE=202102151627
USER root USER root
RUN mkdir -p /build/ml && chown videolan /build && chown videolan /build/ml && \ RUN mkdir -p /build/ml && chown videolan /build && chown videolan /build/ml && \
...@@ -17,24 +17,11 @@ RUN TARGET_TRIPLE=x86_64-w64-mingw32 \ ...@@ -17,24 +17,11 @@ RUN TARGET_TRIPLE=x86_64-w64-mingw32 \
mkdir -p /build/ml && cd /build/ml && \ mkdir -p /build/ml && cd /build/ml && \
git clone --depth=1 https://git.videolan.org/git/vlc.git && \ git clone --depth=1 https://git.videolan.org/git/vlc.git && \
cd vlc && \ cd vlc && \
cd extras/tools && ./bootstrap && make -j`nproc` && \ ./extras/package/win32/build.sh -z -a x86_64 -o /prefix/ && \
make -j`nproc` .buildlibtool .buildcmake .buildmeson && \ find /prefix/lib -name '*.la' -delete && \
export PATH=`pwd`/build/bin:$PATH && cd ../../ && \
cd contrib && mkdir win64 && cd win64 && \
../bootstrap --host=$TARGET_TRIPLE --disable-qt --disable-skins2 \
--disable-lua --disable-protobuf --disable-gettext \
--disable-qtdeclarative --disable-qtgraphicaleffects --disable-qtquickcontrols \
--disable-qtquickcontrols2 --disable-qtsvg --disable-libplacebo && \
make -j`nproc` && \
cd /build/ml/vlc && ./bootstrap && mkdir build && cd build && \
../configure --host=$TARGET_TRIPLE \
--disable-lua --disable-qt --disable-skins2 \
--disable-nls --disable-aom \
--prefix=/prefix && \
make -j`nproc` && make install && \
mkdir -p /prefix/dll && \ mkdir -p /prefix/dll && \
cp src/.libs/libvlccore.dll /prefix/dll/ && \ cp win64/src/.libs/libvlccore.dll /prefix/dll/ && \
cp lib/.libs/libvlc.dll /prefix/dll && \ cp win64/lib/.libs/libvlc.dll /prefix/dll && \
cd /build/ml && wget -q https://www.sqlite.org/2021/$SQLITE_VERSION.tar.gz && \ cd /build/ml && wget -q https://www.sqlite.org/2021/$SQLITE_VERSION.tar.gz && \
echo $SQLITE_SHA256 $SQLITE_VERSION.tar.gz | sha256sum -c && \ echo $SQLITE_SHA256 $SQLITE_VERSION.tar.gz | sha256sum -c && \
tar xzf $SQLITE_VERSION.tar.gz && cd $SQLITE_VERSION && \ tar xzf $SQLITE_VERSION.tar.gz && cd $SQLITE_VERSION && \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment