tor-browser

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

moz.build (6719B)


      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/api/video_codecs/av1_profile.cc",
     38     "/third_party/libwebrtc/api/video_codecs/h264_profile_level_id.cc",
     39     "/third_party/libwebrtc/api/video_codecs/sdp_video_format.cc",
     40     "/third_party/libwebrtc/api/video_codecs/simulcast_stream.cc",
     41     "/third_party/libwebrtc/api/video_codecs/video_codec.cc",
     42     "/third_party/libwebrtc/api/video_codecs/video_decoder.cc",
     43     "/third_party/libwebrtc/api/video_codecs/video_decoder_factory.cc",
     44     "/third_party/libwebrtc/api/video_codecs/video_encoder.cc",
     45     "/third_party/libwebrtc/api/video_codecs/vp8_frame_config.cc",
     46     "/third_party/libwebrtc/api/video_codecs/vp8_temporal_layers.cc",
     47     "/third_party/libwebrtc/api/video_codecs/vp9_profile.cc"
     48 ]
     49 
     50 if not CONFIG["MOZ_DEBUG"]:
     51 
     52     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
     53     DEFINES["NDEBUG"] = True
     54     DEFINES["NVALGRIND"] = True
     55 
     56 if CONFIG["MOZ_DEBUG"] == "1":
     57 
     58     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
     59 
     60 if CONFIG["OS_TARGET"] == "Android":
     61 
     62     DEFINES["ANDROID"] = True
     63     DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1"
     64     DEFINES["HAVE_SYS_UIO_H"] = True
     65     DEFINES["WEBRTC_ANDROID"] = True
     66     DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
     67     DEFINES["WEBRTC_LINUX"] = True
     68     DEFINES["WEBRTC_POSIX"] = True
     69     DEFINES["_GNU_SOURCE"] = True
     70     DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True
     71     DEFINES["__STDC_CONSTANT_MACROS"] = True
     72     DEFINES["__STDC_FORMAT_MACROS"] = True
     73 
     74     OS_LIBS += [
     75         "log"
     76     ]
     77 
     78 if CONFIG["OS_TARGET"] == "Darwin":
     79 
     80     DEFINES["WEBRTC_MAC"] = True
     81     DEFINES["WEBRTC_POSIX"] = True
     82     DEFINES["__STDC_CONSTANT_MACROS"] = True
     83     DEFINES["__STDC_FORMAT_MACROS"] = True
     84 
     85 if CONFIG["OS_TARGET"] == "Linux":
     86 
     87     DEFINES["USE_AURA"] = "1"
     88     DEFINES["USE_GLIB"] = "1"
     89     DEFINES["USE_OZONE"] = "1"
     90     DEFINES["USE_UDEV"] = True
     91     DEFINES["WEBRTC_LINUX"] = True
     92     DEFINES["WEBRTC_POSIX"] = True
     93     DEFINES["_FILE_OFFSET_BITS"] = "64"
     94     DEFINES["_LARGEFILE64_SOURCE"] = True
     95     DEFINES["_LARGEFILE_SOURCE"] = True
     96     DEFINES["__STDC_CONSTANT_MACROS"] = True
     97     DEFINES["__STDC_FORMAT_MACROS"] = True
     98 
     99 if CONFIG["OS_TARGET"] == "OpenBSD":
    100 
    101     DEFINES["USE_GLIB"] = "1"
    102     DEFINES["USE_OZONE"] = "1"
    103     DEFINES["WEBRTC_BSD"] = True
    104     DEFINES["WEBRTC_POSIX"] = True
    105     DEFINES["_FILE_OFFSET_BITS"] = "64"
    106     DEFINES["_LARGEFILE64_SOURCE"] = True
    107     DEFINES["_LARGEFILE_SOURCE"] = True
    108     DEFINES["__STDC_CONSTANT_MACROS"] = True
    109     DEFINES["__STDC_FORMAT_MACROS"] = True
    110 
    111 if CONFIG["OS_TARGET"] == "WINNT":
    112 
    113     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
    114     DEFINES["NOMINMAX"] = True
    115     DEFINES["NTDDI_VERSION"] = "0x0A000000"
    116     DEFINES["PSAPI_VERSION"] = "2"
    117     DEFINES["RTC_ENABLE_WIN_WGC"] = True
    118     DEFINES["UNICODE"] = True
    119     DEFINES["USE_AURA"] = "1"
    120     DEFINES["WEBRTC_WIN"] = True
    121     DEFINES["WIN32"] = True
    122     DEFINES["WIN32_LEAN_AND_MEAN"] = True
    123     DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
    124     DEFINES["WINVER"] = "0x0A00"
    125     DEFINES["_ATL_NO_OPENGL"] = True
    126     DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
    127     DEFINES["_CRT_RAND_S"] = True
    128     DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
    129     DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
    130     DEFINES["_HAS_EXCEPTIONS"] = "0"
    131     DEFINES["_HAS_NODISCARD"] = True
    132     DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
    133     DEFINES["_SECURE_ATL"] = True
    134     DEFINES["_UNICODE"] = True
    135     DEFINES["_WIN32_WINNT"] = "0x0A00"
    136     DEFINES["_WINDOWS"] = True
    137     DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True
    138     DEFINES["__STD_C"] = True
    139 
    140     OS_LIBS += [
    141         "crypt32",
    142         "iphlpapi",
    143         "secur32",
    144         "winmm"
    145     ]
    146 
    147 if CONFIG["TARGET_CPU"] == "aarch64":
    148 
    149     DEFINES["WEBRTC_ARCH_ARM64"] = True
    150     DEFINES["WEBRTC_HAS_NEON"] = True
    151     DEFINES["__ARM_NEON__"] = "1"
    152 
    153 if CONFIG["TARGET_CPU"] == "arm":
    154 
    155     CXXFLAGS += [
    156         "-mfpu=neon"
    157     ]
    158 
    159     DEFINES["WEBRTC_ARCH_ARM"] = True
    160     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
    161     DEFINES["WEBRTC_HAS_NEON"] = True
    162 
    163 if CONFIG["TARGET_CPU"] == "loongarch64":
    164 
    165     DEFINES["_GNU_SOURCE"] = True
    166 
    167 if CONFIG["TARGET_CPU"] == "mips32":
    168 
    169     DEFINES["MIPS32_LE"] = True
    170     DEFINES["MIPS_FPU_LE"] = True
    171     DEFINES["_GNU_SOURCE"] = True
    172 
    173 if CONFIG["TARGET_CPU"] == "mips64":
    174 
    175     DEFINES["_GNU_SOURCE"] = True
    176 
    177 if CONFIG["TARGET_CPU"] == "x86":
    178 
    179     DEFINES["WEBRTC_ENABLE_AVX2"] = True
    180 
    181 if CONFIG["TARGET_CPU"] == "x86_64":
    182 
    183     DEFINES["WEBRTC_ENABLE_AVX2"] = True
    184 
    185 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
    186 
    187     DEFINES["_DEBUG"] = True
    188 
    189 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
    190 
    191     DEFINES["_DEBUG"] = True
    192 
    193 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
    194 
    195     DEFINES["_DEBUG"] = True
    196 
    197 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
    198 
    199     DEFINES["_DEBUG"] = True
    200 
    201 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
    202 
    203     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
    204 
    205 if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86":
    206 
    207     CXXFLAGS += [
    208         "-msse2"
    209     ]
    210 
    211 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64":
    212 
    213     DEFINES["_GNU_SOURCE"] = True
    214 
    215 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm":
    216 
    217     DEFINES["_GNU_SOURCE"] = True
    218 
    219 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
    220 
    221     CXXFLAGS += [
    222         "-msse2"
    223     ]
    224 
    225     DEFINES["_GNU_SOURCE"] = True
    226 
    227 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
    228 
    229     DEFINES["_GNU_SOURCE"] = True
    230 
    231 Library("video_codecs_api_gn")