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

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

Issue 1729913003: Update libyuv port (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « docs/port_list.md ('k') | ports/libyuv/nacl.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 if [[ ${NACL_ARCH} == x86_64 ]]; then
17 NACLPORTS_CPPFLAGS+=" -DLIBYUV_DISABLE_X86=1"
18 fi
19
20 EXTRA_CMAKE_ARGS="-DTEST=ON" 16 EXTRA_CMAKE_ARGS="-DTEST=ON"
21 EXTRA_CMAKE_ARGS+=" -DGTEST_SRC_DIR=${GTEST_SRC}" 17 EXTRA_CMAKE_ARGS+=" -DGTEST_SRC_DIR=${GTEST_SRC}"
22 18
23 TestStep() { 19 TestStep() {
24 # TODO(sbc): figure out why these tests fail 20 # TODO(sbc): figure out why these tests fail
25 # https://bugs.chromium.org/p/naclports/issues/detail?id=216 21 # https://bugs.chromium.org/p/naclports/issues/detail?id=216
26 if [[ ${NACL_ARCH} == i686 && ${TOOLCHAIN} == glibc ]]; then 22 if [[ ${NACL_ARCH} == i686 && ${TOOLCHAIN} == glibc ]]; then
27 filter="--gtest_filter=-libyuvTest.Psnr:libyuvTest.Ssim" 23 filter="--gtest_filter=-libyuvTest.Psnr:libyuvTest.Ssim"
28 elif [[ ${NACL_ARCH} == x86_64 && ${TOOLCHAIN} == glibc ]]; then 24 elif [[ ${NACL_ARCH} == x86_64 && ${TOOLCHAIN} == glibc ]]; then
29 filter="--gtest_filter=-libyuvTest.ARGBRect_Unaligned" 25 filter="--gtest_filter=-libyuvTest.ARGBRect_Unaligned"
30 elif [[ ${NACL_ARCH} == pnacl ]]; then 26 elif [[ ${NACL_ARCH} == pnacl ]]; then
31 filter="--gtest_filter=-libyuvTest.MJPGToI420:libyuvTest.MJPGToARGB" 27 filter="--gtest_filter="
28 filter+="-libyuvTest.MJPGToI420"
29 filter+=":libyuvTest.MJPGToARGB"
30 filter+=":LibYUVConvertTest.MJPGToI420"
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
« no previous file with comments | « docs/port_list.md ('k') | ports/libyuv/nacl.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698