Skip to content

Latest commit

 

History

History
executable file
·
21 lines (18 loc) · 423 Bytes

build.sh

File metadata and controls

executable file
·
21 lines (18 loc) · 423 Bytes
 
Feb 9, 2014
Feb 9, 2014
1
#!/bin/bash
2
3
4
5
6
7
8
9
#
# Need to install the following on Ubuntu 12.04:
# - cmake
# - libgtk2.0-dev
# - libxtst-dev
#
# If you find other deps, add them here
Feb 9, 2014
Feb 9, 2014
10
11
12
13
14
15
16
17
18
19
20
NCPU=`cat /proc/cpuinfo |grep vendor_id |wc -l`
let NCPU=$NCPU+2
echo "Will build with 'make -j$NCPU' ... please edit this script if incorrect."
set -x
rm -rf cmake-build
mkdir -p cmake-build
cd $_
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j$NCPU && cp -a 1pass ..
cd ..