Bug 1732219 - Add API for fetching the preview image. r=geckoview-reviewers,agi,mconley
[gecko.git] / gfx / src / moz.build
blob6e5d1e2e78953754ac469811f91d29f62a339824
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     "CompositorHitTestInfo.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 CXXFLAGS += CONFIG["TK_CFLAGS"]
96 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
97     CXXFLAGS += CONFIG["MOZ_PANGO_CFLAGS"]