tor-browser

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

moz.build (6276B)


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