Bug 1883861 - Part 1: Move visitMemoryBarrier into the common CodeGenerator file...
[gecko.git] / xpcom / build / moz.build
blob5261c0452386b92f87b691221d1ca92465cb11d4
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 EXPORTS += [
8     "nsXPCOM.h",
9     "nsXPCOMCID.h",
10     "nsXPCOMCIDInternal.h",
11     "nsXULAppAPI.h",
12     "XREChildData.h",
13     "XREShellData.h",
16 EXPORTS.mozilla += [
17     "!GeckoProcessTypes.h",
18     "!Services.h",
19     "FileLocation.h",
20     "IOInterposer.h",
21     "LateWriteChecks.h",
22     "Omnijar.h",
23     "PoisonIOInterposer.h",
24     "SmallArrayLRUCache.h",
25     "XPCOM.h",
26     "XREAppData.h",
29 if CONFIG["OS_ARCH"] == "WINNT":
30     EXPORTS.mozilla += [
31         "perfprobe.h",
32     ]
33     SOURCES += [
34         "perfprobe.cpp",
35         "PoisonIOInterposerBase.cpp",
36         "PoisonIOInterposerWin.cpp",
37     ]
38 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
39     UNIFIED_SOURCES += [
40         "PoisonIOInterposerBase.cpp",
41         "PoisonIOInterposerMac.cpp",
42     ]
43     if CONFIG["TARGET_CPU"] != "aarch64":
44         SOURCES += ["mach_override.c"]
45         SOURCES["mach_override.c"].flags += ["-Wno-unused-function"]
46 else:
47     SOURCES += ["PoisonIOInterposerStub.cpp"]
49 include("../glue/objs.mozbuild")
51 XPCOM_MANIFESTS += [
52     "components.conf",
55 UNIFIED_SOURCES += xpcom_gluens_src_cppsrcs
56 UNIFIED_SOURCES += xpcom_glue_src_cppsrcs
58 UNIFIED_SOURCES += [
59     "FileLocation.cpp",
60     "IOInterposer.cpp",
61     "LateWriteChecks.cpp",
62     "MainThreadIOLogger.cpp",
63     "Omnijar.cpp",
64     "XPCOMInit.cpp",
67 SOURCES += ["!Services.cpp"]
69 if CONFIG["OS_ARCH"] != "WINNT":
70     SOURCES += [
71         "NSPRInterposer.cpp",
72     ]
74 GeneratedFile("Services.cpp", script="Services.py", entry_point="services_cpp")
75 GeneratedFile("Services.h", script="Services.py", entry_point="services_h")
76 GeneratedFile(
77     "GeckoProcessTypes.h",
78     script="gen_process_types.py",
79     entry_point="main",
82 include("/ipc/chromium/chromium-config.mozbuild")
84 FINAL_LIBRARY = "xul"
86 DEFINES["_IMPL_NS_STRINGAPI"] = True
87 DEFINES["OMNIJAR_NAME"] = CONFIG["OMNIJAR_NAME"]
89 LOCAL_INCLUDES += [
90     "!..",
91     "../base",
92     "../components",
93     "../ds",
94     "../glue",
95     "../io",
96     "../threads",
97     "/chrome",
98     "/docshell/base",
99     "/js/xpconnect/loader",
102 if CONFIG["MOZ_VPX"]:
103     LOCAL_INCLUDES += [
104         "/media/libvpx",
105     ]
107 if CONFIG["MOZ_PHC"]:
108     DEFINES["MOZ_PHC"] = 1