~alan-griffiths/mircade-snap/trunk

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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: mircade
version: 0.2.1
summary: Example app on Mir stack
description: This example can be used as a guide by other mir client snaps to render guis
confinement: strict
grade: devel

apps:
  mircade-daemon:
    command: bin/mircade-daemon
    daemon: simple
    plugs:
      - mir
      - mir-libs-1604
      - opengl
      - network

plugs:
  mir-libs-1604:
    interface: content
    content: mir0-1604
    target: mir-libs
    default-provider: mir-kiosk:mir-libs-1604

parts:
  games:
    plugin: nil
    stage-packages:
      # X11 support
      - xmir

      # gtk support
#      - gnome-themes-standard
#      - libgdk-pixbuf2.0-dev

      # SDL & working
      - neverball
      - neverputt
#      - supertux
      - starfighter
#      - 7kaa:amd64        # not in archive for arm64,armhf
#      - 7kaa:i386         # not in archive for arm64,armhf

      # X11 & working
#      - pingus
# openttd runs but doesn't have enough memory on dragonboard
#      - openttd
#      - openttd-data
#      - openttd-opengfx
#      - openttd-openmsx
#      - openttd-opensfx

      # experimental SDL
# crawl-tiles has hard coded path in crawl-tiles.desktop and (even hacking that)
# doesn't appear to have a configurable data path
#      - crawl-tiles
#      - caveexpress  # not in Xenial archive

      # experimental X11
# torcs has a launch script hard coded path with /usr and (even hacking that)
# doesn't display well on dragonboard (screen blanks when cursor not moving)
#      - torcs

#      # experimental gtk
#      # gtk can't find resources, but left to experiment with
#      - gnome-mahjongg
#      - gnome-chess
#      - gnuchess
#      - gnuchess-book
#      - aisleriot
#      - gnome-cards-data

    stage:
      - etc
      - usr
      - -usr/share/doc/
      - -usr/share/man/

  mircade:
    plugin: cmake
    source: https://github.com/AlanGriffiths/mircade.git
    configflags:
      - -DCMAKE_CXX_FLAGS="-I$SNAPCRAFT_STAGE/usr/include/miral"
    build-packages:
      - build-essential
      - pkg-config
      - libfreetype6-dev
      - libboost-filesystem-dev
      - libmirclientcpp-dev
    stage-packages:
      - ttf-ubuntu-font-family
    stage:
      - bin
      - usr
      - -usr/share/doc/
      - -usr/share/man/

  glue:
    plugin: dump
    source: glue

  xmir-preload:
    plugin: cmake
    source: xmir-preload
    build-packages:
      - build-essential