Skip to content

Commit

Permalink
Backed out changeset 7785b40af14f for landing with the wrong bug numb…
Browse files Browse the repository at this point in the history
…er in the commit message.
  • Loading branch information
rvandermeulen committed Aug 26, 2016
1 parent e5acc58 commit c43f3da
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion media/libpng/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ UNIFIED_SOURCES += [
'pngwutil.c'
]

if CONFIG['CPU_ARCH'] == 'arm':
if CONFIG['MOZ_PNG_ARM_NEON']:
DEFINES['MOZ_PNG_HAVE_ARM_NEON'] = True
UNIFIED_SOURCES += [
'arm/arm_init.c',
Expand Down
26 changes: 26 additions & 0 deletions old-configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -2207,6 +2207,8 @@ if test "$MOZ_LINKER" = 1 -a "$MOZ_SYSTEM_ZLIB" != 1; then
AC_MSG_ERROR([Custom dynamic linker requires --with-system-zlib])
fi

MOZ_PNG_ARM_NEON=

if test -z "$SKIP_LIBRARY_CHECKS"; then
dnl system BZIP2 Support
dnl ========================================================
Expand Down Expand Up @@ -2282,8 +2284,32 @@ if test "${PNG_DIR}" -a -d "${PNG_DIR}" -a "$MOZ_SYSTEM_PNG" = 1; then
MOZ_PNG_LIBS="-L${PNG_DIR}/lib ${MOZ_PNG_LIBS}"
fi

if test "$MOZ_SYSTEM_PNG" != 1 -a "$CPU_ARCH" = "arm" ; then
MOZ_ARG_ENABLE_STRING(png-arm-neon-support,
[ --enable-png-arm-neon-support=TYPE
Options include:
no
check (default)
nocheck (faster but unsafe)],
[MOZ_PNG_ARM_NEON_SUPPORT=$enableval ] )
case "$MOZ_PNG_ARM_NEON_SUPPORT" in
no)
# enable-png-arm-neon-support = no
;;
nocheck)
# enable-png-arm-neon-support = nocheck
MOZ_PNG_ARM_NEON=1
;;
*)
MOZ_PNG_ARM_NEON=1
;;
esac
fi

fi # SKIP_LIBRARY_CHECKS

AC_SUBST(MOZ_PNG_ARM_NEON)

dnl ========================================================
dnl =
dnl = Application
Expand Down

0 comments on commit c43f3da

Please sign in to comment.