moz.build (3397B)
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 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": 9 CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"] 10 CXXFLAGS += CONFIG["MOZ_GBM_CFLAGS"] 11 if not CONFIG["MOZ_SYSTEM_GBM"]: 12 LOCAL_INCLUDES += [ "/third_party/gbm/gbm/" ] 13 CXXFLAGS += CONFIG["MOZ_LIBDRM_CFLAGS"] 14 if not CONFIG["MOZ_SYSTEM_LIBDRM"]: 15 LOCAL_INCLUDES += [ "/third_party/drm/drm/", 16 "/third_party/drm/drm/include/", 17 "/third_party/drm/drm/include/libdrm" ] 18 CXXFLAGS += CONFIG["MOZ_PIPEWIRE_CFLAGS"] 19 if not CONFIG["MOZ_SYSTEM_PIPEWIRE"]: 20 LOCAL_INCLUDES += [ "/third_party/pipewire/" ] 21 22 COMPILE_FLAGS["OS_INCLUDES"] = [] 23 AllowCompilerWarnings() 24 25 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" 26 DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" 27 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True 28 DEFINES["RTC_ENABLE_VP9"] = True 29 DEFINES["USE_AURA"] = "1" 30 DEFINES["USE_GLIB"] = "1" 31 DEFINES["USE_OZONE"] = "1" 32 DEFINES["USE_UDEV"] = True 33 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" 34 DEFINES["WEBRTC_ENCODER_PSNR_STATS"] = True 35 DEFINES["WEBRTC_LIBRARY_IMPL"] = True 36 DEFINES["WEBRTC_LINUX"] = True 37 DEFINES["WEBRTC_MOZILLA_BUILD"] = True 38 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0" 39 DEFINES["WEBRTC_POSIX"] = True 40 DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0" 41 DEFINES["WEBRTC_USE_PIPEWIRE"] = True 42 DEFINES["_FILE_OFFSET_BITS"] = "64" 43 DEFINES["_GNU_SOURCE"] = True 44 DEFINES["_LARGEFILE64_SOURCE"] = True 45 DEFINES["_LARGEFILE_SOURCE"] = True 46 DEFINES["__STDC_CONSTANT_MACROS"] = True 47 DEFINES["__STDC_FORMAT_MACROS"] = True 48 49 FINAL_LIBRARY = "xul" 50 51 52 LOCAL_INCLUDES += [ 53 "!/dist/include/libwebrtc_overrides", 54 "!/ipc/ipdl/_ipdlheaders", 55 "!/third_party/libwebrtc/gen", 56 "/ipc/chromium/src", 57 "/third_party/abseil-cpp/", 58 "/third_party/libepoxy/libepoxy/include/", 59 "/third_party/libwebrtc/", 60 "/third_party/libwebrtc/third_party/libepoxy/libepoxy/include/", 61 "/tools/profiler/public" 62 ] 63 64 UNIFIED_SOURCES += [ 65 "/third_party/libwebrtc/modules/portal/pipewire_utils.cc", 66 "/third_party/libwebrtc/modules/portal/scoped_glib.cc", 67 "/third_party/libwebrtc/modules/portal/xdg_desktop_portal_utils.cc" 68 ] 69 70 if not CONFIG["MOZ_DEBUG"]: 71 72 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0" 73 DEFINES["NDEBUG"] = True 74 DEFINES["NVALGRIND"] = True 75 76 if CONFIG["MOZ_DEBUG"] == "1": 77 78 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" 79 DEFINES["_DEBUG"] = True 80 81 if CONFIG["TARGET_CPU"] == "aarch64": 82 83 DEFINES["WEBRTC_ARCH_ARM64"] = True 84 DEFINES["WEBRTC_HAS_NEON"] = True 85 DEFINES["__ARM_NEON__"] = "1" 86 87 if CONFIG["TARGET_CPU"] == "arm": 88 89 CXXFLAGS += [ 90 "-mfpu=neon" 91 ] 92 93 DEFINES["WEBRTC_ARCH_ARM"] = True 94 DEFINES["WEBRTC_ARCH_ARM_V7"] = True 95 DEFINES["WEBRTC_HAS_NEON"] = True 96 97 if CONFIG["TARGET_CPU"] == "mips32": 98 99 DEFINES["MIPS32_LE"] = True 100 DEFINES["MIPS_FPU_LE"] = True 101 102 if CONFIG["TARGET_CPU"] == "x86": 103 104 CXXFLAGS += [ 105 "-msse2" 106 ] 107 108 DEFINES["WEBRTC_ENABLE_AVX2"] = True 109 110 if CONFIG["TARGET_CPU"] == "x86_64": 111 112 DEFINES["WEBRTC_ENABLE_AVX2"] = True 113 114 Library("portal_gn")