| 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 |
with Files("**"): |
| 8 |
BUG_COMPONENT = ("Core", "Security: RLBox") |
| 9 |
|
| 10 |
LOCAL_INCLUDES += [ |
| 11 |
"/third_party/picosha2/", |
| 12 |
"/third_party/wasm2c/include/", |
| 13 |
] |
| 14 |
|
| 15 |
GeneratedFile( |
| 16 |
"wabt/config.h", |
| 17 |
script="preprocess_wasm2c_config.py", |
| 18 |
entry_point="generate_config", |
| 19 |
inputs=["/third_party/wasm2c/src/config.h.in"], |
| 20 |
) |
| 21 |
|
| 22 |
# Wabt sources |
| 23 |
HOST_SOURCES += [ |
| 24 |
"/third_party/wasm2c/src/apply-names.cc", |
| 25 |
"/third_party/wasm2c/src/binary-reader-ir.cc", |
| 26 |
"/third_party/wasm2c/src/binary-reader-logging.cc", |
| 27 |
"/third_party/wasm2c/src/binary-reader-objdump.cc", |
| 28 |
"/third_party/wasm2c/src/binary-reader-stats.cc", |
| 29 |
"/third_party/wasm2c/src/binary-reader.cc", |
| 30 |
"/third_party/wasm2c/src/binary-writer-spec.cc", |
| 31 |
"/third_party/wasm2c/src/binary-writer.cc", |
| 32 |
"/third_party/wasm2c/src/binary.cc", |
| 33 |
"/third_party/wasm2c/src/binding-hash.cc", |
| 34 |
"/third_party/wasm2c/src/color.cc", |
| 35 |
"/third_party/wasm2c/src/common.cc", |
| 36 |
"/third_party/wasm2c/src/config.cc", |
| 37 |
"/third_party/wasm2c/src/decompiler.cc", |
| 38 |
"/third_party/wasm2c/src/emscripten-helpers.cc", |
| 39 |
"/third_party/wasm2c/src/error-formatter.cc", |
| 40 |
"/third_party/wasm2c/src/expr-visitor.cc", |
| 41 |
"/third_party/wasm2c/src/feature.cc", |
| 42 |
"/third_party/wasm2c/src/filenames.cc", |
| 43 |
"/third_party/wasm2c/src/generate-names.cc", |
| 44 |
"/third_party/wasm2c/src/ir-util.cc", |
| 45 |
"/third_party/wasm2c/src/ir.cc", |
| 46 |
"/third_party/wasm2c/src/leb128.cc", |
| 47 |
"/third_party/wasm2c/src/lexer-source-line-finder.cc", |
| 48 |
"/third_party/wasm2c/src/lexer-source.cc", |
| 49 |
"/third_party/wasm2c/src/literal.cc", |
| 50 |
"/third_party/wasm2c/src/opcode-code-table.c", |
| 51 |
"/third_party/wasm2c/src/opcode.cc", |
| 52 |
"/third_party/wasm2c/src/option-parser.cc", |
| 53 |
"/third_party/wasm2c/src/resolve-names.cc", |
| 54 |
"/third_party/wasm2c/src/sha256.cc", |
| 55 |
"/third_party/wasm2c/src/shared-validator.cc", |
| 56 |
"/third_party/wasm2c/src/stream.cc", |
| 57 |
"/third_party/wasm2c/src/token.cc", |
| 58 |
"/third_party/wasm2c/src/tracing.cc", |
| 59 |
"/third_party/wasm2c/src/type-checker.cc", |
| 60 |
"/third_party/wasm2c/src/utf8.cc", |
| 61 |
"/third_party/wasm2c/src/validator.cc", |
| 62 |
"/third_party/wasm2c/src/wast-lexer.cc", |
| 63 |
"/third_party/wasm2c/src/wast-parser.cc", |
| 64 |
"/third_party/wasm2c/src/wat-writer.cc", |
| 65 |
] |
| 66 |
|
| 67 |
# wasm2c sources |
| 68 |
HOST_SOURCES += [ |
| 69 |
"/third_party/wasm2c/src/c-writer.cc", |
| 70 |
"/third_party/wasm2c/src/prebuilt/wasm2c_atomicops_source_declarations.cc", |
| 71 |
"/third_party/wasm2c/src/prebuilt/wasm2c_header_bottom.cc", |
| 72 |
"/third_party/wasm2c/src/prebuilt/wasm2c_header_top.cc", |
| 73 |
"/third_party/wasm2c/src/prebuilt/wasm2c_simd_source_declarations.cc", |
| 74 |
"/third_party/wasm2c/src/prebuilt/wasm2c_source_declarations.cc", |
| 75 |
"/third_party/wasm2c/src/prebuilt/wasm2c_source_includes.cc", |
| 76 |
"/third_party/wasm2c/src/tools/wasm2c.cc", |
| 77 |
] |
| 78 |
|
| 79 |
HOST_CXXFLAGS += [ |
| 80 |
"-Wno-implicit-fallthrough", |
| 81 |
] |
| 82 |
|
| 83 |
HostProgram("wasm2c") |