mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 10:45:42 +00:00
a9961096c0
MozReview-Commit-ID: 4s4JdXZPvmv --HG-- extra : rebase_source : c8f663c99442d41db5f81ac5fe1aa1f47fd5ed82
60 lines
1.4 KiB
Python
60 lines
1.4 KiB
Python
# -*- 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/.
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
DEFINES['VR_API_PUBLIC'] = True
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
if CONFIG['HAVE_64BIT_BUILD']:
|
|
DEFINES['WIN64'] = True
|
|
else:
|
|
DEFINES['WIN32'] = True
|
|
|
|
if CONFIG['OS_ARCH'] == 'Darwin':
|
|
DEFINES['POSIX'] = True
|
|
DEFINES['OSX'] = True
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
|
CXXFLAGS += ['-xobjective-c++']
|
|
|
|
if CONFIG['OS_ARCH'] == 'Linux':
|
|
DEFINES['POSIX'] = True
|
|
DEFINES['LINUX'] = True
|
|
if CONFIG['HAVE_64BIT_BUILD']:
|
|
DEFINES['LINUX64'] = True
|
|
else:
|
|
DEFINES['LINUX32'] = True
|
|
|
|
LOCAL_INCLUDES += [
|
|
'/toolkit/components/jsoncpp/include',
|
|
]
|
|
|
|
USE_LIBS += [
|
|
'jsoncpp',
|
|
]
|
|
|
|
EXPORTS += [
|
|
'headers/openvr.h',
|
|
]
|
|
|
|
SOURCES += [
|
|
'src/dirtools_public.cpp',
|
|
'src/envvartools_public.cpp',
|
|
'src/hmderrors_public.cpp',
|
|
'src/openvr_api_public.cpp',
|
|
'src/pathtools_public.cpp',
|
|
'src/sharedlibtools_public.cpp',
|
|
'src/strtools_public.cpp',
|
|
'src/vrpathregistry_public.cpp',
|
|
]
|
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
|
# Harmless warnings in 3rd party code
|
|
CXXFLAGS += [
|
|
'-Wno-error=parentheses',
|
|
'-Wno-error=unused-variable',
|
|
]
|