Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame^] | 1 | name: flatbuffers |
| 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/flatbuffers/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 |