https://github.com/yunhkim/dcshell
Tip revision: 146eee8498919e55e6f4122653e1a116a84bfd55 authored by Yun-hyeong Kim on 07 June 2017, 07:12:08 UTC
update
update
Tip revision: 146eee8
gen.sh
#!/bin/bash
#echo "creating a xcode project from dcshell codes"
echo "== start =="
#cmake build_type_option code_path
mkdir -p build/debug
cd build/debug
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-g" ../..
cd -
mkdir -p build/release
cd build/release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3" ../..
cd -
if [[ "$OSTYPE" == "darwin"* ]]; then
mkdir -p build/xcode
cd build/xcode
# -G <generator name> <path to source>
cmake -G Xcode ../..
cd -
fi
cd build/release
#make -j4
make
cd -
ln -s build/release/dcshell .
echo "=== done ==="