shrub/nix/nixcrpkgs/pkgs/libusbp/examples_builder.sh
benjamin-tlon edd57d380d
Finish cc-release cross-compilation. (#1202)
- Fixes the IPC bug
- Fixes the terminfo bug
- Moves the OSX SDK out of our nixcrpkgs fork.
- Vendor nixcrpkgs instead of having it be a submodule.
2019-04-23 19:50:38 -07:00

16 lines
314 B
Bash

source $setup
tar -xf $src
mv libusbp-* libusbp
mkdir build
cd build
FLAGS="-std=gnu++11 $(pkg-config-cross --cflags --libs libusbp-1)"
$host-g++ ../libusbp/examples/lsusb/*.cpp -o lsusb$exe_suffix $FLAGS
$host-g++ ../libusbp/examples/lsport/*.cpp -o lsport$exe_suffix $FLAGS
mkdir -p $out/bin
cp * $out/bin/