···2121 FDO_DISTRIBUTION_VERSION: buster
2222 FDO_DISTRIBUTION_TAG: "2019-04-28.0"
23232424+# Variables for build and usage of Debian 10 (Buster) + Android NDK image
2525+.monado.debian:buster-ndk:
2626+ variables:
2727+ FDO_DISTRIBUTION_VERSION: buster
2828+ FDO_DISTRIBUTION_TAG: "2019-04-28.1"
2929+ FDO_REPO_SUFFIX: ndk
3030+2431# Variables for build and usage of Arch Linux image
2532.monado.arch:rolling:
2633 variables:
···7481 # a list of packages to install
7582 FDO_DISTRIBUTION_PACKAGES: "git gcc cmake meson ninja pkgconfig python3 diffutils patch doxygen graphviz eigen hidapi libxrandr mesa glslang vulkan-headers vulkan-icd-loader check glfw-x11 libusb opencv gtk3 ffmpeg v4l-utils qt5-base"
76838484+# Debian Buster + the Android NDK in /opt/android-ndk
8585+# The NDK itself gets installed by .gitlab-ci/ndk:container_prep.sh
8686+ndk:container_prep:
8787+ stage: container_prep
8888+ extends:
8989+ - .monado.debian:buster-ndk # local
9090+ - .monado.container_base # local
9191+ - .fdo.container-build@debian # from ci-templates
9292+ variables:
9393+ # Repo suffix is set in .monado.debian:buster-ndk
9494+ # a list of packages to install
9595+ FDO_DISTRIBUTION_PACKAGES: "git wget unzip cmake meson ninja-build libeigen3-dev python3 pkg-config ca-certificates glslang-tools"
9696+7797format-and-spellcheck:
7898 extends:
7999 - .monado.debian:buster # local
···140160 - .monado.build-meson # local
141161 variables:
142162 MESON_ARGS: -Ddocs=disabled
163163+164164+# Base of Android NDK builds.
165165+# Takes the last :-delimited part of the name as the ABI to build for,
166166+# so you don't need to do anything other than "extends" in the job
167167+.monado.ndk:build-base:
168168+ stage: build
169169+ extends:
170170+ - .monado.debian:buster-ndk # local
171171+ - .fdo.suffixed-image@debian # from ci-templates
172172+ variables:
173173+ ANDROID_PLATFORM: 24
174174+ script:
175175+ - mkdir build
176176+ - pushd build
177177+ # This extracts the ABI from the job name
178178+ - export ABI=$(echo $CI_JOB_NAME | cut --delimiter=":" -f 2)
179179+ # Note we are pointing CMake to the host install of Eigen3 because it's header-only
180180+ # and thus this is safe to do.
181181+ - cmake -GNinja .. -DANDROID_PLATFORM=$ANDROID_PLATFORM -DANDROID_ABI=$ABI -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk/build/cmake/android.toolchain.cmake -DEigen3_DIR=/usr/lib/cmake/eigen3/
182182+ - ninja
183183+184184+ndk:armeabi-v7a:
185185+ extends: .monado.ndk:build-base
186186+187187+ndk:arm64-v8a:
188188+ extends: .monado.ndk:build-base
143189144190###
145191# Pages