skin: check that image file of H/W button exist or not
[sdk/emulator/qemu.git] / tizen / build.sh
1 #!/bin/sh
2 # Build both x86 and ARM emulators by default
3
4 UNAME=`uname`
5 CONFIGURE_SCRIPT="./emulator_configure.sh"
6
7 case "$UNAME" in
8 Linux)
9     NUMCPU=`grep -c 'cpu cores' /proc/cpuinfo`
10     ;;
11 MINGW*)
12     NUMCPU=`echo $NUMBER_OF_PROCESSORS`
13     ;;
14 Darwin)
15     NUMCPU=`sysctl hw.ncpu | awk '{print $2}'`
16     ;;
17 esac
18
19 echo "Number of CPUs $NUMCPU"
20
21 if [ "x$NUMCPU" != "x" ] ; then
22     NUMCPU=$(( NUMCPU + 1 ))
23 else
24     NUMCPU=1
25 fi
26
27
28 $CONFIGURE_SCRIPT $* && make -j$NUMCPU && make install
29