Bug 1839170 - Refactor Snap pulling, Add Firefox Snap Core22 and GNOME 42 SDK symbols...
[gecko.git] / gfx / src / moz.build
blob48b9c44039519954a39d0f9c490a7dd2060ec414
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     "nsIFontEnumerator.idl",
11 XPIDL_MODULE = "gfx"
13 DEFINES["MOZ_APP_VERSION"] = '"%s"' % CONFIG["MOZ_APP_VERSION"]
15 EXPORTS += [
16     "DriverCrashGuard.h",
17     "FilterDescription.h",
18     "FilterSupport.h",
19     "gfxCrashReporterUtils.h",
20     "gfxTelemetry.h",
21     "nsBoundingMetrics.h",
22     "nsColor.h",
23     "nsColorNameList.h",
24     "nsColorNames.h",
25     "nsCoord.h",
26     "nsDeviceContext.h",
27     "nsFont.h",
28     "nsFontCache.h",
29     "nsFontMetrics.h",
30     "nsGfxCIID.h",
31     "nsITheme.h",
32     "nsMargin.h",
33     "nsPoint.h",
34     "nsRect.h",
35     "nsRectAbsolute.h",
36     "nsRegion.h",
37     "nsRegionFwd.h",
38     "nsSize.h",
39     "nsTransform2D.h",
40     "RegionBuilder.h",
41     "X11UndefineNone.h",
44 EXPORTS.mozilla += [
45     "AppUnits.h",
46     "ArrayView.h",
47     "FontPropertyTypes.h",
48     "RelativeLuminanceUtils.h",
51 EXPORTS.mozilla.gfx += [
52     "AAStroke.h",
53     "CompositorHitTestInfo.h",
54     "WPFGpuRaster.h",
57 if CONFIG["MOZ_X11"]:
58     EXPORTS.mozilla += ["X11Util.h"]
59     SOURCES += [
60         "X11Util.cpp",
61     ]
63 UNIFIED_SOURCES += [
64     "DriverCrashGuard.cpp",
65     "FilterSupport.cpp",
66     "gfxCrashReporterUtils.cpp",
67     "gfxTelemetry.cpp",
68     "nsColor.cpp",
69     "nsFont.cpp",
70     "nsFontCache.cpp",
71     "nsFontMetrics.cpp",
72     "nsRect.cpp",
73     "nsRegion.cpp",
74     "nsThebesFontEnumerator.cpp",
75     "nsTransform2D.cpp",
78 # nsDeviceContext.cpp cannot be built in unified mode because it pulls in OS X system headers.
79 SOURCES += [
80     "nsDeviceContext.cpp",
83 XPCOM_MANIFESTS += [
84     "components.conf",
87 include("/ipc/chromium/chromium-config.mozbuild")
89 LOCAL_INCLUDES += [
90     "/dom/ipc",  # for ContentChild.h
91     "/gfx/cairo/cairo/src",
94 FINAL_LIBRARY = "xul"
96 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
97     CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
98     CXXFLAGS += CONFIG["MOZ_PANGO_CFLAGS"]