# 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/.

with Files("**"):
    BUG_COMPONENT = ("Core", "Layout")

DIRS += [
    "style",
    "base",
    "build",
    "generic",
    "forms",
    "tables",
    "svg",
    "xul",
    "ipc",
    "mathml",
    "inspector",
    "reftests",
    "painting",
    "printing",
]


IPDL_SOURCES = [
    "printing/ipc/PRemotePrintJob.ipdl",
]

include("/ipc/chromium/chromium-config.mozbuild")

FINAL_LIBRARY = "xul"

TEST_DIRS += [
    "tools/reftest",
]

if CONFIG["MOZ_LAYOUT_DEBUGGER"] and CONFIG["MOZ_WIDGET_TOOLKIT"] != "android":
    DIRS += ["tools/layout-debug"]

CRASHTEST_MANIFESTS += ["../testing/crashtest/crashtests.list"]

SPHINX_TREES["/layout"] = "docs"
