mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-06-10 21:19:26 +02:00
add flatcc to Dockcross base image
This commit is contained in:
23
imagefiles/build-and-install-flatcc.sh
Executable file
23
imagefiles/build-and-install-flatcc.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
if ! command -v git &> /dev/null; then
|
||||
echo >&2 'error: "git" not found!'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "${FLATCC_VERSION}" == "" ]]; then
|
||||
echo >&2 'error: FLATCC_VERSION env. variable must be set to a non-empty value'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd /usr/src
|
||||
|
||||
git clone https://github.com/dvidelabs/flatcc.git flatcc -b v$FLATCC_VERSION --depth 1
|
||||
|
||||
cd flatcc
|
||||
|
||||
cmake -DFLATCC_INSTALL=on && make install > /dev/null
|
||||
|
||||
./scripts/cleanall.sh
|
Reference in New Issue
Block a user