forked from paulnasca/paulstretch_cpp
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompile_win32.sh
More file actions
executable file
·46 lines (24 loc) · 863 Bytes
/
compile_win32.sh
File metadata and controls
executable file
·46 lines (24 loc) · 863 Bytes
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
outfile=paulstretch.exe
rm -f $outfile
mingw_dir="/usr/i586-mingw32msvc"
wine "$mingw_dir/bin/fluid.exe" -c GUI.fl
wine "$mingw_dir/bin/fluid.exe" -c FreeEditUI.fl
clear
i586-mingw32msvc-g++ -O3 -DWINDOWS -DKISSFFT -I./contrib GUI.cxx FreeEditUI.cxx *.cpp Input/*.cpp Output/*.cpp contrib/*.c \
`"$mingw_dir/bin/fltk-config" --cflags` \
`"$mingw_dir/bin/fltk-config" --ldflags` \
"$mingw_dir/lib/libvorbisenc.a" \
"$mingw_dir/lib/libvorbisfile.a" \
"$mingw_dir/lib/libvorbis.a" \
"$mingw_dir/lib/libogg.a" \
"$mingw_dir/lib/libportaudio.a" \
"$mingw_dir/lib/libaudiofile.a" \
"$mingw_dir/lib/libmad.a" \
"$mingw_dir/lib/libmxml.a" \
"$mingw_dir/lib/libz.a" \
-lm -lwinmm -o $outfile
rm -f GUI.h GUI.cxx FreeEditUI.h FreeEditUI.cxx
strip $outfile
cat version.h | grep -v "#"
#compress the outfile (not necessary, but useful)
#upx $outfile