mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 12:27:52 +00:00
Use ninja instead of make in build.
This commit is contained in:
parent
15aa99836b
commit
558891aab5
7
.github/workflows/build-and-test-linux.yaml
vendored
7
.github/workflows/build-and-test-linux.yaml
vendored
@ -86,6 +86,7 @@ jobs:
|
|||||||
libxmmsclient-dev \
|
libxmmsclient-dev \
|
||||||
libxnvctrl-dev \
|
libxnvctrl-dev \
|
||||||
ncurses-dev \
|
ncurses-dev \
|
||||||
|
ninja \
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
- name: Install libc++
|
- name: Install libc++
|
||||||
if: matrix.compiler == 'clang'
|
if: matrix.compiler == 'clang'
|
||||||
@ -112,7 +113,7 @@ jobs:
|
|||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. \
|
cmake .. -G Ninja \
|
||||||
-DBUILD_AUDACIOUS=ON \
|
-DBUILD_AUDACIOUS=ON \
|
||||||
-DBUILD_HTTP=ON \
|
-DBUILD_HTTP=ON \
|
||||||
-DBUILD_ICAL=ON \
|
-DBUILD_ICAL=ON \
|
||||||
@ -137,7 +138,7 @@ jobs:
|
|||||||
-DMAINTAINER_MODE=ON
|
-DMAINTAINER_MODE=ON
|
||||||
- name: Compile
|
- name: Compile
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: make -j5
|
run: ninja
|
||||||
- name: Test
|
- name: Test
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: make test
|
run: ninja test
|
||||||
|
9
.github/workflows/build-and-test-macos.yaml
vendored
9
.github/workflows/build-and-test-macos.yaml
vendored
@ -22,7 +22,8 @@ jobs:
|
|||||||
librsvg \
|
librsvg \
|
||||||
libxft \
|
libxft \
|
||||||
libxinerama \
|
libxinerama \
|
||||||
lua
|
lua \
|
||||||
|
ninja
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Configure with CMake
|
- name: Configure with CMake
|
||||||
@ -30,13 +31,13 @@ jobs:
|
|||||||
set -x
|
set -x
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. \
|
cmake .. -G Ninja \
|
||||||
-DMAINTAINER_MODE=ON \
|
-DMAINTAINER_MODE=ON \
|
||||||
-DBUILD_WAYLAND=OFF \
|
-DBUILD_WAYLAND=OFF \
|
||||||
-DBUILD_TESTS=ON
|
-DBUILD_TESTS=ON
|
||||||
- name: Compile
|
- name: Compile
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: make -j5
|
run: ninja
|
||||||
- name: Test
|
- name: Test
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: make test
|
run: ninja test
|
||||||
|
@ -37,6 +37,7 @@ RUN apt-get update \
|
|||||||
libxmmsclient-dev \
|
libxmmsclient-dev \
|
||||||
libxnvctrl-dev \
|
libxnvctrl-dev \
|
||||||
make \
|
make \
|
||||||
|
ninja \
|
||||||
patch \
|
patch \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
@ -59,7 +60,7 @@ WORKDIR /conky/build
|
|||||||
ARG X11=yes
|
ARG X11=yes
|
||||||
|
|
||||||
RUN sh -c 'if [ "$X11" = "yes" ] ; then \
|
RUN sh -c 'if [ "$X11" = "yes" ] ; then \
|
||||||
cmake \
|
cmake -G Ninja \
|
||||||
-DCMAKE_C_COMPILER=clang \
|
-DCMAKE_C_COMPILER=clang \
|
||||||
-DCMAKE_CXX_COMPILER=clang++ \
|
-DCMAKE_CXX_COMPILER=clang++ \
|
||||||
-DCMAKE_INSTALL_PREFIX=/opt/conky \
|
-DCMAKE_INSTALL_PREFIX=/opt/conky \
|
||||||
@ -81,7 +82,7 @@ RUN sh -c 'if [ "$X11" = "yes" ] ; then \
|
|||||||
-DBUILD_XMMS2=ON \
|
-DBUILD_XMMS2=ON \
|
||||||
../ \
|
../ \
|
||||||
; else \
|
; else \
|
||||||
cmake \
|
cmake -G Ninja \
|
||||||
-DCMAKE_C_COMPILER=clang \
|
-DCMAKE_C_COMPILER=clang \
|
||||||
-DCMAKE_CXX_COMPILER=clang++ \
|
-DCMAKE_CXX_COMPILER=clang++ \
|
||||||
-DCMAKE_INSTALL_PREFIX=/opt/conky \
|
-DCMAKE_INSTALL_PREFIX=/opt/conky \
|
||||||
@ -103,8 +104,8 @@ RUN sh -c 'if [ "$X11" = "yes" ] ; then \
|
|||||||
-DBUILD_XMMS2=ON \
|
-DBUILD_XMMS2=ON \
|
||||||
../ \
|
../ \
|
||||||
; fi' \
|
; fi' \
|
||||||
&& make -j5 all \
|
&& ninja \
|
||||||
&& make -j5 install
|
&& ninja install
|
||||||
|
|
||||||
FROM ubuntu:jammy
|
FROM ubuntu:jammy
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ pushd "$BUILD_DIR"
|
|||||||
|
|
||||||
# configure build files with cmake
|
# configure build files with cmake
|
||||||
# we need to explicitly set the install prefix, as CMake's default is /usr/local for some reason...
|
# we need to explicitly set the install prefix, as CMake's default is /usr/local for some reason...
|
||||||
cmake \
|
cmake -G Ninja \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DRELEASE=ON \
|
-DRELEASE=ON \
|
||||||
-DBUILD_AUDACIOUS=ON \
|
-DBUILD_AUDACIOUS=ON \
|
||||||
@ -53,11 +53,12 @@ cmake \
|
|||||||
-DBUILD_X11=ON \
|
-DBUILD_X11=ON \
|
||||||
-DBUILD_XMMS2=ON \
|
-DBUILD_XMMS2=ON \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
"$REPO_ROOT"
|
"$REPO_ROOT" \
|
||||||
|
--target install -- DESTDIR=AppDir
|
||||||
|
|
||||||
# build project and install files into AppDir
|
# build project and install files into AppDir
|
||||||
make -j4
|
ninja
|
||||||
make install DESTDIR=AppDir
|
ninja install
|
||||||
|
|
||||||
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user