diff options
author | Omer Akram <om26er@gmail.com> | 2019-04-19 00:22:43 +0500 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2019-04-18 12:22:43 -0700 |
commit | e7340c390f91fe71a66eb545ee129e633ab7da80 (patch) | |
tree | 0651ba7a339ed749259b4f8108cc05c8754a7a1c /snap | |
parent | 90441c207838f611e4459595d3ac57468bcde13a (diff) | |
download | flatbuffers-e7340c390f91fe71a66eb545ee129e633ab7da80.tar.gz flatbuffers-e7340c390f91fe71a66eb545ee129e633ab7da80.tar.bz2 flatbuffers-e7340c390f91fe71a66eb545ee129e633ab7da80.zip |
Add Linux Snap Packaging (#5293)
* SNAP: cleanup
* Lets keep it in devel mode as it requires more testing
* add better description
Diffstat (limited to 'snap')
-rw-r--r-- | snap/snapcraft.yaml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000..c40405d8 --- /dev/null +++ b/snap/snapcraft.yaml @@ -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 |