2018-05-08 21:31:28 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
|
|
# 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/.
|
|
|
|
|
2018-07-14 03:16:35 +03:00
|
|
|
# Build Oculus support on Windows only
|
|
|
|
if CONFIG['OS_TARGET'] == 'WINNT':
|
|
|
|
SOURCES += [
|
|
|
|
'OculusSession.cpp',
|
|
|
|
]
|
|
|
|
|
2018-10-02 03:24:40 +03:00
|
|
|
# Build OSVR on all platforms except Android
|
|
|
|
if CONFIG['OS_TARGET'] != 'Android':
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'OSVRSession.cpp',
|
2018-10-09 05:41:00 +03:00
|
|
|
'VRService.cpp',
|
|
|
|
'VRSession.cpp',
|
2018-10-02 03:24:40 +03:00
|
|
|
]
|
2018-10-09 05:41:00 +03:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
2018-10-02 03:24:40 +03:00
|
|
|
|
2018-05-08 21:31:28 +03:00
|
|
|
# Build OpenVR on Windows, Linux, and macOS desktop targets
|
|
|
|
if CONFIG['OS_TARGET'] in ('WINNT', 'Linux', 'Darwin'):
|
2018-10-25 01:22:41 +03:00
|
|
|
DIRS += [
|
|
|
|
'openvr',
|
|
|
|
]
|
2018-05-08 21:31:28 +03:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/base',
|
2018-10-13 00:54:09 +03:00
|
|
|
'/gfx/layers/d3d11'
|
|
|
|
]
|
|
|
|
|
|
|
|
# OpenVRSession 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 += [
|
|
|
|
'OpenVRSession.cpp'
|
2018-05-08 21:31:28 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|
2018-07-14 03:16:35 +03:00
|
|
|
|
|
|
|
# This is intended as a temporary hack to enable VS2015 builds.
|
|
|
|
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
|
|
|
# ovr_capi_dynamic.h '<unnamed-tag>': Alignment specifier is less than
|
|
|
|
# actual alignment (8), and will be ignored
|
|
|
|
CXXFLAGS += ['-wd4359']
|