js/moz.build
author Chris Manchester <cmanchester@mozilla.com>
Wed, 25 Oct 2017 15:11:54 -0700
changeset 388385 f11039e7ba7a394f4d186f29d0e586ac65f4b874
parent 385963 547109f6eb1d3c93cd60a59cf8d2293b6e0b08b4
child 391586 c1848b8de242de268de93281ce963599413989c6
permissions -rw-r--r--
Bug 1403346 - Use AC_SUBST_LIST for various configure variables containing compile flags. r=glandium MozReview-Commit-ID: 6BjKBSVGAw4

component_engine = ('Core', 'JavaScript Engine')
component_gc     = ('Core', 'JavaScript: GC')
component_jit    = ('Core', 'JavaScript Engine: JIT')

with Files("**"):
    BUG_COMPONENT = component_engine

for header in ('GCAnnotations.h', 'GCAPI.h', 'HeapAPI.h', 'RootingAPI.h', 'SliceBudget.h', 'SweepingAPI.h', 'TraceKind.h', 'TracingAPI.h', 'WeakMapPtr.h', 'GCHashTable.h', 'GCPolicyAPI.h', 'GCVariant.h', 'GCVector.h'):
    with Files('public/' + header):
        BUG_COMPONENT = component_gc

with Files('public/TrackedOptimizationInfo.h'):
    BUG_COMPONENT = component_jit

with Files("src/**"):
    SCHEDULES.inclusive += ['jittest', 'jsreftest']

with Files("public/**"):
    SCHEDULES.inclusive += ['jittest', 'jsreftest']