forked from nightingale-media-player/nightingale-deps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmingw-win-dep-build.sh
99 lines (74 loc) · 2.86 KB
/
mingw-win-dep-build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/bin/bash
ARCH="$(uname -m)"
# XUL Version
export XUL="9.0.1"
export DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export SB_VENDOR_BINARIES_CO_ROOT=$DIR
export SB_VENDOR_BUILD_ROOT=$DIR
export SB_USE_MINGW_GCC=1
if [ ! -d "build" ]; then
mkdir build
fi
case $OSTYPE in
msys*)
if [ "$SB_USE_MINGW_GCC" == "1" ] ; then
if [ ! -d "windows-i686-mingw32" ]; then
mkdir -p "windows-i686-mingw32"
fi
if [ ! -d "checkout/windows-i686-mingw32" ]; then
mkdir -p "checkout/windows-i686-mingw32"
fi
else
if [ ! -d "windows-i686-msvc10" ]; then
mkdir -p "windows-i686-msvc10"
fi
if [ ! -d "checkout/windows-i686-msvc10" ]; then
mkdir -p "checkout/windows-i686-msvc10"
fi
fi
export DIRECTX_SDK_ROOT="/c/Program\ Files\ \(x86\)/Microsoft\ DirectX\ SDK \(June 2010\)"
export QUICKTIME_SDK_ROOT="/c/Program\ Files\ \(x86\)/QuickTime\ SDK"
export WINDOWS_SDK_ROOT="/c/SDKs/Windows-SDK/v7.0"
# echo -e "Building libtool..."
# make -C libtool -f Makefile.nightingale
# +++ builds with mingw +++ #
# echo -e "Building libiconv..."
# make -C libiconv-1.14 -f Makefile.nightingale
### TIER 1 ###
# echo -e "Building gettext..."
# make -C gettext -f Makefile.nightingale
# +++ builds with mingw +++ #
# echo -e "Building zlib...\n"
# make -C zlib -f Makefile.nightingale
# echo -e "Building glib..."
# make -C glib -f Makefile.nightingale
# echo -e "Building sqlite...\n"
# make -C sqlite -f Makefile.nightingale
# echo -e "Building libjpeg-turbo...\n"
# make -C libjpeg-turbo -f Makefile.nightingale
### TIER 2 ###
# echo -e "Building libogg...\n"
# make -C libogg -f Makefile.nightingale
# echo -e "Building libvorbis...\n"
# make -C libvorbis -f Makefile.nightingale
# echo -e "Building libtheora...\n"
# make -C libtheora -f Makefile.nightingale
# echo -e "Building FLAC...\n"
# make -C flac -f Makefile.nightingale
# make -C flac-1.2.1 -f Makefile.nightingale
# echo -e "Building taglib...\n"
# make -C taglib -f Makefile.nightingale
### TIER 3 ###
# echo -e "Building gstreamer bits..."
# make -C gstreamer -f Makefile.nightingale
### TIER 4 ###
# echo -e "Building gst plugins...here's hoping these all build!"
# make -C gst-plugins-base -f Makefile.nightingale
# make -C gst-plugins-good -f Makefile.nightingale
# make -C gst-plugins-bad -f Makefile.nightingale
# make -C gst-plugins-ugly -f Makefile.nightingale
;;
*)
echo "Windows only build script..."
;;
esac