Bug 844654 - Part 1: Support MODULE in moz.build; r=gps

This commit is contained in:
Mike Shal 2013-03-19 11:46:00 -07:00
parent b2f91e92ef
commit fda83f85b9
2 changed files with 12 additions and 0 deletions

View File

@ -74,6 +74,8 @@ class TreeMetadataEmitter(object):
# them. We should aim to keep this set small because it violates the
# desired abstraction of the build definition away from makefiles.
passthru = VariablePassthru(sandbox)
if sandbox['MODULE']:
passthru.variables['MODULE'] = sandbox['MODULE']
if sandbox['XPIDL_SOURCES']:
passthru.variables['XPIDLSRCS'] = sandbox['XPIDL_SOURCES']
if sandbox['XPIDL_MODULE']:

View File

@ -141,6 +141,16 @@ VARIABLES = {
variables declared during configure.
"""),
'MODULE': (unicode, "",
"""Module name.
Historically, this variable was used to describe where to install header
files, but that feature is now handled by EXPORTS_NAMESPACES. Currently
it is used as the XPIDL module name if XPIDL_MODULE is not defined, but
using XPIDL_MODULE directly is preferred. MODULE will likely be removed
in the future.
"""),
# IDL Generation.
'XPIDL_SOURCES': (list, [],
"""XPCOM Interface Definition Files (xpidl).