summaryrefslogtreecommitdiffstats
path: root/devtools/shared/webconsole/moz.build
blob: a15db593b5daa31bcd8cace2cdec6f04a20146b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

if CONFIG["OS_TARGET"] != "Android":
    MOCHITEST_CHROME_MANIFESTS += ["test/chrome/chrome.toml"]
    XPCSHELL_TESTS_MANIFESTS += ["test/xpcshell/xpcshell.toml"]
    BROWSER_CHROME_MANIFESTS += ["test/browser/browser.toml"]

# Compute where to put transpiled files into omni.ja package
# All DevTools modules are used via resource://devtools/ URI
# See devtools/shared/jar.mn for how this resource is mapped into jar package.
base = FINAL_TARGET_FILES.chrome.devtools.modules

# Now, navigate to the right sub-directory into devtools root modules folder
for dir in RELATIVEDIR.split("/"):
    base = base[dir]
base += ["!reserved-js-words.js"]

GeneratedFile(
    "reserved-js-words.js",
    script="GenerateReservedWordsJS.py",
    inputs=["/js/src/frontend/ReservedWords.h"],
)

DevToolsModules(
    "analyze-input-string.js",
    "js-property-provider.js",
    "messages.js",
    "parser-helper.js",
)