summaryrefslogtreecommitdiffstats
path: root/gfx/vr/vrhost/moz.build
blob: 1fa6e77f0388d14466e6c1ca4b9a71887c798269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- 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/.

SOURCES += ["/gfx/vr/service/VRSession.cpp", "/gfx/vr/VRShMem.cpp", "vrhostapi.cpp"]

# Since .def files do not support preprocessing, switch which file is used
# to declare exports. See comments in the files for more info.
if CONFIG["NIGHTLY_BUILD"]:
    DEFFILE = "vrhostnightly.def"
    SOURCES += ["vrhosttest.cpp"]
else:
    DEFFILE = "vrhost.def"

LOCAL_INCLUDES += [
    "/gfx/vr",
    "/gfx/vr/external_api",
    "/gfx/vr/service",
    "/ipc/chromium/src",
]

EXPORTS.vrhost = ["vrhostex.h"]

DIRS += ["testhost"]

# this is Windows-only for now
DEFINES["XP_WIN"] = True
# fixes "lld-link: error: undefined symbol: __imp_moz_xmalloc"
DEFINES["MOZ_NO_MOZALLOC"] = True
# fixes "STL code can only be used with infallible ::operator new()"
DisableStlWrapping()

# Define UNICODE for default support in this dll
DEFINES["UNICODE"] = True
DEFINES["_UNICODE"] = True

# Use SharedLibrary to generate the dll
SharedLibrary("vrhost")