-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest-gi.sh
More file actions
29 lines (23 loc) · 804 Bytes
/
test-gi.sh
File metadata and controls
29 lines (23 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
set -e
export HOMEBREW_NO_INSTALL_CLEANUP=1
export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_NO_AUTO_UPDATE=1
brew update
brew remove --ignore-dependencies gdal numpy postgis
brew unlink python@2 || true;
for package in python libffi glib cairo meson ninja bison flex; do
brew install "$package" || brew upgrade "$package";
done
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
export PATH="/usr/local/opt/bison/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/bison/lib $LDFLAGS"
export PATH="/usr/local/opt/flex/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/flex/lib $LDFLAGS"
export CPPFLAGS="-I/usr/local/opt/flex/include $CPPFLAGS"
git clone --depth 1 https://gitlab.gnome.org/GNOME/gobject-introspection.git
cd gobject-introspection
meson _build
cd _build
ninja
meson test