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 it hoisted to an ourter conditional to
make it easier to add other features.
This commit is contained in:
Ralph Giles 2015-11-02 16:40:00 -08:00
parent 6fa60f7652
commit 72c053c9d7
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)