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/.
6
7EXPORTS += [
8    'DMD.h',
9]
10
11SOURCES += [
12    '../../../mfbt/HashFunctions.cpp',
13    '../../../mfbt/JSONWriter.cpp',
14    '../../../mfbt/Poison.cpp',
15    '../../../mozglue/misc/StackWalk.cpp',
16    'DMD.cpp',
17]
18
19SOURCES += [
20    '../../../nsprpub/lib/libc/src/strcpy.c',
21]
22
23SharedLibrary('dmd')
24
25DEFINES['MOZ_NO_MOZALLOC'] = True
26DEFINES['IMPL_MFBT'] = True
27DEFINES['XPCOM_GLUE'] = True
28
29if CONFIG['MOZ_OPTIMIZE']:
30    DEFINES['MOZ_OPTIMIZE'] = True
31
32DISABLE_STL_WRAPPING = True
33
34if CONFIG['OS_ARCH'] == 'WINNT':
35    OS_LIBS += [
36        'dbghelp',
37    ]
38
39TEST_DIRS += ['test']
40