-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_all.sh
executable file
·37 lines (29 loc) · 1021 Bytes
/
make_all.sh
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
33
34
35
36
37
#!/bin/sh
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# This script builds all ports in all possible configurations.
# If you want to be sure your change won't break anythign this is
# a good place to start.
set -x
set -e
TARGETS="$*"
TARGETS=${TARGETS:-all}
BUILD_FLAGS=--ignore-disabled
export BUILD_FLAGS
# x86_64 NaCl
NACL_ARCH=x86_64 TOOLCHAIN=clang-newlib make ${TARGETS}
NACL_ARCH=x86_64 TOOLCHAIN=glibc make ${TARGETS}
# i686 NaCl
NACL_ARCH=i686 TOOLCHAIN=clang-newlib make ${TARGETS}
NACL_ARCH=i686 TOOLCHAIN=glibc make ${TARGETS}
# ARM NaCl
NACL_ARCH=arm TOOLCHAIN=clang-newlib make ${TARGETS}
NACL_ARCH=arm TOOLCHAIN=glibc make ${TARGETS}
# PNaCl
NACL_ARCH=le32 TOOLCHAIN=pnacl make ${TARGETS}
# Emscripten
if [ -n "${EMSCRIPTEN:-}" ]; then
NACL_ARCH=emscripten TOOLCHAIN=emscripten make ${TARGETS}
fi