mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 19:02:40 +00:00
Add Linux Snap Packaging (#5293)
* SNAP: cleanup * Lets keep it in devel mode as it requires more testing * add better description
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
90441c2078
commit
e7340c390f
37
snap/snapcraft.yaml
Normal file
37
snap/snapcraft.yaml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: flatc
|
||||||
|
base: core18
|
||||||
|
version: latest
|
||||||
|
version-script: git describe --always | sed -e 's/-/+git/;y/-/./' | tail -c +2
|
||||||
|
summary: FlatBuffers compiler
|
||||||
|
description: |
|
||||||
|
FlatBuffers compiler
|
||||||
|
|
||||||
|
NOTE: This snap also ships the necessary header files required to compile
|
||||||
|
projects using flatbuffers, however, for the compilation to work, you have
|
||||||
|
to manually add the following path in your project's configuration:
|
||||||
|
|
||||||
|
/snap/flatc/current/include
|
||||||
|
|
||||||
|
If you need to use flatbuffers headers from a location other than the above
|
||||||
|
path, it is recommended to not use this snap as that could cause a mismatch.
|
||||||
|
|
||||||
|
grade: stable
|
||||||
|
confinement: strict
|
||||||
|
|
||||||
|
parts:
|
||||||
|
flatc:
|
||||||
|
plugin: cmake
|
||||||
|
source: .
|
||||||
|
configflags:
|
||||||
|
- -GUnix Makefiles
|
||||||
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
|
build-packages:
|
||||||
|
- g++
|
||||||
|
# used to set version number
|
||||||
|
- git
|
||||||
|
|
||||||
|
apps:
|
||||||
|
flatc:
|
||||||
|
command: flatc
|
||||||
|
plugs:
|
||||||
|
- home
|
||||||
Reference in New Issue
Block a user