mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-24 19:19:55 +00:00
add docker files, improve dbus interface
This commit is contained in:
11
.docker/Dockerfile-arch
Normal file
11
.docker/Dockerfile-arch
Normal file
@ -0,0 +1,11 @@
|
||||
FROM base/archlinux
|
||||
|
||||
RUN pacman -Sy
|
||||
|
||||
# toolchain
|
||||
RUN pacman -S --noconfirm base-devel cmake extra-cmake-modules python
|
||||
# kf5 and qt5 libraries
|
||||
RUN pacman -S --noconfirm plasma-framework
|
||||
|
||||
# required by tests
|
||||
RUN pacman -S --noconfirm xorg-server-xvfb
|
12
.docker/Dockerfile-ubuntu
Normal file
12
.docker/Dockerfile-ubuntu
Normal file
@ -0,0 +1,12 @@
|
||||
FROM ubuntu:16.04
|
||||
|
||||
RUN apt-get update
|
||||
# toolchain
|
||||
RUN apt-get install -y cmake extra-cmake-modules g++ git gettext
|
||||
# kf5 and qt5 libraries
|
||||
RUN apt-get install -y libkf5i18n-dev libkf5notifications-dev libkf5service-dev \
|
||||
libkf5windowsystem-dev plasma-framework-dev qtbase5-dev qtdeclarative5-dev \
|
||||
plasma-framework
|
||||
|
||||
# required by tests
|
||||
RUN apt-get install -y xvfb
|
14
.docker/build-arch.sh
Executable file
14
.docker/build-arch.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf build-arch
|
||||
mkdir build-arch
|
||||
|
||||
# build
|
||||
cd build-arch
|
||||
cmake -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DCMAKE_BUILD_TYPE=Optimization -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_FUTURE=ON -DBUILD_TESTING=ON ../sources
|
||||
make
|
||||
|
||||
# tests
|
||||
xvfb-run make test
|
18
.docker/build-ubuntu.sh
Executable file
18
.docker/build-ubuntu.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf build-ubuntu
|
||||
mkdir build-ubuntu
|
||||
|
||||
# patches
|
||||
git apply patches/qt5.6-qversionnumber.patch
|
||||
git apply patches/qt5.5-qstringlist-and-qinfo.patch
|
||||
|
||||
# build
|
||||
cd build-ubuntu
|
||||
cmake -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DCMAKE_BUILD_TYPE=Optimization -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_FUTURE=ON -DBUILD_TESTING=ON ../sources
|
||||
make
|
||||
|
||||
# tests
|
||||
xvfb-run make test
|
Reference in New Issue
Block a user