tor-browser

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

moz.build (6772B)


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