summaryrefslogtreecommitdiff
path: root/other/docker/windows/get_packages.sh
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2017-02-16 05:18:17 -0500
committerMaxim Biro <nurupo.contributions@gmail.com>2018-01-25 16:04:54 -0500
commite672b6f09218b61248a265a9a7ce3c0d3158ff48 (patch)
tree85e2971a8e6df5b080427213ef2c2ed7f94287f6 /other/docker/windows/get_packages.sh
parent29cd93a49c4ea30105e861e2b6b5fc41e329efef (diff)
Add Dockerfile for Windows cross-compilation
Diffstat (limited to 'other/docker/windows/get_packages.sh')
-rw-r--r--other/docker/windows/get_packages.sh55
1 files changed, 55 insertions, 0 deletions
diff --git a/other/docker/windows/get_packages.sh b/other/docker/windows/get_packages.sh
new file mode 100644
index 00000000..e3fb51f5
--- /dev/null
+++ b/other/docker/windows/get_packages.sh
@@ -0,0 +1,55 @@
1#!/usr/bin/env sh
2
3set -e -x
4
5#=== Install Packages ===
6
7apt-get update
8
9# Arch-independent packages required for building toxcore's dependencies and toxcore itself
10apt-get install -y \
11 autoconf \
12 automake \
13 ca-certificates \
14 cmake \
15 git \
16 libtool \
17 libc-dev \
18 make \
19 pkg-config \
20 tree \
21 yasm
22
23# Arch-dependent packages required for building toxcore's dependencies and toxcore itself
24if [ "${SUPPORT_ARCH_i686}" = "true" ]; then
25 apt-get install -y \
26 g++-mingw-w64-i686 \
27 gcc-mingw-w64-i686
28fi
29
30if [ "${SUPPORT_ARCH_x86_64}" = "true" ]; then
31 apt-get install -y \
32 g++-mingw-w64-x86-64 \
33 gcc-mingw-w64-x86-64
34fi
35
36# Pacakges needed for running toxcore tests
37if [ "${SUPPORT_TEST}" = "true" ]; then
38 apt-get install -y \
39 curl \
40 texinfo
41
42 dpkg --add-architecture i386
43 apt-get update
44 apt-get install -y \
45 wine \
46 wine32 \
47 wine64
48fi
49
50# Clean up to reduce image size
51apt-get clean
52rm -rf \
53 /var/lib/apt/lists/* \
54 /tmp/* \
55 /var/tmp/*