comfortable-swipe/compile.sh
2020-04-20 19:25:44 +08:00

10 lines
229 B
Bash
Executable File

#!/bin/bash
# main compile script
# usage: ./compile.sh *.cpp
set -e
DIR="$(dirname $0)"
VERSION="$(cat "$DIR/VERSION" | tr -d '[:space:]')"
g++ "$@" -std=c++14 -O2 -Wall -lxdo -linih -DCOMFORTABLE_SWIPE_VERSION="\"$VERSION\""