snapcraft.yaml 1.5 KB
Newer Older
S
Simon Fels 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
name: anbox
version: 1
summary: Android in a Box
description: |
  Runtime for Android applications which runs a full Android system
  in a container using Linux namespaces (user, ipc, net, mount) to
  separate the Android system fully from the host.
confinement: devmode

apps:
    anbox:
        command: usr/bin/anbox

parts:
    anbox:
        plugin: cmake
        source: .
        configflags:
          # FIXME: Anbox currently has some paths with hard coded prefixes. Once
          # that is fixed we can avoid using a prefix here.
          - -DCMAKE_INSTALL_PREFIX:PATH=/usr
          # FIXME: When building in release mode we get a lot of error which cause
          # the build to fail.
          - -DCMAKE_BUILD_TYPE=debug
        build-packages:
          - build-essential
          - cmake
          - cmake-data
          - debhelper
          - dbus
          - google-mock
          - libboost-dev
          - libboost-filesystem-dev
          - libboost-log-dev
          - libboost-iostreams-dev
          - libboost-program-options-dev
          - libboost-system-dev
          - libboost-thread-dev
          - libcap-dev
          - libdbus-1-dev
          - libdbus-cpp-dev
          - libegl1-mesa-dev
          - libgles2-mesa-dev
          - libglib2.0-dev
          - libgtest-dev
          - libprotobuf-dev
          - pkg-config
          - protobuf-compiler
        stage-packages:
          - lxc1
        snap:
          - usr/bin/anbox
          - usr/bin/anbox-container
          - usr/bin/lxc-usernsexec
          - usr/lib/*-linux-*/