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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# -*- 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/.
LOCAL_INCLUDES += ["/third_party/wasm2c/"]
GeneratedFile(
"config.h",
script="preprocess_wasm2c_config.py",
entry_point="generate_config",
inputs=["/third_party/wasm2c/src/config.h.in"],
)
# Wabt sources
HOST_SOURCES += [
"/third_party/wasm2c/src/apply-names.cc",
"/third_party/wasm2c/src/binary-reader-ir.cc",
"/third_party/wasm2c/src/binary-reader-logging.cc",
"/third_party/wasm2c/src/binary-reader.cc",
"/third_party/wasm2c/src/binary-writer-spec.cc",
"/third_party/wasm2c/src/binary-writer.cc",
"/third_party/wasm2c/src/binary.cc",
"/third_party/wasm2c/src/binding-hash.cc",
"/third_party/wasm2c/src/color.cc",
"/third_party/wasm2c/src/common.cc",
"/third_party/wasm2c/src/config.cc",
"/third_party/wasm2c/src/decompiler.cc",
"/third_party/wasm2c/src/error-formatter.cc",
"/third_party/wasm2c/src/expr-visitor.cc",
"/third_party/wasm2c/src/feature.cc",
"/third_party/wasm2c/src/filenames.cc",
"/third_party/wasm2c/src/generate-names.cc",
"/third_party/wasm2c/src/hash-util.cc",
"/third_party/wasm2c/src/ir-util.cc",
"/third_party/wasm2c/src/ir.cc",
"/third_party/wasm2c/src/leb128.cc",
"/third_party/wasm2c/src/lexer-source-line-finder.cc",
"/third_party/wasm2c/src/lexer-source.cc",
"/third_party/wasm2c/src/literal.cc",
"/third_party/wasm2c/src/opcode-code-table.c",
"/third_party/wasm2c/src/opcode.cc",
"/third_party/wasm2c/src/option-parser.cc",
"/third_party/wasm2c/src/resolve-names.cc",
"/third_party/wasm2c/src/shared-validator.cc",
"/third_party/wasm2c/src/stream.cc",
"/third_party/wasm2c/src/string-view.cc",
"/third_party/wasm2c/src/token.cc",
"/third_party/wasm2c/src/tracing.cc",
"/third_party/wasm2c/src/type-checker.cc",
"/third_party/wasm2c/src/utf8.cc",
"/third_party/wasm2c/src/validator.cc",
"/third_party/wasm2c/src/wast-lexer.cc",
"/third_party/wasm2c/src/wast-parser.cc",
"/third_party/wasm2c/src/wat-writer.cc",
]
# wasm2c sources
HOST_SOURCES += [
"/third_party/wasm2c/src/c-writer.cc",
"/third_party/wasm2c/src/tools/wasm2c.cc",
]
HOST_CXXFLAGS += [
"-Wno-implicit-fallthrough",
]
HostProgram("wasm2c")
|