forked from aubio/aubio
-
Notifications
You must be signed in to change notification settings - Fork 3
/
cross-compile.sh
26 lines (20 loc) · 2.5 KB
/
cross-compile.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
#!/bin/bash
echo "Removing 'win-build-out' directory."
rm -rf win-build-out
echo "Creating output directories: 'win-build-out/64bit' && 'win-build-out/32bit'."
mkdir -p win-build-out/Release/64bit
mkdir -p win-build-out/Debug/64bit
mkdir -p win-build-out/Release/32bit
mkdir -p win-build-out/Debug/32bit
echo "Cross compiling 64bit Release build to Windows 64bit."
# Create 64bit build
CC=x86_64-w64-mingw32-gcc python waf --build-type=release --with-target-platform='win64' --disable-intelipp --disable-complex --disable-jack --disable-jack --disable-sndfile --disable-avcodec --disable-samplerate --disable-memcpy --disable-double --disable-fat --enable-accelerate --disable-apple-audio --disable-blas --disable-atlas --disable-wavread --disable-wavwrite --disable-docs --disable-tests --disable-examples configure build install --prefix=./win-build-out/Release/64bit
echo "Cross compiling 64bit Debug build to Windows 64bit."
# Create 64bit build
CC=x86_64-w64-mingw32-gcc python waf --build-type=debug --with-target-platform='win64' --disable-intelipp --disable-complex --disable-jack --disable-jack --disable-sndfile --disable-avcodec --disable-samplerate --disable-memcpy --disable-double --disable-fat --enable-accelerate --disable-apple-audio --disable-blas --disable-atlas --disable-wavread --disable-wavwrite --disable-docs --disable-tests --disable-examples configure build install --prefix=./win-build-out/Debug/64bit
echo "Cross compiling 32bit Release build to Windows 32bit."
# Create 32bit build
CC=i686-w64-mingw32-gcc python waf --build-type=release --with-target-platform='win32' --disable-intelipp --disable-complex --disable-jack --disable-jack --disable-sndfile --disable-avcodec --disable-samplerate --disable-memcpy --disable-double --disable-fat --enable-accelerate --disable-apple-audio --disable-blas --disable-atlas --disable-wavread --disable-wavwrite --disable-docs --disable-tests --disable-examples configure build install --prefix=./win-build-out/Release/32bit
echo "Cross compiling 32bit Debug build to Windows 32bit."
# Create 32bit build
CC=i686-w64-mingw32-gcc python waf --build-type=debug --with-target-platform='win32' --disable-intelipp --disable-complex --disable-jack --disable-jack --disable-sndfile --disable-avcodec --disable-samplerate --disable-memcpy --disable-double --disable-fat --enable-accelerate --disable-apple-audio --disable-blas --disable-atlas --disable-wavread --disable-wavwrite --disable-docs --disable-tests --disable-examples configure build install --prefix=./win-build-out/Debug/32bit