tor-browser

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

moz.build (5593B)


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