tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

moz.build (1680B)


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