2019-04-18 20:50:04 +00:00
|
|
|
name: flatbuffers
|
2019-04-18 19:22:43 +00:00
|
|
|
base: core18
|
2021-06-07 16:16:13 +00:00
|
|
|
adopt-info: flatc
|
2019-04-18 19:22:43 +00:00
|
|
|
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:
|
|
|
|
|
2019-04-18 22:15:21 +00:00
|
|
|
/snap/flatbuffers/current/include
|
2019-04-18 19:22:43 +00:00
|
|
|
|
|
|
|
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++
|
2021-06-07 16:16:13 +00:00
|
|
|
- git
|
|
|
|
override-pull: |
|
|
|
|
snapcraftctl pull
|
|
|
|
tag=$(git describe --tags --abbrev=0)
|
|
|
|
count=$(git rev-list $tag.. --count)
|
|
|
|
hash=$(git rev-parse --short HEAD)
|
|
|
|
snapcraftctl set-version $tag+git$count.$hash
|
|
|
|
|
2019-04-18 19:22:43 +00:00
|
|
|
|
|
|
|
apps:
|
|
|
|
flatc:
|
2021-06-07 16:16:13 +00:00
|
|
|
command: bin/flatc
|
2019-04-18 19:22:43 +00:00
|
|
|
plugs:
|
|
|
|
- home
|
2020-08-24 16:55:38 +00:00
|
|
|
- removable-media
|