no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / gfx / vr / moz.build
blobec56fc56341d82e65803dc34234d8088d5064e56
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 EXPORTS += [
8     "external_api/moz_external_vr.h",
9     "FxROutputHandler.h",
10     "FxRWindowManager.h",
11     "gfxVR.h",
12     "ipc/VRChild.h",
13     "ipc/VRGPUChild.h",
14     "ipc/VRGPUParent.h",
15     "ipc/VRLayerChild.h",
16     "ipc/VRManagerChild.h",
17     "ipc/VRManagerParent.h",
18     "ipc/VRMessageUtils.h",
19     "ipc/VRParent.h",
20     "ipc/VRProcessChild.h",
21     "ipc/VRProcessManager.h",
22     "ipc/VRProcessParent.h",
23     "service/VRService.h",
24     "VRDisplayClient.h",
25     "VRDisplayPresentation.h",
26     "VRManager.h",
27     "VRPuppetCommandBuffer.h",
28     "VRShMem.h",
29     "VRThread.h",
32 LOCAL_INCLUDES += [
33     "/dom/base",
34     "/dom/canvas",
35     "/gfx/cairo/cairo/src",
36     "/gfx/layers/d3d11",
37     "/gfx/thebes",
40 UNIFIED_SOURCES += [
41     "gfxVR.cpp",
42     "ipc/VRChild.cpp",
43     "ipc/VRGPUChild.cpp",
44     "ipc/VRGPUParent.cpp",
45     "ipc/VRManagerChild.cpp",
46     "ipc/VRManagerParent.cpp",
47     "ipc/VRParent.cpp",
48     "ipc/VRProcessChild.cpp",
49     "ipc/VRProcessManager.cpp",
50     "ipc/VRProcessParent.cpp",
51     "VRDisplayClient.cpp",
52     "VRDisplayPresentation.cpp",
53     "VRThread.cpp",
56 SOURCES += [
57     "ipc/VRLayerChild.cpp",
58     "ipc/VRLayerParent.cpp",
59     "VRManager.cpp",
60     "VRPuppetCommandBuffer.cpp",
61     "VRShMem.cpp",
64 if CONFIG["OS_TARGET"] == "Android":
65     LOCAL_INCLUDES += ["/widget/android"]
66 else:
67     DIRS += [
68         "service",
69     ]
70     UNIFIED_SOURCES += [
71         "VRServiceHost.cpp",
72     ]
74 IPDL_SOURCES = [
75     "ipc/PVR.ipdl",
76     "ipc/PVRGPU.ipdl",
77     "ipc/PVRLayer.ipdl",
78     "ipc/PVRManager.ipdl",
81 # For now, only enable FxR CLH for Windows Nightly builds (BUG 1565349)
82 if CONFIG["OS_ARCH"] == "WINNT" and CONFIG["NIGHTLY_BUILD"]:
83     XPCOM_MANIFESTS += [
84         "components.conf",
85     ]
86     SOURCES += [
87         "nsFxrCommandLineHandler.cpp",
88     ]
90 if CONFIG["OS_ARCH"] == "WINNT":
91     LOCAL_INCLUDES += ["/layout/generic", "/widget", "/widget/windows"]
92     SOURCES += ["FxROutputHandler.cpp", "FxRWindowManager.cpp"]
94 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
95     CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
96     CFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
98 include("/ipc/chromium/chromium-config.mozbuild")
100 FINAL_LIBRARY = "xul"
102 with Files("**"):
103     BUG_COMPONENT = ("Core", "WebVR")