Set version we're building from snapcraft

This commit is contained in:
Simon Fels 2017-05-05 07:50:14 +02:00
commit 45ac3ecf6a
7 changed files with 43 additions and 64 deletions

View file

@ -1,4 +1,8 @@
name: anbox
# NOTE: Always only use increasing numeric values here. This is
# passed down into cmake and assigned to an integer variable which
# can be used for version number comparision inside the code base
# to accomondate for any breaking changes.
version: 2
summary: Android in a Box
description: |
@ -84,6 +88,7 @@ parts:
# 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
- -DVERSION=$SNAPCRAFT_PROJECT_VERSION
build-packages:
- build-essential
- cmake