Skip to content

Commit

Permalink
Add bash script for portable build on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
aufau committed Jul 8, 2021
1 parent 7bcfaf5 commit fc18d90
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build/build-portable.sh
@@ -0,0 +1,11 @@
#!/bin/sh

type cmake >/dev/null 2>&1 || { echo >&2 "Can't find cmake."; exit 1; }

BUILD_DIR="`uname`-`uname -m`-portable"
mkdir "$BUILD_DIR"
cd "$BUILD_DIR"

cmake -G "Unix Makefiles" -DUseInternalPNG=OFF -DUseInternalJPEG=OFF -DUseInternalZLIB=OFF -DUseInternalMiniZip=OFF -DCMAKE_BUILD_TYPE=Release ../..

make

0 comments on commit fc18d90

Please sign in to comment.