2021-04-06 18:54:28 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
|
2022-04-01 03:59:08 +03:00
|
|
|
port=flatbuffers
|
|
|
|
version=2.0.0
|
|
|
|
files="https://github.com/google/flatbuffers/archive/refs/tags/v${version}.tar.gz v${version}.tar.gz 9ddb9031798f4f8754d00fca2f1a68ecf9d0f83dfac7239af1311e4fd9a565c4"
|
2021-04-06 18:54:28 +03:00
|
|
|
useconfigure=true
|
|
|
|
# Since we are cross-compiling, we cannot build the tests, because we need
|
|
|
|
# the flatbuffers compiler to build them
|
2021-09-27 01:16:18 +03:00
|
|
|
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" "-DFLATBUFFERS_BUILD_TESTS=off")
|
2021-04-06 18:54:28 +03:00
|
|
|
|
|
|
|
configure() {
|
2021-09-27 01:16:18 +03:00
|
|
|
run cmake "${configopts[@]}"
|
2021-04-06 18:54:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
|
|
|
run make install
|
|
|
|
}
|