Bug 1919083 - [ci] Enable os-integration variant for more suites, r=jmaher
[gecko.git] / xpcom / components / moz.build
blobe62b56b44a91a335cff20cfbf21e017aa85640af
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 XPIDL_SOURCES += [
8     "nsICategoryManager.idl",
9     "nsIClassInfo.idl",
10     "nsIComponentManager.idl",
11     "nsIComponentRegistrar.idl",
12     "nsIFactory.idl",
13     "nsIServiceManager.idl",
16 XPIDL_MODULE = "xpcom_components"
18 EXPORTS += [
19     "nsCategoryCache.h",
20     "nsCategoryManagerUtils.h",
21     "nsComponentManagerUtils.h",
22     "nsServiceManagerUtils.h",
25 EXPORTS.mozilla += [
26     "GenericFactory.h",
27     "Module.h",
28     "ModuleUtils.h",
31 XPCOM_MANIFESTS += [
32     "components.conf",
35 if CONFIG["COMPILE_ENVIRONMENT"]:
36     EXPORTS.mozilla += [
37         "!Components.h",
38     ]
40     GeneratedFile(
41         "Components.h",
42         "StaticComponentData.h",
43         "StaticComponents.cpp",
44         "services.json",
45         "components.rs",
46         script="gen_static_components.py",
47         inputs=["!manifest-lists.json", "StaticComponents.cpp.in"],
48     )
50 UNIFIED_SOURCES += [
51     "GenericFactory.cpp",
52     "ManifestParser.cpp",
53     "nsCategoryCache.cpp",
54     "nsCategoryManager.cpp",
55     "nsComponentManager.cpp",
56     "nsComponentManagerUtils.cpp",
59 SOURCES += [
60     "!StaticComponents.cpp",
63 FINAL_LIBRARY = "xul"
65 LOCAL_INCLUDES += [
66     "!..",
67     "../base",
68     "../build",
69     "../ds",
70     "/chrome",
71     "/js/xpconnect/loader",
72     "/js/xpconnect/src",
73     "/layout/build",
74     "/modules/libjar",
77 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
78     CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
80 include("/ipc/chromium/chromium-config.mozbuild")
82 PYTHON_UNITTEST_MANIFESTS += [
83     "test/python.toml",