-
Notifications
You must be signed in to change notification settings - Fork 4
/
make_all.sh
executable file
·43 lines (35 loc) · 1.31 KB
/
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
38
39
40
41
42
43
#!/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 naclports 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}
# NACL_ARCH=x86_64 TOOLCHAIN=newlib make ${TARGETS}
# i686 NaCl
NACL_ARCH=i686 TOOLCHAIN=clang-newlib make ${TARGETS}
# NACL_ARCH=i686 TOOLCHAIN=glibc make ${TARGETS}
# NACL_ARCH=i686 TOOLCHAIN=newlib make ${TARGETS}
# ARM NaCl
NACL_ARCH=arm TOOLCHAIN=clang-newlib make ${TARGETS}
# NACL_ARCH=arm TOOLCHAIN=newlib make ${TARGETS}
BIONIC_TOOLCHAIN="${NACL_SDK_ROOT}/toolchain/*_arm_bionic"
if [ -n "$(shopt -s nullglob; echo ${BIONIC_TOOLCHAIN})" ]; then
NACL_ARCH=arm TOOLCHAIN=bionic make ${TARGETS}
fi
# PNaCl
NACL_ARCH=pnacl TOOLCHAIN=pnacl make ${TARGETS}
# Emscripten
if [ -n "${EMSCRIPTEN:-}" ]; then
NACL_ARCH=emscripten TOOLCHAIN=emscripten make ${TARGETS}
fi