Use new rust-bindgen crate for faster builds

Rather than cloning the bindgen repository and building from source, use
the packaged crate. The result is the rebuilds are much, much faster.
Also, had to make numerous changes for the new version of bindgen.

cargo test passes
This commit is contained in:
Nathan Fiedler
2016-08-03 20:36:52 -07:00
parent 2c94dab05a
commit eec7998d25
6 changed files with 82 additions and 51 deletions

View File

@ -41,11 +41,12 @@ def all():
run('./rustup.sh --yes')
run('rm -f rustup.sh')
sudo('apt-get -q -y build-dep imagemagick')
run('wget -q http://www.imagemagick.org/download/ImageMagick-6.9.5-2.tar.gz')
run('tar zxf ImageMagick-6.9.5-2.tar.gz')
run('wget -q http://www.imagemagick.org/download/ImageMagick-6.9.5-3.tar.gz')
run('tar zxf ImageMagick-6.9.5-3.tar.gz')
with cd('ImageMagick-*'):
run('./configure')
run('make')
sudo('make install')
run('rm -rf ImageMagick*')
run('sudo apt-get -q -y install libclang-dev')
run("echo 'export LIBCLANG_PATH=/usr/lib/llvm-3.8/lib' >> .bashrc")