Debian Codegraph @

js/src/wasm/moz.build

raw
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 include("../js-config.mozbuild")
13 include("../js-cxxflags.mozbuild")
14
15 UNIFIED_SOURCES += [
16 "AsmJS.cpp",
17 "WasmAnyRef.cpp",
18 "WasmBaselineCompile.cpp",
19 "WasmBCFrame.cpp",
20 "WasmBCMemory.cpp",
21 "WasmBinary.cpp",
22 "WasmBuiltinModule.cpp",
23 "WasmBuiltins.cpp",
24 "WasmCode.cpp",
25 "WasmCodegenTypes.cpp",
26 "WasmCompile.cpp",
27 "WasmDebug.cpp",
28 "WasmDebugFrame.cpp",
29 "WasmDump.cpp",
30 "WasmFeatures.cpp",
31 "WasmFrameIter.cpp",
32 "WasmGC.cpp",
33 "WasmGcObject.cpp",
34 "WasmGenerator.cpp",
35 "WasmInitExpr.cpp",
36 "WasmInstance.cpp",
37 "WasmIonCompile.cpp",
38 "WasmJS.cpp",
39 "WasmLog.cpp",
40 "WasmMemory.cpp",
41 "WasmMetadata.cpp",
42 "WasmModule.cpp",
43 "WasmModuleTypes.cpp",
44 "WasmOpIter.cpp",
45 "WasmPI.cpp",
46 "WasmProcess.cpp",
47 "WasmRealm.cpp",
48 "WasmSerialize.cpp",
49 "WasmSignalHandlers.cpp",
50 "WasmStaticTypeDefs.cpp",
51 "WasmStubs.cpp",
52 "WasmSummarizeInsn.cpp",
53 "WasmTable.cpp",
54 "WasmTypeDef.cpp",
55 "WasmValidate.cpp",
56 "WasmValType.cpp",
57 "WasmValue.cpp",
58 ]
59
60 # Generate wasm/WasmBuiltinModuleGenerated.h from wasm/WasmBuiltinModule.yaml
61 GeneratedFile(
62 "WasmBuiltinModuleGenerated.h",
63 script="GenerateBuiltinModules.py",
64 inputs=["WasmBuiltinModule.yaml"],
65 )
66
67 # Make sure all WebAssembly code is built with libfuzzer
68 # coverage instrumentation in FUZZING mode.
69 if CONFIG["FUZZING_INTERFACES"] and CONFIG["LIBFUZZER"]:
70 include("/tools/fuzzing/libfuzzer-config.mozbuild")