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
7with Files("**"):
8    BUG_COMPONENT = ("Core", "Graphics")
9    SCHEDULES.inclusive += ["android-hw-gfx"]
10with Files("wr/**"):
11    BUG_COMPONENT = ("Core", "Graphics: WebRender")
12
13if CONFIG["MOZ_TREE_CAIRO"]:
14    DIRS += ["cairo"]
15
16if CONFIG["MOZ_SYSTEM_GRAPHITE2"]:
17    DIRS += ["graphite2/geckoextra"]
18else:
19    DIRS += ["graphite2/src" ]
20
21if not CONFIG["MOZ_SYSTEM_HARFBUZZ"]:
22    DIRS += ["harfbuzz/src"]
23
24DIRS += [
25    "2d",
26    "ycbcr",
27    "angle",
28    "src",
29    "qcms",
30    "gl",
31    "layers",
32    "ots/src",
33    "thebes",
34    "ipc",
35    "vr",
36    "config",
37    "webrender_bindings",
38    "wgpu_bindings",
39]
40
41if CONFIG["MOZ_ENABLE_SKIA"]:
42    DIRS += ["skia"]
43
44if CONFIG["ENABLE_TESTS"]:
45    DIRS += ["tests/gtest"]
46
47TEST_DIRS += ["tests"]
48
49SPHINX_TREES["/gfx"] = "docs"
50
51with Files("docs/**"):
52    SCHEDULES.exclusive = ["docs"]
53
54with Files("wr/**"):
55    SCHEDULES.exclusive = ["webrender"]
56
57with Files("webrender_bindings/**"):
58    SCHEDULES.exclusive = ["webrender"]
59