tor-browser

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

moz.build (8463B)


      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 SOURCES += [
     37     "/third_party/libwebrtc/modules/audio_coding/neteq/audio_vector.cc",
     38     "/third_party/libwebrtc/modules/audio_coding/neteq/underrun_optimizer.cc"
     39 ]
     40 
     41 UNIFIED_SOURCES += [
     42     "/third_party/libwebrtc/modules/audio_coding/neteq/accelerate.cc",
     43     "/third_party/libwebrtc/modules/audio_coding/neteq/audio_multi_vector.cc",
     44     "/third_party/libwebrtc/modules/audio_coding/neteq/background_noise.cc",
     45     "/third_party/libwebrtc/modules/audio_coding/neteq/buffer_level_filter.cc",
     46     "/third_party/libwebrtc/modules/audio_coding/neteq/comfort_noise.cc",
     47     "/third_party/libwebrtc/modules/audio_coding/neteq/cross_correlation.cc",
     48     "/third_party/libwebrtc/modules/audio_coding/neteq/decision_logic.cc",
     49     "/third_party/libwebrtc/modules/audio_coding/neteq/decoder_database.cc",
     50     "/third_party/libwebrtc/modules/audio_coding/neteq/delay_constraints.cc",
     51     "/third_party/libwebrtc/modules/audio_coding/neteq/delay_manager.cc",
     52     "/third_party/libwebrtc/modules/audio_coding/neteq/dsp_helper.cc",
     53     "/third_party/libwebrtc/modules/audio_coding/neteq/dtmf_buffer.cc",
     54     "/third_party/libwebrtc/modules/audio_coding/neteq/dtmf_tone_generator.cc",
     55     "/third_party/libwebrtc/modules/audio_coding/neteq/expand.cc",
     56     "/third_party/libwebrtc/modules/audio_coding/neteq/expand_uma_logger.cc",
     57     "/third_party/libwebrtc/modules/audio_coding/neteq/histogram.cc",
     58     "/third_party/libwebrtc/modules/audio_coding/neteq/merge.cc",
     59     "/third_party/libwebrtc/modules/audio_coding/neteq/nack_tracker.cc",
     60     "/third_party/libwebrtc/modules/audio_coding/neteq/neteq_impl.cc",
     61     "/third_party/libwebrtc/modules/audio_coding/neteq/normal.cc",
     62     "/third_party/libwebrtc/modules/audio_coding/neteq/packet.cc",
     63     "/third_party/libwebrtc/modules/audio_coding/neteq/packet_arrival_history.cc",
     64     "/third_party/libwebrtc/modules/audio_coding/neteq/packet_buffer.cc",
     65     "/third_party/libwebrtc/modules/audio_coding/neteq/preemptive_expand.cc",
     66     "/third_party/libwebrtc/modules/audio_coding/neteq/random_vector.cc",
     67     "/third_party/libwebrtc/modules/audio_coding/neteq/red_payload_splitter.cc",
     68     "/third_party/libwebrtc/modules/audio_coding/neteq/reorder_optimizer.cc",
     69     "/third_party/libwebrtc/modules/audio_coding/neteq/statistics_calculator.cc",
     70     "/third_party/libwebrtc/modules/audio_coding/neteq/sync_buffer.cc",
     71     "/third_party/libwebrtc/modules/audio_coding/neteq/time_stretch.cc",
     72     "/third_party/libwebrtc/modules/audio_coding/neteq/timestamp_scaler.cc"
     73 ]
     74 
     75 if not CONFIG["MOZ_DEBUG"]:
     76 
     77     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
     78     DEFINES["NDEBUG"] = True
     79     DEFINES["NVALGRIND"] = True
     80 
     81 if CONFIG["MOZ_DEBUG"] == "1":
     82 
     83     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
     84 
     85 if CONFIG["OS_TARGET"] == "Android":
     86 
     87     DEFINES["ANDROID"] = True
     88     DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1"
     89     DEFINES["HAVE_SYS_UIO_H"] = True
     90     DEFINES["WEBRTC_ANDROID"] = True
     91     DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
     92     DEFINES["WEBRTC_LINUX"] = True
     93     DEFINES["WEBRTC_POSIX"] = True
     94     DEFINES["_GNU_SOURCE"] = True
     95     DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True
     96     DEFINES["__STDC_CONSTANT_MACROS"] = True
     97     DEFINES["__STDC_FORMAT_MACROS"] = True
     98 
     99     OS_LIBS += [
    100         "log"
    101     ]
    102 
    103 if CONFIG["OS_TARGET"] == "Darwin":
    104 
    105     DEFINES["WEBRTC_MAC"] = True
    106     DEFINES["WEBRTC_POSIX"] = True
    107     DEFINES["__STDC_CONSTANT_MACROS"] = True
    108     DEFINES["__STDC_FORMAT_MACROS"] = True
    109 
    110 if CONFIG["OS_TARGET"] == "Linux":
    111 
    112     DEFINES["USE_AURA"] = "1"
    113     DEFINES["USE_GLIB"] = "1"
    114     DEFINES["USE_OZONE"] = "1"
    115     DEFINES["USE_UDEV"] = True
    116     DEFINES["WEBRTC_LINUX"] = True
    117     DEFINES["WEBRTC_POSIX"] = True
    118     DEFINES["_FILE_OFFSET_BITS"] = "64"
    119     DEFINES["_LARGEFILE64_SOURCE"] = True
    120     DEFINES["_LARGEFILE_SOURCE"] = True
    121     DEFINES["__STDC_CONSTANT_MACROS"] = True
    122     DEFINES["__STDC_FORMAT_MACROS"] = True
    123 
    124 if CONFIG["OS_TARGET"] == "OpenBSD":
    125 
    126     DEFINES["USE_GLIB"] = "1"
    127     DEFINES["USE_OZONE"] = "1"
    128     DEFINES["WEBRTC_BSD"] = True
    129     DEFINES["WEBRTC_POSIX"] = True
    130     DEFINES["_FILE_OFFSET_BITS"] = "64"
    131     DEFINES["_LARGEFILE64_SOURCE"] = True
    132     DEFINES["_LARGEFILE_SOURCE"] = True
    133     DEFINES["__STDC_CONSTANT_MACROS"] = True
    134     DEFINES["__STDC_FORMAT_MACROS"] = True
    135 
    136 if CONFIG["OS_TARGET"] == "WINNT":
    137 
    138     DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
    139     DEFINES["NOMINMAX"] = True
    140     DEFINES["NTDDI_VERSION"] = "0x0A000000"
    141     DEFINES["PSAPI_VERSION"] = "2"
    142     DEFINES["RTC_ENABLE_WIN_WGC"] = True
    143     DEFINES["UNICODE"] = True
    144     DEFINES["USE_AURA"] = "1"
    145     DEFINES["WEBRTC_WIN"] = True
    146     DEFINES["WIN32"] = True
    147     DEFINES["WIN32_LEAN_AND_MEAN"] = True
    148     DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
    149     DEFINES["WINVER"] = "0x0A00"
    150     DEFINES["_ATL_NO_OPENGL"] = True
    151     DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
    152     DEFINES["_CRT_RAND_S"] = True
    153     DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
    154     DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
    155     DEFINES["_HAS_EXCEPTIONS"] = "0"
    156     DEFINES["_HAS_NODISCARD"] = True
    157     DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
    158     DEFINES["_SECURE_ATL"] = True
    159     DEFINES["_UNICODE"] = True
    160     DEFINES["_WIN32_WINNT"] = "0x0A00"
    161     DEFINES["_WINDOWS"] = True
    162     DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True
    163     DEFINES["__STD_C"] = True
    164 
    165     OS_LIBS += [
    166         "crypt32",
    167         "iphlpapi",
    168         "secur32",
    169         "winmm"
    170     ]
    171 
    172 if CONFIG["TARGET_CPU"] == "aarch64":
    173 
    174     DEFINES["WEBRTC_ARCH_ARM64"] = True
    175     DEFINES["WEBRTC_HAS_NEON"] = True
    176     DEFINES["__ARM_NEON__"] = "1"
    177 
    178 if CONFIG["TARGET_CPU"] == "arm":
    179 
    180     CXXFLAGS += [
    181         "-mfpu=neon"
    182     ]
    183 
    184     DEFINES["WEBRTC_ARCH_ARM"] = True
    185     DEFINES["WEBRTC_ARCH_ARM_V7"] = True
    186     DEFINES["WEBRTC_HAS_NEON"] = True
    187 
    188 if CONFIG["TARGET_CPU"] == "loongarch64":
    189 
    190     DEFINES["_GNU_SOURCE"] = True
    191 
    192 if CONFIG["TARGET_CPU"] == "mips32":
    193 
    194     DEFINES["MIPS32_LE"] = True
    195     DEFINES["MIPS_FPU_LE"] = True
    196     DEFINES["_GNU_SOURCE"] = True
    197 
    198 if CONFIG["TARGET_CPU"] == "mips64":
    199 
    200     DEFINES["_GNU_SOURCE"] = True
    201 
    202 if CONFIG["TARGET_CPU"] == "x86":
    203 
    204     DEFINES["WEBRTC_ENABLE_AVX2"] = True
    205 
    206 if CONFIG["TARGET_CPU"] == "x86_64":
    207 
    208     DEFINES["WEBRTC_ENABLE_AVX2"] = True
    209 
    210 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
    211 
    212     DEFINES["_DEBUG"] = True
    213 
    214 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
    215 
    216     DEFINES["_DEBUG"] = True
    217 
    218 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
    219 
    220     DEFINES["_DEBUG"] = True
    221 
    222 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
    223 
    224     DEFINES["_DEBUG"] = True
    225 
    226 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
    227 
    228     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
    229 
    230 if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86":
    231 
    232     CXXFLAGS += [
    233         "-msse2"
    234     ]
    235 
    236 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64":
    237 
    238     DEFINES["_GNU_SOURCE"] = True
    239 
    240 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm":
    241 
    242     DEFINES["_GNU_SOURCE"] = True
    243 
    244 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
    245 
    246     CXXFLAGS += [
    247         "-msse2"
    248     ]
    249 
    250     DEFINES["_GNU_SOURCE"] = True
    251 
    252 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
    253 
    254     DEFINES["_GNU_SOURCE"] = True
    255 
    256 Library("neteq_gn")