• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3set -eu
4
5buildsys="${1}-${Platform}"
6
7if [ "${buildsys}" == "MinGW-Win32" ]; then
8	export PATH="/c/mingw-w64/i686-6.3.0-posix-dwarf-rt_v5-rev1/mingw32/bin:${PATH}"
9elif [ "${buildsys}" == "MinGW-x64" ]; then
10	export PATH="/c/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin:${PATH}"
11fi
12
13builddir="build-${buildsys}"
14installdir="${PWD}/libusb-${buildsys}"
15
16cd libusb
17
18echo "Bootstrapping ..."
19./bootstrap.sh
20echo ""
21
22exec .private/ci-build.sh --build-dir "${builddir}" --install -- "--prefix=${installdir}"
23