Debian Codegraph @

js/src/zydis/moz.build

raw
1 FINAL_LIBRARY = 'js'
2
3 # Includes should be relative to parent path
4 LOCAL_INCLUDES += [
5 '!..',
6 '..'
7 ]
8
9 include('../js-config.mozbuild')
10 include('../js-cxxflags.mozbuild')
11
12 if CONFIG['JS_CODEGEN_X64'] or CONFIG['JS_CODEGEN_X86']:
13 SOURCES += [
14 'Zycore/Allocator.c',
15 'Zycore/API/Memory.c',
16 'Zycore/API/Process.c',
17 'Zycore/ArgParse.c',
18 'Zycore/Bitset.c',
19 'Zycore/Format.c',
20 'Zycore/List.c',
21 'Zycore/Vector.c',
22 'Zycore/Zycore.c',
23 'Zycore/ZycoreString.c',
24 'Zydis/Decoder.c',
25 'Zydis/DecoderData.c',
26 'Zydis/Disassembler.c',
27 'Zydis/Encoder.c',
28 'Zydis/EncoderData.c',
29 'Zydis/Formatter.c',
30 'Zydis/FormatterATT.c',
31 'Zydis/FormatterBase.c',
32 'Zydis/FormatterBuffer.c',
33 'Zydis/FormatterIntel.c',
34 'Zydis/MetaInfo.c',
35 'Zydis/Mnemonic.c',
36 'Zydis/Register.c',
37 'Zydis/Segment.c',
38 'Zydis/SharedData.c',
39 'Zydis/Utils.c',
40 'Zydis/Zydis.c',
41 'Zydis/ZydisString.c',
42 'ZydisAPI.cpp',
43 ]
44
45 # Suppress warnings in third-party code.
46 SOURCES['Zydis/Decoder.c'].flags += ['-Wno-unused-local-typedefs']
47 SOURCES['Zydis/Register.c'].flags += ['-Wno-sign-compare']
48 SOURCES['Zydis/SharedData.c'].flags += ['-Wno-sign-compare']
49
50 # clang -Wtautological-constant-in-range-compare implicitly enables
51 # -Wtautological-value-range-compare, but we need to disable it for Zydis.
52 if "-Wtautological-constant-in-range-compare" in CONFIG["WARNINGS_CFLAGS"]:
53 CFLAGS += ["-Wno-tautological-value-range-compare"]