forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flatbuffers.sh
21 lines (19 loc) · 868 Bytes
/
flatbuffers.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package: flatbuffers
version: v24.3.25
source: https://github.com/google/flatbuffers
requires:
- zlib
build_requires:
- CMake
- "GCC-Toolchain:(?!osx)"
- alibuild-recipe-tools
- ninja
---
cmake "$SOURCEDIR" \
-G 'Ninja' \
-DFLATBUFFERS_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX="$INSTALLROOT"
cmake --build . -- ${JOBS:+-j$JOBS} install
# Modulefile
mkdir -p "$INSTALLROOT/etc/modulefiles"
alibuild-generate-module --bin --lib --cmake > "$INSTALLROOT/etc/modulefiles/$PKGNAME"