Source code

Revision control

Other Tools

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
7
GeckoProgram('gdb-tests', linkage=None)
8
9
include('../js-cxxflags.mozbuild')
10
include('../js-standalone.mozbuild')
11
12
SOURCES += [
13
# This file must not be unified with any of the test files, or the use()
14
# and breakpoint() functions might get optimized out.
15
'gdb-tests.cpp'
16
]
17
18
UNIFIED_SOURCES += [
19
'tests/enum-printers.cpp',
20
'tests/test-asmjs.cpp',
21
'tests/test-ExecutableAllocator.cpp',
22
'tests/test-GCCellPtr.cpp',
23
'tests/test-Interpreter.cpp',
24
'tests/test-jsbytecode.cpp',
25
'tests/test-jsid.cpp',
26
'tests/test-JSObject.cpp',
27
'tests/test-jsop.cpp',
28
'tests/test-JSString.cpp',
29
'tests/test-JSSymbol.cpp',
30
'tests/test-jsval.cpp',
31
'tests/test-Root.cpp',
32
'tests/test-unwind.cpp',
33
'tests/typedef-printers.cpp',
34
]
35
36
SOURCES += [
37
'tests/test-prettyprinters.cpp'
38
]
39
40
if CONFIG['CC_TYPE'] != 'clang-cl':
41
# Test expects to see pre-typedef names of base classes, but the compiler will
42
# normally omit those from the debuginfo. The current clang-cl does not support
43
# this option.
44
SOURCES['tests/test-prettyprinters.cpp'].flags += ['-fno-eliminate-unused-debug-types']
45
46
DEFINES['EXPORT_JS_API'] = True
47
48
LOCAL_INCLUDES += [
49
'!..',
50
'..',
51
]
52
53
USE_LIBS += [
54
'static:js',
55
]
56
57
DEFINES['topsrcdir'] = '%s/js/src' % TOPSRCDIR
58
FINAL_TARGET_PP_FILES += ['gdb-tests-gdb.py.in']
59
OBJDIR_FILES.js.src.gdb += ['!/dist/bin/gdb-tests-gdb.py']