blob: 7e6bed7ecc24e77b08ce828933ba8bf47770a7bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
set -eu
buildsys="${1}-${Platform}"
if [ "${buildsys}" == "MinGW-Win32" ]; then
export PATH="/c/mingw-w64/i686-6.3.0-posix-dwarf-rt_v5-rev1/mingw32/bin:${PATH}"
elif [ "${buildsys}" == "MinGW-x64" ]; then
export PATH="/c/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin:${PATH}"
fi
set -x
builddir="build-${buildsys}"
installdir="${PWD}/libusb-${buildsys}"
cd libusb
./bootstrap.sh
mkdir "${builddir}"
cd "${builddir}"
../configure --prefix="${installdir}" --enable-examples-build --enable-tests-build
make -j4
make install
|