Skip to content

Commit e7340c3

Browse files
om26eraardappel
authored andcommitted
Add Linux Snap Packaging (google#5293)
* SNAP: cleanup * Lets keep it in devel mode as it requires more testing * add better description
1 parent 90441c2 commit e7340c3

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

snap/snapcraft.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: flatc
2+
base: core18
3+
version: latest
4+
version-script: git describe --always | sed -e 's/-/+git/;y/-/./' | tail -c +2
5+
summary: FlatBuffers compiler
6+
description: |
7+
FlatBuffers compiler
8+
9+
NOTE: This snap also ships the necessary header files required to compile
10+
projects using flatbuffers, however, for the compilation to work, you have
11+
to manually add the following path in your project's configuration:
12+
13+
/snap/flatc/current/include
14+
15+
If you need to use flatbuffers headers from a location other than the above
16+
path, it is recommended to not use this snap as that could cause a mismatch.
17+
18+
grade: stable
19+
confinement: strict
20+
21+
parts:
22+
flatc:
23+
plugin: cmake
24+
source: .
25+
configflags:
26+
- -GUnix Makefiles
27+
- -DCMAKE_BUILD_TYPE=Release
28+
build-packages:
29+
- g++
30+
# used to set version number
31+
- git
32+
33+
apps:
34+
flatc:
35+
command: flatc
36+
plugs:
37+
- home

0 commit comments

Comments
 (0)