Changeset View
Changeset View
Standalone View
Standalone View
system-images/android/sdk/Dockerfile
1 | # https://github.com/rabits/dockerfiles/blob/master/5.9-android/Dockerfile | 1 | # https://github.com/rabits/dockerfiles/blob/master/5.10-android/Dockerfile | ||
---|---|---|---|---|---|
2 | FROM rabits/qt:5.9-android | 2 | FROM rabits/qt:5.10-android | ||
3 | 3 | | |||
4 | LABEL Description="KDE Android SDK" | 4 | LABEL Description="KDE Android SDK" | ||
5 | MAINTAINER Aleix Pol Gonzalez | 5 | MAINTAINER Aleix Pol Gonzalez | ||
6 | 6 | | |||
7 | USER root | 7 | USER root | ||
8 | RUN apt-get -qq update && apt-get install -qq \ | 8 | RUN apt-get -qq update && apt-get install -qq \ | ||
9 | cmake cmake-curses-gui \ | 9 | cmake cmake-curses-gui \ | ||
10 | libxml-simple-perl \ | 10 | libxml-simple-perl \ | ||
Show All 12 Lines | |||||
23 | USER user | 23 | USER user | ||
24 | RUN mkdir /opt/kdeandroid-deps | 24 | RUN mkdir /opt/kdeandroid-deps | ||
25 | RUN mkdir /opt/nativetooling | 25 | RUN mkdir /opt/nativetooling | ||
26 | 26 | | |||
27 | ENV ANDROID_NDK $ANDROID_NDK_ROOT | 27 | ENV ANDROID_NDK $ANDROID_NDK_ROOT | ||
28 | COPY gitconfig $HOME/.gitconfig | 28 | COPY gitconfig $HOME/.gitconfig | ||
29 | 29 | | |||
30 | # pull some generally required deps | 30 | # pull some generally required deps | ||
31 | RUN GIT_EXTRA="--single-branch --branch 5.9" /opt/helpers/build-qt qtscript git://code.qt.io/qt/qtscript.git | 31 | RUN GIT_EXTRA="--single-branch --branch 5.10" /opt/helpers/build-qt qtscript git://code.qt.io/qt/qtscript.git | ||
32 | RUN /opt/helpers/build-cmake-native extra-cmake-modules kde:extra-cmake-modules -DCMAKE_INSTALL_PREFIX=/opt/kdeandroid-deps -DCMAKE_PREFIX_PATH="$QT_ANDROID;/opt/kdeandroid-deps" | 32 | RUN /opt/helpers/build-cmake-native extra-cmake-modules kde:extra-cmake-modules -DCMAKE_INSTALL_PREFIX=/opt/kdeandroid-deps -DCMAKE_PREFIX_PATH="$QT_ANDROID;/opt/kdeandroid-deps" | ||
33 | RUN /opt/helpers/build-cmake libintl-lite https://github.com/j-jorge/libintl-lite.git | 33 | RUN /opt/helpers/build-cmake libintl-lite https://github.com/j-jorge/libintl-lite.git | ||
34 | 34 | | |||
35 | # compile kf5 tooling | 35 | # compile kf5 tooling | ||
36 | RUN cd && git clone git://code.qt.io/qt/qtbase.git --single-branch --branch 5.9 && cd qtbase \ | 36 | RUN cd && git clone git://code.qt.io/qt/qtbase.git --single-branch --branch 5.10 && cd qtbase \ | ||
37 | && QMAKESPEC= ./configure -prefix /opt/nativetooling -opensource -confirm-license -no-gui -release -optimize-size -nomake tests -nomake examples -no-feature-concurrent \ | 37 | && QMAKESPEC= ./configure -prefix /opt/nativetooling -opensource -confirm-license -no-gui -release -optimize-size -nomake tests -nomake examples -no-feature-concurrent \ | ||
38 | && QMAKESPEC= make -j4 && QMAKESPEC= make install && rm -rf ~/qtbase | 38 | && QMAKESPEC= make -j4 && QMAKESPEC= make install && rm -rf ~/qtbase | ||
39 | RUN /opt/helpers/build-cmake-native kconfig kde:kconfig -DCMAKE_INSTALL_PREFIX=/opt/nativetooling -DBUILD_SHARED_LIBS=OFF -DCMAKE_PREFIX_PATH=/opt/kdeandroid-deps/ -DBUILD_TESTING=OFF -DQt5_DIR=/opt/nativetooling/lib/cmake/Qt5 -DKCONFIG_USE_GUI=OFF | 39 | RUN /opt/helpers/build-cmake-native kconfig kde:kconfig -DCMAKE_INSTALL_PREFIX=/opt/nativetooling -DBUILD_SHARED_LIBS=OFF -DCMAKE_PREFIX_PATH=/opt/kdeandroid-deps/ -DBUILD_TESTING=OFF -DQt5_DIR=/opt/nativetooling/lib/cmake/Qt5 -DKCONFIG_USE_GUI=OFF | ||
40 | RUN /opt/helpers/build-cmake-native kcoreaddons kde:kcoreaddons -DCMAKE_INSTALL_PREFIX=/opt/nativetooling -DBUILD_SHARED_LIBS=OFF -DCMAKE_PREFIX_PATH=/opt/kdeandroid-deps/ -DBUILD_TESTING=OFF -DQt5Core_DIR=/opt/nativetooling/lib/cmake/Qt5Core -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=ON | 40 | RUN /opt/helpers/build-cmake-native kcoreaddons kde:kcoreaddons -DCMAKE_INSTALL_PREFIX=/opt/nativetooling -DBUILD_SHARED_LIBS=OFF -DCMAKE_PREFIX_PATH=/opt/kdeandroid-deps/ -DBUILD_TESTING=OFF -DQt5Core_DIR=/opt/nativetooling/lib/cmake/Qt5Core -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=ON | ||
41 | 41 | | |||
42 | COPY build-generic build-eigen target-from-manifest.py /opt/helpers/ | 42 | COPY build-generic build-eigen target-from-manifest.py /opt/helpers/ |