summaryrefslogtreecommitdiff
path: root/packaging/nacl/ports/jpeg8d/build.sh
blob: f37218c8db9bc81bbe4ddc51d89d585dacc2a674 (plain) (blame)
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
#!/bin/bash
# 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.


if [ "${NACL_SHARED}" = "1" ]; then
  EXECUTABLES="rdjpgcom${NACL_EXEEXT} wrjpgcom${NACL_EXEEXT} \
      .libs/cjpeg${NACL_EXEEXT} .libs/djpeg${NACL_EXEEXT} \
      .libs/jpegtran${NACL_EXEEXT}"
else
  EXECUTABLES="rdjpgcom${NACL_EXEEXT} wrjpgcom${NACL_EXEEXT} \
      cjpeg${NACL_EXEEXT} djpeg${NACL_EXEEXT} jpegtran${NACL_EXEEXT}"
fi

TestStep() {
#  export SEL_LDR_LIB_PATH=$PWD/.libs
#  if [ "${NACL_ARCH}" = "pnacl" ]; then
#    for arch in x86-32 x86-64; do
#      for exe in ${EXECUTABLES}; do
#        local exe_noext=${exe%.*}
#        WriteSelLdrScriptForPNaCl ${exe_noext} ${exe_noext}.${arch}.nexe ${arch}
#      done
#      make test
#    done
#  else
#    if [ "${NACL_SHARED}" = "1" ]; then
#      for exe in ${EXECUTABLES}; do
#       local script=$(basename ${exe%.*})
#        WriteSelLdrScript ${script} ${exe}
#      done
#    fi
#    make test
#  fi
  return 0
}