Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Side by Side Diff: ports/openjpeg/build.sh

Issue 1804293003: Add support for new pnacl native toolchain driver (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: Fix according to Brad's comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW
« make_all.sh ('K') | « ports/opencv/build.sh ('k') | ports/perl/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698