mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
18 lines
446 B
Bash
18 lines
446 B
Bash
#!/usr/bin/bash
|
|
set -e
|
|
export PATH=/usr/bin:$PATH
|
|
pacman -Sy --noconfirm --needed diffutils make
|
|
|
|
PATH_TO_BUILD_DIR="`cygpath "$1"`"
|
|
PATH_TO_SRC_DIR="`cygpath "$2"`"
|
|
PATH_TO_PACKAGE_DIR="`cygpath "$3"`"
|
|
# Note: $4 is extra configure options
|
|
|
|
cd "$PATH_TO_BUILD_DIR"
|
|
echo "=== CONFIGURING ==="
|
|
"$PATH_TO_SRC_DIR/configure" --toolchain=msvc "--prefix=$PATH_TO_PACKAGE_DIR" $4
|
|
echo "=== BUILDING ==="
|
|
make -j6
|
|
echo "=== INSTALLING ==="
|
|
make install
|