js/moz.build
author Bryce Van Dyk <bvandyk@mozilla.com>
Mon, 27 Aug 2018 16:25:54 +0000
changeset 488616 259675bd67f96acf1ae0f2ed6115de4331a94d32
parent 450044 976c7e62b6378202ad609d74bb7af904da83ac9a
permissions -rw-r--r--
Bug 1486502 - Add widevine CDM headers to third party paths, clang-format ignore. r=sylvestre We wish to keep the widevine headers in the same formatting as upstream to ease comparison and as we do not modify these files. This patch adds the existing headers, as well as another we anticipate pulling down for our next bump (content_decryption_module_proxy.h) to the ignored paths. These files are ignored individually rather than the whole directory they're in, as we also have Mozilla code in that dir. Differential Revision: https://phabricator.services.mozilla.com/D4347

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']