python/mozbuild/mozbuild/test/frontend/data/templates/templates.mozbuild
author Mike Hommey <mh+mozilla@glandium.org>
Sun, 24 Aug 2014 09:11:05 +0900
changeset 201230 313a81600191c795d8e6108dd1f5c53e04b15c00
permissions -rw-r--r--
Bug 1041941 - Add support for templates in moz.build. r=gps

@template
def Template(foo, bar=[]):
    SOURCES += foo
    DIRS += bar

@template
def TemplateError(foo):
    ILLEGAL = foo

@template
def TemplateGlobalVariable():
    SOURCES += illegal

@template
def TemplateGlobalUPPERVariable():
    SOURCES += DIRS

@template
def TemplateInherit(foo):
    USE_LIBS += ['foo']
    Template(foo)