tor-browser

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

moz.build (5088B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 
      5 
      6   ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
      7   ### DO NOT edit it by hand.                                       ###
      8 
      9 COMPILE_FLAGS["OS_INCLUDES"] = []
     10 AllowCompilerWarnings()
     11 
     12 CXXFLAGS += [
     13     "-mavx2",
     14     "-mfma"
     15 ]
     16 
     17 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
     18 DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0"
     19 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
     20 DEFINES["RTC_ENABLE_VP9"] = True
     21 DEFINES["WEBRTC_ENABLE_AVX2"] = True
     22 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
     23 DEFINES["WEBRTC_ENCODER_PSNR_STATS"] = True
     24 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
     25 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
     26 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
     27 DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0"
     28 
     29 FINAL_LIBRARY = "xul"
     30 
     31 
     32 LOCAL_INCLUDES += [
     33     "!/dist/include/libwebrtc_overrides",
     34     "!/ipc/ipdl/_ipdlheaders",
     35     "!/third_party/libwebrtc/gen",
     36     "/ipc/chromium/src",
     37     "/third_party/abseil-cpp/",
     38     "/third_party/libwebrtc/",
     39     "/tools/profiler/public"
     40 ]
     41 
     42 UNIFIED_SOURCES += [
     43     "/third_party/libwebrtc/common_audio/fir_filter_avx2.cc",
     44     "/third_party/libwebrtc/common_audio/resampler/sinc_resampler_avx2.cc"
     45 ]
     46 
     47 if not CONFIG["MOZ_DEBUG"]:
     48 
     49     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
     50     DEFINES["NDEBUG"] = True
     51     DEFINES["NVALGRIND"] = True
     52 
     53 if CONFIG["MOZ_DEBUG"] == "1":
     54 
     55     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
     56 
     57 if CONFIG["OS_TARGET"] == "Android":
     58 
     59     DEFINES["ANDROID"] = True
     60     DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1"
     61     DEFINES["HAVE_SYS_UIO_H"] = True
     62     DEFINES["WEBRTC_ANDROID"] = True
     63     DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
     64     DEFINES["WEBRTC_LINUX"] = True
     65     DEFINES["WEBRTC_POSIX"] = True
     66     DEFINES["_GNU_SOURCE"] = True
     67     DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True
     68     DEFINES["__STDC_CONSTANT_MACROS"] = True
     69     DEFINES["__STDC_FORMAT_MACROS"] = True
     70 
     71     OS_LIBS += [
     72         "log"
     73     ]
     74 
     75 if CONFIG["OS_TARGET"] == "Darwin":
     76 
     77     DEFINES["WEBRTC_MAC"] = True
     78     DEFINES["WEBRTC_POSIX"] = True
     79     DEFINES["__STDC_CONSTANT_MACROS"] = True
     80     DEFINES["__STDC_FORMAT_MACROS"] = True
     81 
     82 if CONFIG["OS_TARGET"] == "Linux":
     83 
     84     DEFINES["USE_AURA"] = "1"
     85     DEFINES["USE_GLIB"] = "1"
     86     DEFINES["USE_OZONE"] = "1"
     87     DEFINES["USE_UDEV"] = True
     88     DEFINES["WEBRTC_LINUX"] = True
     89     DEFINES["WEBRTC_POSIX"] = True
     90     DEFINES["_FILE_OFFSET_BITS"] = "64"
     91     DEFINES["_GNU_SOURCE"] = True
     92     DEFINES["_LARGEFILE64_SOURCE"] = True
     93     DEFINES["_LARGEFILE_SOURCE"] = True
     94     DEFINES["__STDC_CONSTANT_MACROS"] = True
     95     DEFINES["__STDC_FORMAT_MACROS"] = True
     96 
     97 if CONFIG["OS_TARGET"] == "OpenBSD":
     98 
     99     DEFINES["USE_GLIB"] = "1"
    100     DEFINES["USE_OZONE"] = "1"
    101     DEFINES["WEBRTC_BSD"] = True
    102     DEFINES["WEBRTC_POSIX"] = True
    103     DEFINES["_FILE_OFFSET_BITS"] = "64"
    104     DEFINES["_LARGEFILE64_SOURCE"] = True
    105     DEFINES["_LARGEFILE_SOURCE"] = True
    106     DEFINES["__STDC_CONSTANT_MACROS"] = True
    107     DEFINES["__STDC_FORMAT_MACROS"] = True
    108 
    109 if CONFIG["OS_TARGET"] == "WINNT":
    110 
    111     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
    112     DEFINES["NOMINMAX"] = True
    113     DEFINES["NTDDI_VERSION"] = "0x0A000000"
    114     DEFINES["PSAPI_VERSION"] = "2"
    115     DEFINES["RTC_ENABLE_WIN_WGC"] = True
    116     DEFINES["UNICODE"] = True
    117     DEFINES["USE_AURA"] = "1"
    118     DEFINES["WEBRTC_WIN"] = True
    119     DEFINES["WIN32"] = True
    120     DEFINES["WIN32_LEAN_AND_MEAN"] = True
    121     DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
    122     DEFINES["WINVER"] = "0x0A00"
    123     DEFINES["_ATL_NO_OPENGL"] = True
    124     DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
    125     DEFINES["_CRT_RAND_S"] = True
    126     DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
    127     DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
    128     DEFINES["_HAS_EXCEPTIONS"] = "0"
    129     DEFINES["_HAS_NODISCARD"] = True
    130     DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
    131     DEFINES["_SECURE_ATL"] = True
    132     DEFINES["_UNICODE"] = True
    133     DEFINES["_WIN32_WINNT"] = "0x0A00"
    134     DEFINES["_WINDOWS"] = True
    135     DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True
    136     DEFINES["__STD_C"] = True
    137 
    138     OS_LIBS += [
    139         "crypt32",
    140         "iphlpapi",
    141         "secur32",
    142         "winmm"
    143     ]
    144 
    145 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
    146 
    147     DEFINES["_DEBUG"] = True
    148 
    149 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
    150 
    151     DEFINES["_DEBUG"] = True
    152 
    153 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
    154 
    155     DEFINES["_DEBUG"] = True
    156 
    157 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
    158 
    159     DEFINES["_DEBUG"] = True
    160 
    161 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
    162 
    163     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
    164 
    165 if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86":
    166 
    167     CXXFLAGS += [
    168         "-msse2"
    169     ]
    170 
    171 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
    172 
    173     CXXFLAGS += [
    174         "-msse2"
    175     ]
    176 
    177 Library("common_audio_avx2_gn")