package: update version (2.8.0.7)
[sdk/emulator/qemu.git] / package / build.windows
1 #!/bin/sh -xe
2 # check build environment
3 prepare()
4 {
5         if [ "${TARGET_OS}" != "windows-32" ] && [ "${TARGET_OS}" != "windows-64" ]
6         then
7                 exit 1
8         fi
9
10         PYTHON_DIR=`env | grep PATH | grep Python`
11         if [ "$PYTHON_DIR" = "" ]
12         then
13                 echo "Make sure that you have installed Python 2.x version"
14                 echo "and then set installed Python/bin path into PATH system variable on your PC!"
15                 exit 1
16         fi
17
18         ROOTDIR=$MSYS_ROOTDIR
19 }
20
21 # clean
22 clean()
23 {
24         echo "nothing to do"
25 }
26
27
28 # build
29 build()
30 {
31         . $SRCDIR/package/build.common
32         build_common
33 }
34
35 # install
36 install()
37 {
38         . $SRCDIR/package/build.common
39         install_common
40 }