tor-browser

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

moz.build (5520B)


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