2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2015-04-01 23:02:20 +03:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
EXPORTS += [
|
2018-03-14 03:09:54 +03:00
|
|
|
'external_api/moz_external_vr.h',
|
2015-04-01 23:02:20 +03:00
|
|
|
'gfxVR.h',
|
2016-02-25 02:54:50 +03:00
|
|
|
'ipc/VRLayerChild.h',
|
2015-09-18 00:23:13 +03:00
|
|
|
'ipc/VRManagerChild.h',
|
|
|
|
'ipc/VRManagerParent.h',
|
|
|
|
'ipc/VRMessageUtils.h',
|
2016-02-25 02:54:50 +03:00
|
|
|
'VRDisplayClient.h',
|
|
|
|
'VRDisplayPresentation.h',
|
2015-09-18 00:23:13 +03:00
|
|
|
'VRManager.h',
|
2017-10-05 13:12:45 +03:00
|
|
|
'VRThread.h',
|
2015-04-01 23:02:20 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
2016-10-04 11:30:04 +03:00
|
|
|
'/dom/base',
|
2016-07-22 22:41:00 +03:00
|
|
|
'/gfx/layers/d3d11',
|
2015-04-01 23:02:20 +03:00
|
|
|
'/gfx/thebes',
|
|
|
|
]
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'gfxVR.cpp',
|
2016-02-25 02:54:50 +03:00
|
|
|
'ipc/VRLayerChild.cpp',
|
|
|
|
'ipc/VRLayerParent.cpp',
|
2015-09-18 00:23:13 +03:00
|
|
|
'ipc/VRManagerChild.cpp',
|
|
|
|
'ipc/VRManagerParent.cpp',
|
2016-02-25 02:54:50 +03:00
|
|
|
'VRDisplayClient.cpp',
|
|
|
|
'VRDisplayPresentation.cpp',
|
2015-09-18 00:23:13 +03:00
|
|
|
'VRManager.cpp',
|
2017-10-05 13:12:45 +03:00
|
|
|
'VRThread.cpp',
|
2015-04-01 23:02:20 +03:00
|
|
|
]
|
|
|
|
|
2018-06-05 01:45:04 +03:00
|
|
|
if CONFIG['OS_TARGET'] != 'Android':
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'gfxVROSVR.cpp',
|
|
|
|
]
|
|
|
|
|
2017-07-04 23:50:40 +03:00
|
|
|
# VRDisplayHost includes MacIOSurface.h which includes Mac headers
|
|
|
|
# which define Size and Points types in the root namespace that
|
|
|
|
# often conflict with our own types.
|
|
|
|
SOURCES += [
|
2018-03-14 03:09:54 +03:00
|
|
|
'gfxVRExternal.cpp',
|
2017-08-24 19:30:31 +03:00
|
|
|
'gfxVRPuppet.cpp',
|
2017-07-04 23:50:40 +03:00
|
|
|
'VRDisplayHost.cpp',
|
|
|
|
]
|
|
|
|
|
2017-05-31 21:14:55 +03:00
|
|
|
# Build OpenVR on Windows, Linux, and macOS desktop targets
|
2017-06-23 07:02:12 +03:00
|
|
|
if CONFIG['OS_TARGET'] in ('WINNT', 'Linux', 'Darwin'):
|
2017-02-28 03:59:30 +03:00
|
|
|
DIRS += [
|
|
|
|
'openvr',
|
|
|
|
]
|
2016-02-25 02:54:50 +03:00
|
|
|
SOURCES += [
|
2017-02-28 03:59:30 +03:00
|
|
|
'gfxVROpenVR.cpp',
|
2016-02-25 02:54:50 +03:00
|
|
|
]
|
|
|
|
|
2017-06-23 07:02:12 +03:00
|
|
|
if CONFIG['OS_TARGET'] == 'WINNT':
|
2017-05-31 21:14:55 +03:00
|
|
|
SOURCES += [
|
|
|
|
'gfxVROculus.cpp',
|
|
|
|
]
|
|
|
|
|
2018-06-05 01:45:04 +03:00
|
|
|
if CONFIG['OS_TARGET'] == 'Android':
|
2017-11-01 03:25:40 +03:00
|
|
|
LOCAL_INCLUDES += ['/widget/android']
|
|
|
|
|
2015-09-18 00:23:13 +03:00
|
|
|
IPDL_SOURCES = [
|
2016-02-25 02:54:50 +03:00
|
|
|
'ipc/PVRLayer.ipdl',
|
2015-09-18 00:23:13 +03:00
|
|
|
'ipc/PVRManager.ipdl',
|
|
|
|
]
|
|
|
|
|
2015-07-02 18:58:24 +03:00
|
|
|
# For building with the real SDK instead of our local hack
|
|
|
|
#SOURCES += [
|
|
|
|
# 'OVR_CAPI_Util.cpp',
|
|
|
|
# 'OVR_CAPIShim.c',
|
|
|
|
# 'OVR_StereoProjection.cpp',
|
|
|
|
#]
|
|
|
|
#
|
|
|
|
#CXXFLAGS += ["-Ic:/proj/ovr/OculusSDK-0.6.0-beta/LibOVR/Include"]
|
|
|
|
#CFLAGS += ["-Ic:/proj/ovr/OculusSDK-0.6.0-beta/LibOVR/Include"]
|
|
|
|
|
2015-04-01 23:02:20 +03:00
|
|
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|
|
|
|
CFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
|
|
|
CFLAGS += CONFIG['TK_CFLAGS']
|
|
|
|
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
|
2016-03-15 00:11:40 +03:00
|
|
|
# This is intended as a temporary hack to enable VS2015 builds.
|
2017-12-08 15:46:13 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
2016-03-15 00:11:40 +03:00
|
|
|
# ovr_capi_dynamic.h '<unnamed-tag>': Alignment specifier is less than
|
|
|
|
# actual alignment (8), and will be ignored
|
|
|
|
CXXFLAGS += ['-wd4359']
|