mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Migrate the build system to cmake
This commit is contained in:
@ -14,15 +14,17 @@ RUN \
|
||||
apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
cmake \
|
||||
desktop-file-utils \
|
||||
gcc \
|
||||
g++ \
|
||||
git \
|
||||
qt6-tools-dev \
|
||||
qt6-base-dev-tools \
|
||||
qmake6 \
|
||||
qt6-base-dev \
|
||||
qt6-multimedia-dev \
|
||||
qt6-tools-dev-tools \
|
||||
libgl-dev \
|
||||
qt6-l10n-tools \
|
||||
qt6-declarative-dev \
|
||||
libqt6svg6-dev \
|
||||
@ -54,16 +56,15 @@ RUN git clone https://github.com/YACReader/yacreader.git /src/git && \
|
||||
cd /src/git && \
|
||||
git checkout $YACR_VERSION
|
||||
|
||||
# get 7zip source
|
||||
RUN cd /src/git/compressed_archive && \
|
||||
wget "https://github.com/YACReader/yacreader-7z-deps/blob/main/7z2301-src.7z?raw=true" -O /src/git/compressed_archive/7z2301-src.7z && \
|
||||
7z x /src/git/compressed_archive/7z2301-src.7z -o/src/git/compressed_archive/lib7zip
|
||||
|
||||
# build yacreaderlibraryserver
|
||||
RUN cd /src/git/YACReaderLibraryServer && \
|
||||
qmake6 PREFIX=/app CONFIG+="7zip server_standalone" YACReaderLibraryServer.pro && \
|
||||
make && \
|
||||
make install
|
||||
# build yacreaderlibraryserver (7zip source is auto-downloaded by CMake FetchContent)
|
||||
RUN cd /src/git && \
|
||||
cmake -B build \
|
||||
-DCMAKE_INSTALL_PREFIX=/app \
|
||||
-DDECOMPRESSION_BACKEND=7zip \
|
||||
-DBUILD_SERVER_STANDALONE=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release && \
|
||||
cmake --build build --parallel && \
|
||||
cmake --install build
|
||||
|
||||
# install 7z.so with RAR support
|
||||
RUN echo "Building and installing 7z.so with RAR support..." && \
|
||||
|
||||
Reference in New Issue
Block a user