Bug 1219530 - Add MOZ_RUST_MP4PARSE feature switch. r=glandium

Add a switch to enable the rust mp4parser code through confvars.sh
and set this for browser targets. Configure will only pass this
through as a CPP define if the rust toolchain is available.

The MOZ_RUST check is hoisted to an outer conditional to
make it cleaner to add other features.

Thanks to zhoubcfan@163.com for the typo fix in configure.in.
This commit is contained in:
Ralph Giles 2015-11-02 16:40:00 -08:00
parent 5854131a01
commit 582f7f8a69
2 changed files with 8 additions and 0 deletions

View File

@ -63,6 +63,7 @@ MOZ_PAY=1
MOZ_ACTIVITIES=1
MOZ_JSDOWNLOADS=1
MOZ_WEBM_ENCODER=1
MOZ_RUST_MP4PARSE=1
# Enable checking that add-ons are signed by the trusted root
MOZ_ADDON_SIGNING=1

View File

@ -4030,6 +4030,13 @@ if test -n "$MOZ_B2GDROID"; then
AC_DEFINE(MOZ_B2GDROID)
fi
# Propagate feature switches for code written in rust from confvars.sh
if test -n "$MOZ_RUST"; then
if test -n "$MOZ_RUST_MP4PARSE"; then
AC_DEFINE(MOZ_RUST_MP4PARSE)
fi
fi
AC_SUBST(MOZ_BUILD_APP)
AC_SUBST(MOZ_PHOENIX)
AC_SUBST(MOZ_XULRUNNER)