OLD | NEW |
1 # Copyright 2014 The Native Client Authors. All rights reserved. | 1 # Copyright 2014 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 EXECUTABLES="bin/opj_decompress bin/opj_compress" | 5 EXECUTABLES="bin/opj_decompress bin/opj_compress" |
6 | 6 |
7 # Workaround for arm-gcc bug: | 7 # Workaround for arm-gcc bug: |
8 # https://code.google.com/p/nativeclient/issues/detail?id=3205 | 8 # https://code.google.com/p/nativeclient/issues/detail?id=3205 |
9 # TODO(sbc): remove this once the issue is fixed | 9 # TODO(sbc): remove this once the issue is fixed |
10 if [ "${NACL_ARCH}" = "arm" ]; then | 10 if [ "${NACL_ARCH}" = "arm" ]; then |
11 NACLPORTS_CPPFLAGS+=" -mfpu=vfp" | 11 NACLPORTS_CPPFLAGS+=" -mfpu=vfp" |
12 fi | 12 fi |
13 | 13 |
14 if [ "${NACL_SHARED}" != "1" ]; then | 14 if [ "${NACL_SHARED}" != "1" ]; then |
15 EXTRA_CMAKE_ARGS+=" -DBUILD_SHARED_LIBS=OFF" | 15 EXTRA_CMAKE_ARGS+=" -DBUILD_SHARED_LIBS=OFF" |
16 fi | 16 fi |
17 | 17 |
18 if [ "${NACL_ARCH}" = "pnacl" ]; then | 18 if [ "${NACL_ARCH}" = "pnacl" -o "${NACL_ARCH}" = "le32" ]; then |
19 # The cmake endian test fails on PNaCl as it tries to search | 19 # The cmake endian test fails on PNaCl as it tries to search |
20 # for string constants in object files which doesn't work in | 20 # for string constants in object files which doesn't work in |
21 # bitcode files. Instead disable the endian test and just use | 21 # bitcode files. Instead disable the endian test and just use |
22 # the default (littleendian). | 22 # the default (littleendian). |
23 EXTRA_CMAKE_ARGS+=" -DHAVE_OPJ_BIG_ENDIAN=TRUE" | 23 EXTRA_CMAKE_ARGS+=" -DHAVE_OPJ_BIG_ENDIAN=TRUE" |
24 fi | 24 fi |
OLD | NEW |