summarylogtreecommitdiffstats
path: root/meson-mingw-wrapper
blob: 0684639b9233612bfbef2f0c585c5a0ba49e3428 (plain)
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
30
31
32
#!/bin/sh

if [ -z ${CROSS_FILE} ]
then
  if [ -z ${NEED_WINE} ]
  then
    CROSS_FILE=/usr/share/mingw/toolchain-@TRIPLE@.meson
  else
    CROSS_FILE=/usr/share/mingw/toolchain-@TRIPLE@-wine.meson
    MESON_EXE_WRAPPER=/usr/bin/@TRIPLE@-wine
  fi
fi

exec meson setup \
  --prefix         /usr/@TRIPLE@ \
  --libdir         /usr/@TRIPLE@/lib \
  --libexecdir     /usr/@TRIPLE@/lib \
  --bindir         /usr/@TRIPLE@/bin \
  --sbindir        /usr/@TRIPLE@/bin \
  --includedir     /usr/@TRIPLE@/include \
  --datadir        /usr/@TRIPLE@/share \
  --mandir         /usr/@TRIPLE@/share/man \
  --infodir        /usr/@TRIPLE@/share/info \
  --localedir      /usr/@TRIPLE@/share/locale \
  --sysconfdir     /usr/@TRIPLE@/etc \
  --localstatedir  /var \
  --sharedstatedir /var/lib \
  --buildtype      release \
  --wrap-mode      nofallback \
  --cross-file ${CROSS_FILE} \
  --default-library shared \
  "$@"