Bug 1567650 [wpt PR 17950] - [ElementTiming] Replace responseEnd with loadTime, a...
[gecko.git] / gfx / vr / moz.build
blob6d367d185c8448d30c3932e549d04667f79157c4
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     'gfxVR.h',
10     'ipc/VRChild.h',
11     'ipc/VRGPUChild.h',
12     'ipc/VRGPUParent.h',
13     'ipc/VRLayerChild.h',
14     'ipc/VRManagerChild.h',
15     'ipc/VRManagerParent.h',
16     'ipc/VRMessageUtils.h',
17     'ipc/VRParent.h',
18     'ipc/VRProcessChild.h',
19     'ipc/VRProcessManager.h',
20     'ipc/VRProcessParent.h',
21     'service/VRService.h',
22     'VRDisplayClient.h',
23     'VRDisplayPresentation.h',
24     'VRManager.h',
25     'VRPuppetCommandBuffer.h',
26     'VRThread.h',
29 LOCAL_INCLUDES += [
30     '/dom/base',
31     '/gfx/layers/d3d11',
32     '/gfx/thebes',
35 UNIFIED_SOURCES += [
36     'gfxVR.cpp',
37     'ipc/VRChild.cpp',
38     'ipc/VRGPUChild.cpp',
39     'ipc/VRGPUParent.cpp',
40     'ipc/VRLayerChild.cpp',
41     'ipc/VRLayerParent.cpp',
42     'ipc/VRManagerChild.cpp',
43     'ipc/VRManagerParent.cpp',
44     'ipc/VRParent.cpp',
45     'ipc/VRProcessChild.cpp',
46     'ipc/VRProcessManager.cpp',
47     'ipc/VRProcessParent.cpp',
48     'VRDisplayClient.cpp',
49     'VRDisplayPresentation.cpp',
50     'VRThread.cpp',
53 SOURCES += [
54     'VRManager.cpp',
55     'VRPuppetCommandBuffer.cpp',
56     'VRShMem.cpp'
59 if CONFIG['OS_TARGET'] == 'Android':
60     LOCAL_INCLUDES += ['/widget/android']
61 else:
62     DIRS += [
63         'service',
64     ]
65     UNIFIED_SOURCES += [
66         'VRServiceHost.cpp',
67     ]
69 # Only target x64 for vrhost since WebVR is only supported on 64bit.
70 # Also, only use MSVC compiler for Windows-specific linking
71 if CONFIG['OS_ARCH'] == 'WINNT' and CONFIG['HAVE_64BIT_BUILD'] and CONFIG['CC_TYPE'] not in ('clang', 'gcc'):
72     DIRS += [
73         'vrhost'
74     ]
76 IPDL_SOURCES = [
77     'ipc/PVR.ipdl',
78     'ipc/PVRGPU.ipdl',
79     'ipc/PVRLayer.ipdl',
80     'ipc/PVRManager.ipdl',
83 # For now, only enable FxR CLH for Windows Nightly builds (BUG 1565349)
84 if CONFIG['OS_ARCH'] == 'WINNT' and CONFIG['NIGHTLY_BUILD']:
85     XPCOM_MANIFESTS += [\r
86       'components.conf',\r
87     ]
88     SOURCES += [
89       'nsFxrCommandLineHandler.cpp',
90     ]
92 CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
93 CXXFLAGS += CONFIG['TK_CFLAGS']
94 CFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
95 CFLAGS += CONFIG['TK_CFLAGS']
97 include('/ipc/chromium/chromium-config.mozbuild')
99 FINAL_LIBRARY = 'xul'
101 with Files('**'):
102     BUG_COMPONENT = ('Core', 'WebVR')