...
 
Commits (3)
......@@ -17,9 +17,10 @@ RUN mkdir /opt/osxcross && \
wget -O tarballs/MacOSX10.11.sdk.tar.xz https://dl.dropboxusercontent.com/s/x5qzef4txpxi6ie/MacOSX10.11.sdk.tar.xz && \
UNATTENDED=1 PORTABLE=true ./build.sh
ENV PATH $PATH:/opt/osxcross/target/bin
ENV PATH $PATH:/opt/osxcross/target/bin:/var/opt/kdesrcbuild
ENV MACOSX_DEPLOYMENT_TARGET=10.11
ENV export OSXCROSS_MP_INC=1
ENV OSXCROSS_HOST=x86_64-apple-darwin15
RUN apt-get install -y make ccache qt5-default qttools5-dev-tools p7zip-full python3-requests qtdeclarative5-dev-tools
......@@ -33,7 +34,8 @@ RUN mkdir -p /opt/osxcross/target/macports/pkgs/opt/local/ && cd /tmp/ && \
RUN echo 4 | osxcross-macports install openssl zlib mysql57-connector-cpp && \
mkdir -p /usr/local/mysql/lib/ && ln /opt/osxcross/target/macports/pkgs/opt/local/lib/mysql57/mysql/libmysqlclient.20.dylib /usr/local/mysql/lib/libmysqlclient.20.dylib && \
mkdir -p /opt/local/lib/ && ln /opt/osxcross/target/macports/pkgs/opt/local/lib/libz.1.dylib /opt/local/lib/libz.1.dylib && \
ln /opt/osxcross/target/macports/pkgs/opt/local/lib/libz.1.2.11.dylib /opt/local/lib/libz.1.2.11.dylib
ln /opt/osxcross/target/macports/pkgs/opt/local/lib/libz.1.2.11.dylib /opt/local/lib/libz.1.2.11.dylib && \
rm /opt/osxcross/target/macports/{cache,tmp} -rf
RUN sed -i "s,$(grep _GL_INCDIRS /opt/osxcross/target/macports/pkgs/opt/local/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake | head -n 1),set(_GL_INCDIRS /opt/osxcross/target/SDK/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/),g" /opt/osxcross/target/macports/pkgs/opt/local/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake
RUN sed -i "s,$(grep CMAKE_FIND_ROOT_PATH_MODE_PACKAGE /opt/osxcross/target/toolchain.cmake | head -n 1),set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE BOTH),g" /opt/osxcross/target/toolchain.cmake
......@@ -49,12 +51,19 @@ RUN rm -rf '/opt/osxcross/target/macports/pkgs/opt/local/bin/'* && \
RUN git clone https://github.com/liushuyu/osxcross-extras && cd osxcross-extras && \
./install_extras.sh
# Install kaidan dependencies
RUN apt-get install extra-cmake-modules inkscape optipng icnsutils -y
# Install kaidan & kdesrc-build dependencies
RUN apt-get install --no-install-recommends extra-cmake-modules inkscape optipng icnsutils libio-socket-ssl-perl libyaml-libyaml-perl gperf bzr libxrender-dev libxcb-keysyms1-dev doxygen -y
# Update ECM
RUN git clone https://anongit.kde.org/extra-cmake-modules && cd extra-cmake-modules && \
cmake -DCMAKE_INSTALL_PREFIX=/usr . && make install
# Install KF5
COPY kdesrc-buildrc /root/.kdesrc-buildrc
RUN $(/opt/osxcross/target/bin/x86_64-apple-darwin15-osxcross-conf) && \
git clone git://anongit.kde.org/kdesrc-build /var/opt/kdesrcbuild && \
/var/opt/kdesrcbuild/kdesrc-build --include-dependencies \
extra-cmake-modules \
kirigami \
zxing-cpp \
qxmpp && \
rm -rf ~/kde/
# Clean up
RUN rm /tmp/* -r
global
# Paths
kdedir /opt/osxcross/target/macports/pkgs/opt/local/ # Where to install KF5-based software
qtdir /opt/osxcross/target/macports/pkgs/opt/local/ # Where to find Qt5
source-dir ~/kde/src # Where sources are downloaded
build-dir ~/kde/build # Where the source build is run
ignore-kde-structure true # Use flat structure
# Will pull in KDE-based dependencies only, to save you the trouble of
# listing them all below
include-dependencies true
cmake-options -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/opt/osxcross/target/toolchain.cmake -DOSXCROSS_TARGET=x86_64-apple-darwin15 -DOSXCROSS_SDK=/opt/osxcross/target/SDK/MacOSX10.11.sdk/
make-options -j2
end global
# Qt-using middleware libraries
include /var/opt/kdesrcbuild/custom-qt5-libs-build-include
# KF5 and Plasma :)
include /var/opt/kdesrcbuild/kf5-qt5-build-include
# Kaidan
module zxing-cpp
repository https://github.com/nu-book/zxing-cpp
branch master
cmake-options -DLINK_CPP_STATICALLY=OFF -DBUILD_SHARED_LIBRARY=ON
end module
module qxmpp
repository git://github.com/qxmpp-project/qxmpp.git
branch master
cmake-options -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF
end module
module-set phonon
repository kde-projects
cmake-options -DPHONON_BUILD_PHONON4QT5=ON -DPHONON_NO_DBUS=ON
# We avoid using just "phonon" as kdesrc-build will include all submodules
# that have phonon as part of their path. (i.e. it means phonon/*), but we
# don't want all the phonon backends.
use-modules phonon/phonon phonon-vlc phonon-gstreamer
end module-set
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2015-03-05 14:54:45 +0000
+++ CMakeLists.txt 2019-07-11 21:06:19 +0000
@@ -1,5 +1,5 @@
+cmake_minimum_required(VERSION 3.3)
project(dbusmenu-qt)
-cmake_minimum_required(VERSION 2.8.11)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules")
# Build options
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cb15e9d1..6f09ba65 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,8 @@
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
project(Phonon)
-cmake_minimum_required(VERSION 2.8.9 FATAL_ERROR)
+cmake_policy(SET CMP0022 OLD)
+
add_definitions(-DPHONON_BUILD_WITH_CMAKE)
option(PHONON_ASSERT_STATES "Enable code to assert backend state transitions" ON)
......@@ -13,6 +13,17 @@ RUN git clone https://anongit.kde.org/extra-cmake-modules && cd extra-cmake-modu
# Workaround for broken symlinks
RUN rm /usr/lib/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64* && for tool in /usr/lib/mxe/usr/bin/*; do ln -s $tool /usr/lib/mxe/usr/x86_64-pc-linux-gnu/bin/; done
# Install kaidan & kdesrc-build dependencies
RUN apt-get install --no-install-recommends extra-cmake-modules inkscape optipng icnsutils libio-socket-ssl-perl libyaml-libyaml-perl gperf bzr libxrender-dev libxcb-keysyms1-dev doxygen -y
# Install KF5
COPY kdesrc-buildrc /root/.kdesrc-buildrc
RUN git clone git://anongit.kde.org/kdesrc-build /var/opt/kdesrcbuild && \
/var/opt/kdesrcbuild/kdesrc-build --include-dependencies \
extra-cmake-modules \
qxmpp \
zxing-cpp && \
rm -rf ~/kde/ # /var/opt/kdesrcbuild/
ENV MXE_ROOT=/usr/lib/mxe/
ENV MXE_TARGET=x86_64-w64-mingw32.static
......
global
# Paths
kdedir /usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5 # Where to install KF5-based software
qtdir /usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5 # Where to find Qt5
source-dir ~/kde/src # Where sources are downloaded
build-dir ~/kde/build # Where the source build is run
ignore-kde-structure true # Use flat structure
# Will pull in KDE-based dependencies only, to save you the trouble of
# listing them all below
include-dependencies true
cmake-options -DCMAKE_BUILD_TYPE=RelWithDebugInfo -DCMAKE_TOOLCHAIN_FILE="/usr/lib/mxe/usr/x86_64-w64-mingw32.static/share/cmake/mxe-conf.cmake" -C"/usr/lib/mxe/usr/share/cmake/modules/TryRunResults.cmake" -DSTATIC_LIBRARY=1
make-options -j2
end global
# Qt-using middleware libraries
include /var/opt/kdesrcbuild/custom-qt5-libs-build-include
# KF5 and Plasma :)
include /var/opt/kdesrcbuild/kf5-qt5-build-include
# Kaidan
module zxing-cpp
repository https://github.com/nu-book/zxing-cpp
branch master
cmake-options -DLINK_CPP_STATICALLY=OM -DBUILD_SHARED_LIBRARY=OFF
end module
module qxmpp
repository git://github.com/qxmpp-project/qxmpp.git
branch master
cmake-options -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF
end module