tor-browser

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

moz.build (5779B)


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