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

Side by Side Diff: ports/libyuv/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="convert libyuv_unittest" 5 EXECUTABLES="convert libyuv_unittest"
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 EnableGlibcCompat 14 EnableGlibcCompat
15 15
16 EXTRA_CMAKE_ARGS="-DTEST=ON" 16 EXTRA_CMAKE_ARGS="-DTEST=ON"
17 EXTRA_CMAKE_ARGS+=" -DGTEST_SRC_DIR=${GTEST_SRC}" 17 EXTRA_CMAKE_ARGS+=" -DGTEST_SRC_DIR=${GTEST_SRC}"
18 18
19 TestStep() { 19 TestStep() {
20 # TODO(sbc): figure out why these tests fail 20 # TODO(sbc): figure out why these tests fail
21 # https://bugs.chromium.org/p/naclports/issues/detail?id=216 21 # https://bugs.chromium.org/p/naclports/issues/detail?id=216
22 if [[ ${NACL_ARCH} == i686 && ${TOOLCHAIN} == glibc ]]; then 22 if [[ ${NACL_ARCH} == i686 && ${TOOLCHAIN} == glibc ]]; then
23 filter="--gtest_filter=-libyuvTest.Psnr:libyuvTest.Ssim" 23 filter="--gtest_filter=-libyuvTest.Psnr:libyuvTest.Ssim"
24 elif [[ ${NACL_ARCH} == x86_64 && ${TOOLCHAIN} == glibc ]]; then 24 elif [[ ${NACL_ARCH} == x86_64 && ${TOOLCHAIN} == glibc ]]; then
25 filter="--gtest_filter=-libyuvTest.ARGBRect_Unaligned" 25 filter="--gtest_filter=-libyuvTest.ARGBRect_Unaligned"
26 elif [[ ${NACL_ARCH} == pnacl ]]; then 26 elif [[ ${NACL_ARCH} == pnacl || ${NACL_ARCH} == le32 ]]; then
27 filter="--gtest_filter=" 27 filter="--gtest_filter="
28 filter+="-libyuvTest.MJPGToI420" 28 filter+="-libyuvTest.MJPGToI420"
29 filter+=":libyuvTest.MJPGToARGB" 29 filter+=":libyuvTest.MJPGToARGB"
30 filter+=":LibYUVConvertTest.MJPGToI420" 30 filter+=":LibYUVConvertTest.MJPGToI420"
31 filter+=":LibYUVConvertTest.MJPGToARGB" 31 filter+=":LibYUVConvertTest.MJPGToARGB"
32 else 32 else
33 filter= 33 filter=
34 fi 34 fi
35 35
36 LogExecute ./libyuv_unittest.sh ${filter} 36 LogExecute ./libyuv_unittest.sh ${filter}
37 } 37 }
OLDNEW
« make_all.sh ('K') | « ports/libvpx/nacl.patch ('k') | ports/mp4v2/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698