tor-browser

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

moz.build (6090B)


      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 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
     13 DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0"
     14 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
     15 DEFINES["RTC_ENABLE_VP9"] = True
     16 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
     17 DEFINES["WEBRTC_ENCODER_PSNR_STATS"] = True
     18 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
     19 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
     20 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
     21 DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0"
     22 
     23 FINAL_LIBRARY = "xul"
     24 
     25 
     26 LOCAL_INCLUDES += [
     27     "!/dist/include/libwebrtc_overrides",
     28     "!/ipc/ipdl/_ipdlheaders",
     29     "!/third_party/libwebrtc/gen",
     30     "/ipc/chromium/src",
     31     "/third_party/abseil-cpp/",
     32     "/third_party/libwebrtc/",
     33     "/tools/profiler/public"
     34 ]
     35 
     36 UNIFIED_SOURCES += [
     37     "/third_party/libwebrtc/modules/congestion_controller/rtp/control_handler.cc"
     38 ]
     39 
     40 if not CONFIG["MOZ_DEBUG"]:
     41 
     42     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
     43     DEFINES["NDEBUG"] = True
     44     DEFINES["NVALGRIND"] = True
     45 
     46 if CONFIG["MOZ_DEBUG"] == "1":
     47 
     48     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
     49 
     50 if CONFIG["OS_TARGET"] == "Android":
     51 
     52     DEFINES["ANDROID"] = True
     53     DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1"
     54     DEFINES["HAVE_SYS_UIO_H"] = True
     55     DEFINES["WEBRTC_ANDROID"] = True
     56     DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
     57     DEFINES["WEBRTC_LINUX"] = True
     58     DEFINES["WEBRTC_POSIX"] = True
     59     DEFINES["_GNU_SOURCE"] = True
     60     DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True
     61     DEFINES["__STDC_CONSTANT_MACROS"] = True
     62     DEFINES["__STDC_FORMAT_MACROS"] = True
     63 
     64     OS_LIBS += [
     65         "GLESv2",
     66         "log"
     67     ]
     68 
     69 if CONFIG["OS_TARGET"] == "Darwin":
     70 
     71     DEFINES["WEBRTC_MAC"] = True
     72     DEFINES["WEBRTC_POSIX"] = True
     73     DEFINES["__STDC_CONSTANT_MACROS"] = True
     74     DEFINES["__STDC_FORMAT_MACROS"] = True
     75 
     76 if CONFIG["OS_TARGET"] == "Linux":
     77 
     78     DEFINES["USE_AURA"] = "1"
     79     DEFINES["USE_GLIB"] = "1"
     80     DEFINES["USE_OZONE"] = "1"
     81     DEFINES["USE_UDEV"] = True
     82     DEFINES["WEBRTC_LINUX"] = True
     83     DEFINES["WEBRTC_POSIX"] = True
     84     DEFINES["_FILE_OFFSET_BITS"] = "64"
     85     DEFINES["_LARGEFILE64_SOURCE"] = True
     86     DEFINES["_LARGEFILE_SOURCE"] = True
     87     DEFINES["__STDC_CONSTANT_MACROS"] = True
     88     DEFINES["__STDC_FORMAT_MACROS"] = True
     89 
     90 if CONFIG["OS_TARGET"] == "OpenBSD":
     91 
     92     DEFINES["USE_GLIB"] = "1"
     93     DEFINES["USE_OZONE"] = "1"
     94     DEFINES["WEBRTC_BSD"] = True
     95     DEFINES["WEBRTC_POSIX"] = True
     96     DEFINES["_FILE_OFFSET_BITS"] = "64"
     97     DEFINES["_LARGEFILE64_SOURCE"] = True
     98     DEFINES["_LARGEFILE_SOURCE"] = True
     99     DEFINES["__STDC_CONSTANT_MACROS"] = True
    100     DEFINES["__STDC_FORMAT_MACROS"] = True
    101 
    102 if CONFIG["OS_TARGET"] == "WINNT":
    103 
    104     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
    105     DEFINES["NOMINMAX"] = True
    106     DEFINES["NTDDI_VERSION"] = "0x0A000000"
    107     DEFINES["PSAPI_VERSION"] = "2"
    108     DEFINES["RTC_ENABLE_WIN_WGC"] = True
    109     DEFINES["UNICODE"] = True
    110     DEFINES["USE_AURA"] = "1"
    111     DEFINES["WEBRTC_WIN"] = True
    112     DEFINES["WIN32"] = True
    113     DEFINES["WIN32_LEAN_AND_MEAN"] = True
    114     DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
    115     DEFINES["WINVER"] = "0x0A00"
    116     DEFINES["_ATL_NO_OPENGL"] = True
    117     DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
    118     DEFINES["_CRT_RAND_S"] = True
    119     DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
    120     DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
    121     DEFINES["_HAS_EXCEPTIONS"] = "0"
    122     DEFINES["_HAS_NODISCARD"] = True
    123     DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
    124     DEFINES["_SECURE_ATL"] = True
    125     DEFINES["_UNICODE"] = True
    126     DEFINES["_WIN32_WINNT"] = "0x0A00"
    127     DEFINES["_WINDOWS"] = True
    128     DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True
    129     DEFINES["__STD_C"] = True
    130 
    131     OS_LIBS += [
    132         "crypt32",
    133         "iphlpapi",
    134         "secur32",
    135         "winmm"
    136     ]
    137 
    138 if CONFIG["TARGET_CPU"] == "aarch64":
    139 
    140     DEFINES["WEBRTC_ARCH_ARM64"] = True
    141     DEFINES["WEBRTC_HAS_NEON"] = True
    142     DEFINES["__ARM_NEON__"] = "1"
    143 
    144 if CONFIG["TARGET_CPU"] == "arm":
    145 
    146     CXXFLAGS += [
    147         "-mfpu=neon"
    148     ]
    149 
    150     DEFINES["WEBRTC_ARCH_ARM"] = True
    151     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
    152     DEFINES["WEBRTC_HAS_NEON"] = True
    153 
    154 if CONFIG["TARGET_CPU"] == "loongarch64":
    155 
    156     DEFINES["_GNU_SOURCE"] = True
    157 
    158 if CONFIG["TARGET_CPU"] == "mips32":
    159 
    160     DEFINES["MIPS32_LE"] = True
    161     DEFINES["MIPS_FPU_LE"] = True
    162     DEFINES["_GNU_SOURCE"] = True
    163 
    164 if CONFIG["TARGET_CPU"] == "mips64":
    165 
    166     DEFINES["_GNU_SOURCE"] = True
    167 
    168 if CONFIG["TARGET_CPU"] == "x86":
    169 
    170     DEFINES["WEBRTC_ENABLE_AVX2"] = True
    171 
    172 if CONFIG["TARGET_CPU"] == "x86_64":
    173 
    174     DEFINES["WEBRTC_ENABLE_AVX2"] = True
    175 
    176 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
    177 
    178     DEFINES["_DEBUG"] = True
    179 
    180 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
    181 
    182     DEFINES["_DEBUG"] = True
    183 
    184 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
    185 
    186     DEFINES["_DEBUG"] = True
    187 
    188 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
    189 
    190     DEFINES["_DEBUG"] = True
    191 
    192 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
    193 
    194     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
    195 
    196 if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86":
    197 
    198     CXXFLAGS += [
    199         "-msse2"
    200     ]
    201 
    202 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64":
    203 
    204     DEFINES["_GNU_SOURCE"] = True
    205 
    206 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm":
    207 
    208     DEFINES["_GNU_SOURCE"] = True
    209 
    210 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
    211 
    212     CXXFLAGS += [
    213         "-msse2"
    214     ]
    215 
    216     DEFINES["_GNU_SOURCE"] = True
    217 
    218 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
    219 
    220     DEFINES["_GNU_SOURCE"] = True
    221 
    222 Library("control_handler_gn")