moz.build (932B)
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- 2 # vim: set filetype=python: 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 DevToolsModules( 8 "events.js", 9 ) 10 11 XPCSHELL_TESTS_MANIFESTS += ["test/xpcshell/xpcshell.toml"] 12 13 # Compute where to put transpiled files into omni.ja package 14 # All DevTools modules are used via resource://devtools/ URI 15 # See devtools/shared/jar.mn for how this resource is mapped into jar package. 16 base = FINAL_TARGET_FILES.chrome.devtools.modules 17 18 # Now, navigate to the right sub-directory into devtools root modules folder 19 for dir in RELATIVEDIR.split("/"): 20 base = base[dir] 21 base += ["!event-list.json"] 22 23 GeneratedFile( 24 "event-list.json", 25 script="GenerateEventListFromHeaders.py", 26 inputs=["/dom/events/EventNameList.h"], 27 )