moz.build (2089B)
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/. 6 7 XPIDL_SOURCES += [ 8 "nsIFontEnumerator.idl", 9 ] 10 11 XPIDL_MODULE = "gfx" 12 13 DEFINES["MOZ_APP_VERSION"] = '"%s"' % CONFIG["MOZ_APP_VERSION"] 14 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", 40 ] 41 42 EXPORTS.mozilla += [ 43 "AppUnits.h", 44 "ArrayView.h", 45 "FontPropertyTypes.h", 46 "RelativeLuminanceUtils.h", 47 ] 48 49 EXPORTS.mozilla.gfx += [ 50 "AAStroke.h", 51 "CompositorHitTestInfo.h", 52 "Etagere.h", 53 "WPFGpuRaster.h", 54 ] 55 56 if CONFIG["MOZ_X11"]: 57 EXPORTS.mozilla += ["X11Util.h"] 58 SOURCES += [ 59 "X11Util.cpp", 60 ] 61 62 UNIFIED_SOURCES += [ 63 "DriverCrashGuard.cpp", 64 "FilterSupport.cpp", 65 "gfxCrashReporterUtils.cpp", 66 "gfxTelemetry.cpp", 67 "nsColor.cpp", 68 "nsFont.cpp", 69 "nsFontCache.cpp", 70 "nsFontMetrics.cpp", 71 "nsRect.cpp", 72 "nsRegion.cpp", 73 "nsThebesFontEnumerator.cpp", 74 "nsTransform2D.cpp", 75 ] 76 77 # nsDeviceContext.cpp cannot be built in unified mode because it pulls in OS X system headers. 78 SOURCES += [ 79 "nsDeviceContext.cpp", 80 ] 81 82 XPCOM_MANIFESTS += [ 83 "components.conf", 84 ] 85 86 include("/ipc/chromium/chromium-config.mozbuild") 87 88 LOCAL_INCLUDES += [ 89 "/dom/ipc", # for ContentChild.h 90 "/gfx/cairo/cairo/src", 91 ] 92 93 FINAL_LIBRARY = "xul" 94 95 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": 96 CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"] 97 CXXFLAGS += CONFIG["MOZ_PANGO_CFLAGS"]