Last change
on this file since 107:614b9ff033c1 was 102:f3d89fdc5bd8, checked in by István Váradi <ivaradi@…>, 5 years ago |
32-bit binaries are not built by the main build script
|
|
File size:
883 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | set -e -u
|
---|
4 |
|
---|
5 | # Script to build all components needed for the X-Plane Remote Access plugin
|
---|
6 | # for all supported hosts.
|
---|
7 | #
|
---|
8 | # Usage: buildallhosts.sh <configuration file> <destination directory> [<C/C++ flags>]
|
---|
9 | #
|
---|
10 | # The C/C++ flags default to -O2
|
---|
11 |
|
---|
12 | scriptdir=`dirname $0`
|
---|
13 |
|
---|
14 | if test $# -lt 2; then
|
---|
15 | echo "Usage: buildallhosts.sh <configuration file> <destination directory> [<C/C++ flags>]"
|
---|
16 | exit 1
|
---|
17 | fi
|
---|
18 |
|
---|
19 | config="${1}"
|
---|
20 | dest="${2}"
|
---|
21 | cflags="${3:-}"
|
---|
22 | if test -z "${cflags}"; then
|
---|
23 | cflags="-O2"
|
---|
24 | fi
|
---|
25 |
|
---|
26 | "${scriptdir}/buildall.sh" "${config}" "${dest}/xpl" x86_64-linux-gnu "${cflags}"
|
---|
27 | #echo
|
---|
28 | #echo
|
---|
29 | #"${scriptdir}/buildall.sh" "${config}" "${dest}/xpl-32" i686-linux-gnu "${cflags}"
|
---|
30 | #echo
|
---|
31 | #echo
|
---|
32 | #"${scriptdir}/buildall.sh" "${config}" "${dest}/xpl-win32" i686-w64-mingw32 "${cflags}"
|
---|
33 | echo
|
---|
34 | echo
|
---|
35 | "${scriptdir}/buildall.sh" "${config}" "${dest}/xpl-win64" x86_64-w64-mingw32 "${cflags}"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.