Debian Codegraph @

ci/mingw-build.sh

raw
1 #!/usr/bin/env bash
2
3 if [ -z ${CI+x} ]; then
4 echo "this script is only intended to run in CI" >&2
5 exit 1
6 fi
7
8 set -e
9 set -o pipefail
10 set -u
11 set -x
12
13 ci/mingw-install.sh
14
15 export PATH=$PATH:/c/Git/cmd
16
17 if [ "${build_system}" = "cmake" ]; then
18 # Use the libs installed with pacman instead of those in
19 # https://gitlab.com/graphviz/graphviz-windows-dependencies.
20 export CMAKE_OPTIONS="${CMAKE_OPTIONS:-} -Duse_win_pre_inst_libs=OFF"
21 export CMAKE_OPTIONS="$CMAKE_OPTIONS -DENABLE_LTDL=ON"
22 export CMAKE_OPTIONS="$CMAKE_OPTIONS -DWITH_EXPAT=ON"
23 export CMAKE_OPTIONS="$CMAKE_OPTIONS -DWITH_GVEDIT=ON"
24 export CMAKE_OPTIONS="$CMAKE_OPTIONS -DWITH_ZLIB=ON"
25 fi
26
27 ci/build.sh