| # Copyright (c) 2011 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. |
| NACLPORTS_CPPFLAGS+=" ${NACL_EXCEPTIONS_FLAG}" |
| if [ "${NACL_LIBC}" = "newlib" ]; then |
| # TODO(sbc): remove once this is fixed: |
| # https://code.google.com/p/nativeclient/issues/detail?id=3790 |
| NACLPORTS_CPPFLAGS+=" -DSSIZE_MAX=LONG_MAX" |
| EXE_DIR="" |
| else |
| EXE_DIR=".libs/" |
| fi |
| |
| EXTRA_CONFIGURE_ARGS=" |
| --disable-largefile |
| --without-fftw |
| --without-xml |
| --without-fontconfig |
| --without-pango" |
| |
| EXECUTABLES=" |
| utilities/animate${NACL_EXEEXT} |
| utilities/compare${NACL_EXEEXT} |
| utilities/composite${NACL_EXEEXT} |
| utilities/conjure${NACL_EXEEXT} |
| utilities/convert${NACL_EXEEXT} |
| utilities/display${NACL_EXEEXT} |
| utilities/identify${NACL_EXEEXT} |
| utilities/import${NACL_EXEEXT} |
| utilities/mogrify${NACL_EXEEXT} |
| utilities/montage${NACL_EXEEXT} |
| utilities/stream${NACL_EXEEXT}" |
| |
| TEST_EXECUTABLES=" |
| tests/${EXE_DIR}wandtest${NACL_EXEEXT} |
| tests/${EXE_DIR}drawtest${NACL_EXEEXT} |
| tests/${EXE_DIR}validate${NACL_EXEEXT} |
| Magick++/${EXE_DIR}demo/flip${NACL_EXEEXT} |
| Magick++/${EXE_DIR}demo/detrans${NACL_EXEEXT} |
| Magick++/${EXE_DIR}demo/shapes${NACL_EXEEXT} |
| Magick++/${EXE_DIR}demo/gravity${NACL_EXEEXT} |
| Magick++/${EXE_DIR}demo/button${NACL_EXEEXT} |
| Magick++/${EXE_DIR}demo/zoom${NACL_EXEEXT} |
| Magick++/${EXE_DIR}demo/piddle${NACL_EXEEXT} |
| Magick++/${EXE_DIR}demo/demo${NACL_EXEEXT} |
| Magick++/${EXE_DIR}demo/analyze${NACL_EXEEXT} |
| Magick++/${EXE_DIR}tests/attributes${NACL_EXEEXT} |
| Magick++/${EXE_DIR}tests/exceptions${NACL_EXEEXT} |
| Magick++/${EXE_DIR}tests/readWriteImages${NACL_EXEEXT} |
| Magick++/${EXE_DIR}tests/coalesceImages${NACL_EXEEXT} |
| Magick++/${EXE_DIR}tests/color${NACL_EXEEXT} |
| Magick++/${EXE_DIR}tests/readWriteBlob${NACL_EXEEXT} |
| Magick++/${EXE_DIR}tests/averageImages${NACL_EXEEXT} |
| Magick++/${EXE_DIR}tests/morphImages${NACL_EXEEXT} |
| Magick++/${EXE_DIR}tests/montageImages${NACL_EXEEXT} |
| Magick++/${EXE_DIR}tests/coderInfo${NACL_EXEEXT} |
| Magick++/${EXE_DIR}tests/appendImages${NACL_EXEEXT} |
| Magick++/${EXE_DIR}tests/colorHistogram${NACL_EXEEXT}" |
| |
| ConfigureStep() { |
| # TODO: Remove when this is fixed. |
| # https://code.google.com/p/nativeclient/issues/detail?id=3205 |
| if [ "$NACL_ARCH" = "arm" ]; then |
| NACLPORTS_CFLAGS="${NACLPORTS_CFLAGS/-O2/-O1}" |
| fi |
| DefaultConfigureStep |
| } |
| |
| TestStep() { |
| # The tests as (a) very slow and (b) not all passing at this point. |
| return 0 |
| |
| # As part of 'make check' there will be several test executables built. |
| # We need to create the script that launch them ahead of time. |
| for EXE in ${TEST_EXECUTABLES}; do |
| WriteLauncherScript ${EXE%%${NACL_EXEEXT}} $(basename ${EXE}) |
| done |
| LogExecute make check |
| } |