Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/widget/gtk/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 5 kB image not shown  

Quelle  moz.build  Sprache: unbekannt

 
Spracherkennung für: .build vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

with Files("**"):
    BUG_COMPONENT = ("Core", "Widget: Gtk")

with Files("*CompositorWidget*"):
    BUG_COMPONENT = ("Core", "Graphics")

with Files("*WindowSurface*"):
    BUG_COMPONENT = ("Core", "Graphics")

with Files("*IMContextWrapper*"):
    BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")

with Files("*nsGtkKeyUtils*"):
    BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")

DIRS += [
    "/third_party/gbm/libgbm",
]

if CONFIG["COMPILE_ENVIRONMENT"]:
    DIRS += ["mozgtk"]

if CONFIG["MOZ_WAYLAND"]:
    DIRS += ["wayland", "mozwayland", "../../third_party/wayland-proxy"]

if CONFIG["MOZ_ENABLE_VAAPI"]:
    DIRS += ["vaapitest"]

if CONFIG["MOZ_ENABLE_V4L2"]:
    DIRS += ["v4l2test"]

if CONFIG["MOZ_ENABLE_VULKAN_VIDEO"]:
    DIRS += ["vulkantest"]

EXPORTS += [
    "MozContainer.h",
    "nsAppShell.h",
    "nsGTKToolkit.h",
    "nsGtkUtils.h",
    "nsImageToPixbuf.h",
]

EXPORTS.mozilla += [
    "GfxInfo.h",
    "GfxInfoUtils.h",
    "GRefPtr.h",
    "GUniquePtr.h",
    "WidgetUtilsGtk.h",
]

EXPORTS.mozilla.widget += [
    "CompositorWidgetChild.h",
    "CompositorWidgetParent.h",
    "DMABufDevice.h",
    "DMABufFormats.h",
    "DMABufSurface.h",
    "GSettings.h",
    "GtkCompositorWidget.h",
    "InProcessGtkCompositorWidget.h",
    "nsGtkHtmlUtils.h",
    "va_drmcommon.h",
    "WaylandSurfaceLock.h",
    "WindowSurface.h",
    "WindowSurfaceProvider.h",
]

UNIFIED_SOURCES += [
    "AsyncClipboardRequest.cpp",
    "CompositorWidgetChild.cpp",
    "CompositorWidgetParent.cpp",
    "DMABufDevice.cpp",
    "DMABufFormats.cpp",
    "DMABufSurface.cpp",
    "GfxInfo.cpp",
    "GSettings.cpp",
    "GtkCompositorWidget.cpp",
    "GtkWidgets.cpp",
    "IMContextWrapper.cpp",
    "InProcessGtkCompositorWidget.cpp",
    "MozContainer.cpp",
    "MPRISServiceHandler.cpp",
    "NativeKeyBindings.cpp",
    "NativeMenuGtk.cpp",
    "NativeMenuSupport.cpp",
    "nsApplicationChooser.cpp",
    "nsAppShell.cpp",
    "nsBidiKeyboard.cpp",
    "nsClipboard.cpp",
    "nsColorPicker.cpp",
    "nsDragService.cpp",
    "nsDragServiceGtk.cpp",
    "nsFilePicker.cpp",
    "nsGtkHtmlUtils.cpp",
    "nsGtkKeyUtils.cpp",
    "nsImageToPixbuf.cpp",
    "nsLookAndFeel.cpp",
    "nsSound.cpp",
    "nsToolkit.cpp",
    "nsUserIdleServiceGTK.cpp",
    "nsWidgetFactory.cpp",
    "ScreenHelperGTK.cpp",
    "TaskbarProgress.cpp",
    "WakeLockListener.cpp",
    "WaylandSurfaceLock.cpp",
    "WidgetUtilsGtk.cpp",
    "WindowSurfaceProvider.cpp",
]

SOURCES += [
    "MediaKeysEventSourceFactory.cpp",
    "nsNativeThemeGTK.cpp",  # conflicts with X11 headers
    "nsWindow.cpp",  # conflicts with X11 headers
]

if CONFIG["MOZ_WAYLAND"]:
    UNIFIED_SOURCES += [
        "MozContainerWayland.cpp",
        "nsDragServiceWayland.cpp",
        "nsWaylandDisplay.cpp",
        "RetrievalContextGtk.cpp",
        "RetrievalContextWayland.cpp",
        "WaylandBuffer.cpp",
        "WaylandSurface.cpp",
        "WindowSurfaceCairo.cpp",
        "WindowSurfaceWaylandMultiBuffer.cpp",
    ]
    SOURCES += [
        "nsWindowWayland.cpp",  # conflicts with X11 headers
        "WaylandVsyncSource.cpp",  # conflicts with X11 headers
    ]
    EXPORTS.mozilla.widget += [
        "MozContainerWayland.h",
        "nsWaylandDisplay.h",
        "WaylandBuffer.h",
        "WaylandSurface.h",
    ]

if CONFIG["MOZ_X11"]:
    UNIFIED_SOURCES += [
        "nsShmImage.cpp",
        "RetrievalContextX11.cpp",
        "WindowSurfaceX11.cpp",
        "WindowSurfaceX11Image.cpp",
        "WindowSurfaceX11SHM.cpp",
    ]
    SOURCES += [
        "nsWindowX11.cpp",  # conflicts with X11 headers
    ]

if CONFIG["NS_PRINTING"]:
    UNIFIED_SOURCES += [
        "nsDeviceContextSpecG.cpp",
        "nsPrintDialogGTK.cpp",
        "nsPrintSettingsGTK.cpp",
        "nsPrintSettingsServiceGTK.cpp",
    ]

XPCOM_MANIFESTS += [
    "components.conf",
]

include("/ipc/chromium/chromium-config.mozbuild")

FINAL_LIBRARY = "xul"

LOCAL_INCLUDES += [
    "/layout/base",
    "/layout/forms",
    "/layout/generic",
    "/layout/xul",
    "/other-licenses/atk-1.0",
    "/third_party/cups/include",
    "/widget",
    "/widget/headless",
    "/widget/x11",
]

CXXFLAGS += CONFIG["MOZ_GBM_CFLAGS"]
if not CONFIG["MOZ_SYSTEM_GBM"]:
    LOCAL_INCLUDES += [
        "/third_party/gbm/gbm/",
    ]
    DIRS += [
        "/third_party/gbm/gbm/",
    ]

CXXFLAGS += CONFIG["MOZ_LIBDRM_CFLAGS"]
if not CONFIG["MOZ_SYSTEM_LIBDRM"]:
    LOCAL_INCLUDES += [
        "/third_party/drm/drm/",
        "/third_party/drm/drm/include",
        "/third_party/drm/drm/include/libdrm",
    ]

DEFINES["CAIRO_GFX"] = True

DEFINES["MOZ_APP_NAME"] = '"%s"' % CONFIG["MOZ_APP_NAME"]

CFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]

if CONFIG["MOZ_WAYLAND"]:
    CFLAGS += CONFIG["MOZ_WAYLAND_CFLAGS"]
    CXXFLAGS += CONFIG["MOZ_WAYLAND_CFLAGS"]

if CONFIG["MOZ_ENABLE_DBUS"]:
    EXPORTS.mozilla.widget += [
        "AsyncDBus.h",
    ]
    UNIFIED_SOURCES += [
        "AsyncDBus.cpp",
        "DBusMenu.cpp",
        "DBusService.cpp",
    ]
    CXXFLAGS += CONFIG["MOZ_DBUS_CFLAGS"]

if CONFIG["MOZ_WAYLAND"] and CONFIG["MOZ_ENABLE_DBUS"]:
    UNIFIED_SOURCES += [
        "FileTransferPortal.cpp",
    ]

COMPILE_FLAGS["WARNINGS_CXXFLAGS"] += ["-Werror=switch"]

[Dauer der Verarbeitung: 0.14 Sekunden, vorverarbeitet 2026-09-29]