Bug 1891710: part 2) Enable <Element-outerHTML.html> WPT for Trusted Types. r=smaug
[gecko.git] / gfx / src / moz.build
blobdcfc6707040911a883bfe67d241351bd44bc0fe7
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     "nsCoord.h",
24     "nsDeviceContext.h",
25     "nsFont.h",
26     "nsFontCache.h",
27     "nsFontMetrics.h",
28     "nsGfxCIID.h",
29     "nsITheme.h",
30     "nsMargin.h",
31     "nsPoint.h",
32     "nsRect.h",
33     "nsRectAbsolute.h",
34     "nsRegion.h",
35     "nsRegionFwd.h",
36     "nsSize.h",
37     "nsTransform2D.h",
38     "RegionBuilder.h",
39     "X11UndefineNone.h",
42 EXPORTS.mozilla += [
43     "AppUnits.h",
44     "ArrayView.h",
45     "FontPropertyTypes.h",
46     "RelativeLuminanceUtils.h",
49 EXPORTS.mozilla.gfx += [
50     "AAStroke.h",
51     "CompositorHitTestInfo.h",
52     "WPFGpuRaster.h",
55 if CONFIG["MOZ_X11"]:
56     EXPORTS.mozilla += ["X11Util.h"]
57     SOURCES += [
58         "X11Util.cpp",
59     ]
61 UNIFIED_SOURCES += [
62     "DriverCrashGuard.cpp",
63     "FilterSupport.cpp",
64     "gfxCrashReporterUtils.cpp",
65     "gfxTelemetry.cpp",
66     "nsColor.cpp",
67     "nsFont.cpp",
68     "nsFontCache.cpp",
69     "nsFontMetrics.cpp",
70     "nsRect.cpp",
71     "nsRegion.cpp",
72     "nsThebesFontEnumerator.cpp",
73     "nsTransform2D.cpp",
76 # nsDeviceContext.cpp cannot be built in unified mode because it pulls in OS X system headers.
77 SOURCES += [
78     "nsDeviceContext.cpp",
81 XPCOM_MANIFESTS += [
82     "components.conf",
85 include("/ipc/chromium/chromium-config.mozbuild")
87 LOCAL_INCLUDES += [
88     "/dom/ipc",  # for ContentChild.h
89     "/gfx/cairo/cairo/src",
92 FINAL_LIBRARY = "xul"
94 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
95     CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
96     CXXFLAGS += CONFIG["MOZ_PANGO_CFLAGS"]