Skip to content

Commit

Permalink
Bug 1296946 - Move enabling ARM-NEON PNG from old-configure.in to lib…
Browse files Browse the repository at this point in the history
…png/moz.build. r=jrmuizel

DONTBUILD
  • Loading branch information
glennrp committed Aug 24, 2016
1 parent c43f3da commit 85a7ee4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
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['MOZ_PNG_ARM_NEON']:
if CONFIG['CPU_ARCH'] == 'arm':
DEFINES['MOZ_PNG_HAVE_ARM_NEON'] = True
UNIFIED_SOURCES += [
'arm/arm_init.c',
Expand Down
26 changes: 0 additions & 26 deletions old-configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -2207,8 +2207,6 @@ 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 @@ -2284,32 +2282,8 @@ 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 85a7ee4

Please sign in to comment.