tor-browser

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

moz.build (5887B)


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