2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2015-10-07 02:01:24 +03:00
|
|
|
# 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/.
|
|
|
|
|
2018-03-20 17:52:54 +03:00
|
|
|
if CONFIG["MOZ_DEVTOOLS"] and CONFIG["MOZ_DEVTOOLS"] not in ("all", "server"):
|
2015-10-23 10:39:38 +03:00
|
|
|
error("Unsupported MOZ_DEVTOOLS value: %s" % (CONFIG["MOZ_DEVTOOLS"]))
|
|
|
|
|
2015-10-07 02:01:24 +03:00
|
|
|
if CONFIG["MOZ_DEVTOOLS"] == "all":
|
|
|
|
DIRS += [
|
|
|
|
"client",
|
|
|
|
]
|
|
|
|
|
2017-05-15 19:53:19 +03:00
|
|
|
# `platform` contains all native components
|
2015-10-23 10:39:38 +03:00
|
|
|
DIRS += [
|
2018-04-06 13:22:53 +03:00
|
|
|
"platform",
|
2018-03-20 17:52:54 +03:00
|
|
|
"server",
|
|
|
|
"shared",
|
2018-03-12 16:41:48 +03:00
|
|
|
"startup",
|
2015-10-23 10:39:38 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
# /browser uses DIST_SUBDIR. We opt-in to this treatment when building
|
|
|
|
# DevTools for the browser to keep the root omni.ja slim for use by external XUL
|
2018-09-12 09:07:32 +03:00
|
|
|
# apps.
|
2017-04-18 12:39:53 +03:00
|
|
|
if CONFIG["MOZ_BUILD_APP"] == "browser":
|
2015-10-23 10:39:38 +03:00
|
|
|
DIST_SUBDIR = "browser"
|
|
|
|
export("DIST_SUBDIR")
|
2017-01-13 16:40:35 +03:00
|
|
|
|
2017-03-22 17:49:14 +03:00
|
|
|
with Files("**"):
|
2018-06-20 21:34:40 +03:00
|
|
|
BUG_COMPONENT = ("DevTools", "General")
|
2020-06-15 16:38:46 +03:00
|
|
|
SCHEDULES.exclusive = ["linux", "macosx", "windows"]
|
2017-03-22 17:49:14 +03:00
|
|
|
|
|
|
|
with Files("docs/**"):
|
2018-06-20 21:34:40 +03:00
|
|
|
BUG_COMPONENT = ("DevTools", "General")
|
2017-03-22 17:49:14 +03:00
|
|
|
|
|
|
|
with Files("docs/tools/memory-panel.md"):
|
2018-06-20 21:34:40 +03:00
|
|
|
BUG_COMPONENT = ("DevTools", "Memory")
|
2017-03-22 17:49:14 +03:00
|
|
|
|
|
|
|
with Files("docs/tools/debugger-panel.md"):
|
2018-06-20 21:34:40 +03:00
|
|
|
BUG_COMPONENT = ("DevTools", "Debugger")
|
2017-03-22 17:49:14 +03:00
|
|
|
|
|
|
|
with Files("docs/backend/debugger-api.md"):
|
2018-06-20 21:34:40 +03:00
|
|
|
BUG_COMPONENT = ("DevTools", "Debugger")
|
2017-03-22 17:49:14 +03:00
|
|
|
|
2019-11-26 11:43:59 +03:00
|
|
|
with Files("docs/tools/console-panel.md"):
|
2018-06-20 21:34:40 +03:00
|
|
|
BUG_COMPONENT = ("DevTools", "Console")
|
2017-03-22 17:49:14 +03:00
|
|
|
|
|
|
|
with Files("docs/tools/inspector-panel.md"):
|
2018-06-20 21:34:40 +03:00
|
|
|
BUG_COMPONENT = ("DevTools", "Inspector")
|
2019-11-25 17:00:33 +03:00
|
|
|
|
|
|
|
SPHINX_TREES["/devtools"] = "docs"
|