OSDN Git Service

patch ffmpeg mov demuxer to handle LE UTF16 chapter names
[handbrake-jp/handbrake-jp-git.git] / make / test / build.matrix.darwin
1 #!/bin/bash
2 #
3
4 ## This script is used to launch a wide variety of builds for darwin.
5 ## It is unsupported and is meant for use only with build-system testing.
6
7 if [ -z "$1" ]; then
8     echo "usage: $0 BUILDPREFIX"
9     exit 1
10 fi
11
12 set -e
13 buildprefix=$1
14
15 term_make() {
16     eval $1="make"
17     eval $2="'--disable-xcode'"
18 }
19
20 term_xcode() {
21     eval $1="make"
22     eval $2=""
23 }
24
25 launch_make() {
26     eval $1="launch"
27     eval $2="'--launch --launch-jobs=0 --launch-quiet --disable-xcode'"
28 }
29
30 launch_xcode() {
31     eval $1="launch"
32     eval $2="'--launch --launch-jobs=0 --launch-quiet'"
33 }
34
35 for debug in none max; do
36 for arch in i386 ppc ppc64 x86_64; do
37     for method in launch_make launch_xcode term_make term_xcode; do
38         dir=$buildprefix.$arch.$debug.$method
39         if [ -d $dir ]; then
40             echo "skipping $dir"
41             continue
42         fi
43
44         $method mode args
45
46         cmd="./configure --arch=$arch --debug=$debug --build=$dir $args"
47         echo $cmd | awk '{ \
48             trail = ""; \
49             for( i = 4; i <= NF; i++ ) \
50                 trail = trail " " $i; \
51             printf("%-11s %-13s %-30s%s\n", $1, $2, $3, trail) }'
52
53         $cmd
54         if [ "$mode" = "make" ]; then
55             (set -x; cd $dir && make -j8 >& log/build.txt)
56         fi
57     done
58 done
59 done