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 # Build Oculus support on Windows only
8 if CONFIG["OS_TARGET"] == "WINNT":
11 "OpenVRWMRMapper.cpp",
14 # Build OSVR on all platforms except Android
15 if CONFIG["OS_TARGET"] != "Android":
21 # PuppetSession includes MacIOSurface.h which includes Mac headers
22 # which define Size and Points types in the root namespace that
23 # often conflict with our own types.
27 include("/ipc/chromium/chromium-config.mozbuild")
29 # Build OpenVR on Windows, Linux, and macOS desktop targets.
30 # TARGET_OS shadows target.os in our configure system, so we can check that to
31 # get Windows and macOS, but not Linux. For Linux we check OS_TARGET which
32 # generifies to "Linux" for all Linux distros.
33 if CONFIG["TARGET_OS"] in ("WINNT", "OSX") or CONFIG["OS_TARGET"] == "Linux":
37 LOCAL_INCLUDES += ["/dom/base", "/gfx/layers/d3d11"]
39 # OpenVRSession includes MacIOSurface.h which includes Mac headers
40 # which define Size and Points types in the root namespace that
41 # often conflict with our own types.
43 "OpenVRControllerMapper.cpp",
44 "OpenVRCosmosMapper.cpp",
45 "OpenVRDefaultMapper.cpp",
46 "OpenVRKnucklesMapper.cpp",
48 "OpenVRViveMapper.cpp",