Bug 1794893 - WebGLMemoryTracker ensured-registered in WebGLContext::ctor. r=gfx...
[gecko.git] / toolkit / components / moz.build
blob1a0493f1cd609f558fda0fdbe241e252852a64fe
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/.
7 with Files("**"):
8     BUG_COMPONENT = ("Toolkit", "General")
10 # These component dirs are built for all apps (including suite)
11 if CONFIG["MOZ_HAS_REMOTE"]:
12     DIRS += ["remote"]
14 DIRS += [
15     "aboutcheckerboard",
16     "aboutmemory",
17     "aboutprocesses",
18     "alerts",
19     "antitracking",
20     "apppicker",
21     "asyncshutdown",
22     "backgroundhangmonitor",
23     "bitsdownload",
24     "browser",
25     "cascade_bloom_filter",
26     "certviewer",
27     "cleardata",
28     "clearsitedata",
29     "cookiebanners",
30     "commandlines",
31     "contentanalysis",
32     "contentprefs",
33     "contextualidentity",
34     "crashes",
35     "crashmonitor",
36     "credentialmanagement",
37     "downloads",
38     "enterprisepolicies",
39     "extensions",
40     "featuregates",
41     "formautofill",
42     "finalizationwitness",
43     "find",
44     "forgetaboutsite",
45     "glean",
46     "httpsonlyerror",
47     "jsoncpp/src/lib_json",
48     "kvstore",
49     "mediasniffer",
50     "mozintl",
51     "mozprotocol",
52     "parentalcontrols",
53     "passwordmgr",
54     "pdfjs",
55     "pictureinpicture",
56     "places",
57     "processtools",
58     "processsingleton",
59     "promiseworker",
60     "prompts",
61     "protobuf",
62     "remotebrowserutils",
63     "reflect",
64     "reputationservice",
65     "reportbrokensite",
66     "resistfingerprinting",
67     "search",
68     "sessionstore",
69     "shell",
70     "shopping",
71     "startup",
72     "statusfilter",
73     "telemetry",
74     "translation",
75     "translations",
76     "thumbnails",
77     "timermanager",
78     "tooltiptext",
79     "typeaheadfind",
80     "utils",
81     "url-classifier",
82     "urlformatter",
83     "viewsource",
84     "windowcreator",
85     "windowwatcher",
86     "workerloader",
87     "xulstore",
90 if CONFIG["NS_PRINTING"]:
91     DIRS += ["printing"]
93 if CONFIG["MOZ_BUILD_APP"] != "mobile/android":
94     DIRS += [
95         "aboutconfig",
96         "narrate",
97         "reader",
98         "viaduct",
99         "uniffi-js",
100         "uniffi-bindgen-gecko-js/components",
101     ]
103 if CONFIG["BUILD_CTYPES"]:
104     DIRS += ["ctypes"]
106 DIRS += ["autocomplete", "printingui", "satchel", "captivedetect"]
108 if CONFIG["OS_TARGET"] != "Android":
109     DIRS += ["terminator"]
111 if CONFIG["MOZ_UPDATE_AGENT"]:
112     DIRS += ["taskscheduler"]
114 DIRS += ["build"]
116 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
117     DIRS += ["aboutthirdparty", "aboutwindowsmessages", "gfx"]
119 if CONFIG["MOZ_WIDGET_TOOLKIT"] != "android":
120     EXTRA_JS_MODULES += [
121         "DefaultCLH.sys.mjs",
122     ]
124     XPCOM_MANIFESTS += [
125         "components.conf",
126     ]
128 if CONFIG["MOZ_WIDGET_TOOLKIT"] not in ("android", "windows"):
129     DIRS += ["aboutwebauthn"]
131 if CONFIG["MOZ_BUILD_APP"] == "browser":
132     DIRS += ["normandy", "messaging-system"]
134 DIRS += ["nimbus"]
136 if CONFIG["MOZ_BACKGROUNDTASKS"]:
137     DIRS += ["backgroundtasks"]
139 # This is only packaged for browser since corrupt JAR and XPI files tend to be a desktop-OS problem.
140 if CONFIG["MOZ_BUILD_APP"] == "browser":
141     DIRS += ["corroborator"]
143 if CONFIG["MOZ_UNIFFI_FIXTURES"]:
144     DIRS += ["uniffi-bindgen-gecko-js/fixtures"]
147 UNIFIED_SOURCES += [
148     "/toolkit/components/antitracking/ContentBlockingAllowList.cpp",