OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 set -o nounset | 6 set -o nounset |
7 set -o errexit | 7 set -o errexit |
8 | 8 |
9 if [[ $# -ne 3 ]]; then | 9 if [[ $# -ne 3 ]]; then |
10 echo "Usage: $0 [path_to_mono] [build_dir] [install_dir]" | 10 echo "Usage: $0 [path_to_mono] [build_dir] [install_dir]" |
(...skipping 14 matching lines...) Expand all Loading... |
25 cd $ORIGINAL_CWD | 25 cd $ORIGINAL_CWD |
26 | 26 |
27 case "${TARGET_ARCH}" in | 27 case "${TARGET_ARCH}" in |
28 x86-32) | 28 x86-32) |
29 readonly USE_PNACL=0 | 29 readonly USE_PNACL=0 |
30 readonly NACL_CROSS_PREFIX_DASH=i686-nacl- | 30 readonly NACL_CROSS_PREFIX_DASH=i686-nacl- |
31 readonly CONFIG_OPTS="--host=i686-pc-linux-gnu \ | 31 readonly CONFIG_OPTS="--host=i686-pc-linux-gnu \ |
32 --build=i686-pc-linux-gnu \ | 32 --build=i686-pc-linux-gnu \ |
33 --target=i686-pc-linux-gnu" | 33 --target=i686-pc-linux-gnu" |
34 readonly LIBDIR=lib32 | 34 readonly LIBDIR=lib32 |
| 35 readonly CUSTOM_CFLAGS="" |
| 36 readonly CUSTOM_LDFLAGS="" |
35 ;; | 37 ;; |
36 x86-64) | 38 x86-64) |
37 readonly USE_PNACL=0 | 39 readonly USE_PNACL=0 |
38 readonly NACL_CROSS_PREFIX_DASH=x86_64-nacl- | 40 readonly NACL_CROSS_PREFIX_DASH=x86_64-nacl- |
39 readonly CONFIG_OPTS="--host=x86_64-pc-linux-gnu \ | 41 readonly CONFIG_OPTS="--host=x86_64-pc-linux-gnu \ |
40 --build=x86_64-pc-linux-gnu \ | 42 --build=x86_64-pc-linux-gnu \ |
41 --target=x86_64-pc-linux-gnu" | 43 --target=x86_64-pc-linux-gnu" |
42 readonly LIBDIR=lib | 44 readonly LIBDIR=lib |
| 45 readonly CUSTOM_CFLAGS="" |
| 46 readonly CUSTOM_LDFLAGS="" |
43 ;; | 47 ;; |
44 arm) | 48 arm) |
45 readonly USE_PNACL=1 | 49 readonly USE_PNACL=1 |
46 readonly NACL_CROSS_PREFIX_DASH=pnacl- | 50 readonly NACL_CROSS_PREFIX_DASH=pnacl- |
47 readonly PNACL_LINK_ARGS="-arch armv7 -O2" | 51 readonly PNACL_LINK_ARGS="-arch armv7 -O2" |
48 readonly CONFIG_OPTS="--host=armv7l-unknown-linux-gnueabi \ | 52 readonly CONFIG_OPTS="--host=armv7l-unknown-linux-gnueabi \ |
49 --build=x86_64-pc-linux-gnu \ | 53 --build=x86_64-pc-linux-gnu \ |
50 --target=armv7l-unknown-linux-gnueabi" | 54 --target=armv7l-unknown-linux-gnueabi" |
51 readonly LIBDIR=libarm | 55 readonly LIBDIR=libarm |
52 # TODO(olonho): move it to Mono's configure, once nacl target implemented. | 56 # TODO(olonho): move it to Mono's configure, once nacl target implemented. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 --with-sgen=no \ | 125 --with-sgen=no \ |
122 --enable-nls=no \ | 126 --enable-nls=no \ |
123 --enable-nacl-codegen \ | 127 --enable-nacl-codegen \ |
124 --disable-system-aot \ | 128 --disable-system-aot \ |
125 --enable-shared \ | 129 --enable-shared \ |
126 --disable-parallel-mark \ | 130 --disable-parallel-mark \ |
127 --with-static-mono=no | 131 --with-static-mono=no |
128 | 132 |
129 make | 133 make |
130 make install | 134 make install |
OLD | NEW |