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
FINAL_LIBRARY = 'js'
8
9
# Includes should be relative to parent path
10
LOCAL_INCLUDES += [
11
'!..',
12
'..'
13
]
14
15
include('../js-config.mozbuild')
16
include('../js-cxxflags.mozbuild')
17
18
if CONFIG['ENABLE_WASM_CRANELIFT']:
19
UNIFIED_SOURCES += [
20
'WasmCraneliftCompile.cpp',
21
]
22
23
UNIFIED_SOURCES += [
24
'AsmJS.cpp',
25
'WasmBaselineCompile.cpp',
26
'WasmBuiltins.cpp',
27
'WasmCode.cpp',
28
'WasmCompile.cpp',
29
'WasmDebug.cpp',
30
'WasmFrameIter.cpp',
31
'WasmGC.cpp',
32
'WasmGenerator.cpp',
33
'WasmInstance.cpp',
34
'WasmIonCompile.cpp',
35
'WasmJS.cpp',
36
'WasmModule.cpp',
37
'WasmOpIter.cpp',
38
'WasmProcess.cpp',
39
'WasmRealm.cpp',
40
'WasmSignalHandlers.cpp',
41
'WasmStubs.cpp',
42
'WasmTable.cpp',
43
'WasmTextToBinary.cpp',
44
'WasmTypes.cpp',
45
'WasmValidate.cpp'
46
]
47
48
# Make sure all WebAssembly code is built with libfuzzer
49
# coverage instrumentation in FUZZING mode.
50
if CONFIG['FUZZING_INTERFACES'] and CONFIG['LIBFUZZER']:
51
include('/tools/fuzzing/libfuzzer-config.mozbuild')