Files
SDK_SG200x_V2/flatbuffers/snap/snapcraft.yaml
carbon 93b1517102 add flatbuffers
commit 6da1cf79d90eb242e7da5318241d42279a3df3ba
Author: Max Burke <max@urbanlogiq.com>
Date:   Sun Jan 19 14:47:28 2020 -0800

    [rust] Add use declarations to Rust-generated bindings for imported FB definitions (#5645)

    * Bugfix for Rust generation of union fields named with language keywords
2024-05-31 14:12:12 +08:00

38 lines
912 B
YAML

name: flatbuffers
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/flatbuffers/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