1# 2# Copyright (C) 2024 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17FROM gcc:9 18 19RUN echo 'deb http://deb.debian.org/debian bullseye-backports main' >> /etc/apt/sources.list && \ 20 apt-get update -y && \ 21 apt-get install -y cmake ninja-build 22 23ADD binder_sdk.zip / 24RUN unzip -q -d binder_sdk binder_sdk.zip 25 26WORKDIR /binder_sdk 27RUN CC=gcc CXX=g++ cmake -G Ninja -B build . 28RUN cmake --build build 29 30WORKDIR /binder_sdk/build 31# Alternatively: `ninja test`, but it won't pass parallel argument 32ENTRYPOINT [ "ctest", "--parallel", "32", "--output-on-failure" ] 33