gfx/vr/service/openvr/moz.build
author arthur.iakab <aiakab@mozilla.com>
Wed, 28 Nov 2018 02:57:32 +0200
changeset 504886 9bfe29337ffe3d93cd060077e2e999e72bb9b7cf
parent 504874 e0f95dd96d5458f60980f1e8b3f846beed6e5817
child 505048 5e6dae0c1e5a4939ccd406f14607f7fafffd45a7
permissions -rw-r--r--
Backed out 13 changesets (bug 1500948, bug 1509362, bug 1509591, bug 1448426, bug 1500949, bug 1487249, bug 1509930, bug 1500950, bug 1500944) for causing crashes and assertion failures on PBackgroundParent.cpp:696 CLOSED TREE Backed out changeset c3fe435e473a (bug 1509362) Backed out changeset 6494840edc17 (bug 1509591) Backed out changeset 123b5d5a3637 (bug 1509591) Backed out changeset bce195f98895 (bug 1509930) Backed out changeset 66db13126408 (bug 1500950) Backed out changeset 3b5fffae2d2b (bug 1500949) Backed out changeset 71c3b3677db8 (bug 1500948) Backed out changeset 784b3b56e2ab (bug 1500944) Backed out changeset 0bad27401ddb (bug 1500944) Backed out changeset e0f95dd96d54 (bug 1448426) Backed out changeset c60fa11538db (bug 1487249) Backed out changeset 0190d4ffa54f (bug 1487249) Backed out changeset 3cd10aba9130 (bug 1487249)

# -*- 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',
    ]