summaryrefslogtreecommitdiffstats
path: root/js/src/zydis/moz.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /js/src/zydis/moz.build
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--js/src/zydis/moz.build53
1 files changed, 53 insertions, 0 deletions
diff --git a/js/src/zydis/moz.build b/js/src/zydis/moz.build
new file mode 100644
index 0000000000..17ba104455
--- /dev/null
+++ b/js/src/zydis/moz.build
@@ -0,0 +1,53 @@
+# This file was generated by update.sh
+
+FINAL_LIBRARY = 'js'
+
+# Includes should be relative to parent path
+LOCAL_INCLUDES += [
+ '!..',
+ '..'
+]
+
+include('../js-config.mozbuild')
+include('../js-cxxflags.mozbuild')
+
+if CONFIG['JS_CODEGEN_X64'] or CONFIG['JS_CODEGEN_X86']:
+ SOURCES += [
+ 'Zycore/Allocator.c',
+ 'Zycore/API/Memory.c',
+ 'Zycore/API/Process.c',
+ 'Zycore/ArgParse.c',
+ 'Zycore/Bitset.c',
+ 'Zycore/Format.c',
+ 'Zycore/List.c',
+ 'Zycore/Vector.c',
+ 'Zycore/Zycore.c',
+ 'Zycore/ZycoreString.c',
+ 'Zydis/Decoder.c',
+ 'Zydis/DecoderData.c',
+ 'Zydis/Disassembler.c',
+ 'Zydis/Encoder.c',
+ 'Zydis/EncoderData.c',
+ 'Zydis/Formatter.c',
+ 'Zydis/FormatterATT.c',
+ 'Zydis/FormatterBase.c',
+ 'Zydis/FormatterBuffer.c',
+ 'Zydis/FormatterIntel.c',
+ 'Zydis/MetaInfo.c',
+ 'Zydis/Mnemonic.c',
+ 'Zydis/Register.c',
+ 'Zydis/Segment.c',
+ 'Zydis/SharedData.c',
+ 'Zydis/Utils.c',
+ 'Zydis/Zydis.c',
+ 'Zydis/ZydisString.c',
+ 'ZydisAPI.cpp',
+ ]
+
+ # Suppress warnings in third-party code.
+ SOURCES['Zydis/SharedData.c'].flags += ['-Wno-sign-compare']
+
+ # clang -Wtautological-constant-in-range-compare implicitly enables
+ # -Wtautological-value-range-compare, but we need to disable it for Zydis.
+ if "-Wtautological-constant-in-range-compare" in CONFIG["WARNINGS_CFLAGS"]:
+ CFLAGS += ["-Wno-tautological-value-range-compare"]