moz.build (2201B)
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 with Files("**"): 8 BUG_COMPONENT = ("Core", "Graphics") 9 10 EXPORTS.mozilla += ["D3DMessageUtils.h", "GfxMessageUtils.h"] 11 12 EXPORTS.mozilla.gfx += [ 13 "CanvasManagerChild.h", 14 "CanvasManagerParent.h", 15 "CanvasRenderThread.h", 16 "CanvasShutdownManager.h", 17 "CrossProcessPaint.h", 18 "FileHandleWrapper.h", 19 "GPUChild.h", 20 "GPUParent.h", 21 "GPUProcessHost.h", 22 "GPUProcessImpl.h", 23 "GPUProcessListener.h", 24 "GPUProcessManager.h", 25 "VsyncBridgeChild.h", 26 "VsyncBridgeParent.h", 27 "VsyncIOThreadHolder.h", 28 ] 29 30 EXPORTS.mozilla.layers += [ 31 "CompositorOptions.h", 32 "CompositorSession.h", 33 "InProcessCompositorSession.h", 34 "OverlayInfo.h", 35 "RemoteCompositorSession.h", 36 ] 37 38 EXPORTS.mozilla.widget += [ 39 "CompositorWidgetVsyncObserver.h", 40 ] 41 42 UNIFIED_SOURCES += [ 43 "CanvasManagerChild.cpp", 44 "CanvasManagerParent.cpp", 45 "CanvasRenderThread.cpp", 46 "CanvasShutdownManager.cpp", 47 "CompositorSession.cpp", 48 "CompositorWidgetVsyncObserver.cpp", 49 "CrossProcessPaint.cpp", 50 "D3DMessageUtils.cpp", 51 "FileHandleWrapper.cpp", 52 "GPUChild.cpp", 53 "GPUProcessHost.cpp", 54 "GPUProcessImpl.cpp", 55 "GPUProcessManager.cpp", 56 "InProcessCompositorSession.cpp", 57 "RemoteCompositorSession.cpp", 58 "VsyncBridgeChild.cpp", 59 "VsyncBridgeParent.cpp", 60 "VsyncIOThreadHolder.cpp", 61 ] 62 63 SOURCES += [ 64 "GPUParent.cpp", 65 ] 66 67 IPDL_SOURCES = [ 68 "GraphicsMessages.ipdlh", 69 "PCanvasManager.ipdl", 70 "PVsyncBridge.ipdl", 71 ] 72 73 PREPROCESSED_IPDL_SOURCES += [ 74 "PGPU.ipdl", 75 ] 76 77 LOCAL_INCLUDES += [ 78 "/dom/ipc", 79 "/gfx/cairo/cairo/src", 80 "/ipc/glue", 81 "/toolkit/crashreporter", 82 "/xpcom/threads", 83 ] 84 85 include("/ipc/chromium/chromium-config.mozbuild") 86 87 FINAL_LIBRARY = "xul" 88 89 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": 90 CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"] 91 92 CXXFLAGS += ["-Werror=switch"] 93 94 LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]