# Generated from eglfs.pro.

#####################################################################
## EglFSDeviceIntegration Module:
#####################################################################

qt_internal_add_module(EglFSDeviceIntegration
    INTERNAL_MODULE
    SOURCES
        api/qeglfsdeviceintegration.cpp api/qeglfsdeviceintegration_p.h
        api/qeglfsglobal_p.h
        api/qeglfshooks.cpp api/qeglfshooks_p.h
        api/qeglfsintegration.cpp api/qeglfsintegration_p.h
        api/qeglfsoffscreenwindow.cpp api/qeglfsoffscreenwindow_p.h
        api/qeglfsscreen.cpp api/qeglfsscreen_p.h
        api/qeglfswindow.cpp api/qeglfswindow_p.h
    DEFINES
        QT_BUILD_EGL_DEVICE_LIB
        QT_EGL_NO_X11
    INCLUDE_DIRECTORIES
        api
    PUBLIC_LIBRARIES
        Qt::CorePrivate
        Qt::DeviceDiscoverySupportPrivate
        Qt::FbSupportPrivate
        Qt::GuiPrivate
)

#### Keys ignored in scope 2:.:.:eglfsdeviceintegration.pro:<TRUE>:
# MODULE = "eglfsdeviceintegration"

## Scopes:
#####################################################################

qt_internal_extend_target(EglFSDeviceIntegration CONDITION TARGET Qt::InputSupportPrivate
    PUBLIC_LIBRARIES
        Qt::InputSupportPrivate
)

qt_internal_extend_target(EglFSDeviceIntegration CONDITION QT_FEATURE_opengl
    SOURCES
        api/qeglfscontext.cpp api/qeglfscontext_p.h
        api/qeglfscursor.cpp api/qeglfscursor_p.h
    PUBLIC_LIBRARIES
        Qt::OpenGLPrivate
)

qt_internal_extend_target(EglFSDeviceIntegration CONDITION NOT EGLFS_PLATFORM_HOOKS_SOURCES_ISEMPTY
    DEFINES
        EGLFS_PLATFORM_HOOKS
)

qt_internal_extend_target(EglFSDeviceIntegration CONDITION NOT EGLFS_DEVICE_INTEGRATION_ISEMPTY
    DEFINES
        EGLFS_PREFERRED_PLUGIN=
)

if(QT_FEATURE_cursor)
    # Resources:
    set(cursor_resource_files
        "cursor-atlas.png"
        "cursor.json"
    )

    qt_internal_add_resource(EglFSDeviceIntegration "cursor"
        PREFIX
            "/"
        FILES
            ${cursor_resource_files}
    )
endif()

qt_internal_extend_target(EglFSDeviceIntegration CONDITION QT_FEATURE_vulkan
    SOURCES
        api/vulkan/qeglfsvulkaninstance.cpp api/vulkan/qeglfsvulkaninstance_p.h
        api/vulkan/qeglfsvulkanwindow.cpp api/vulkan/qeglfsvulkanwindow_p.h
)
#####################################################################
## QEglFSIntegrationPlugin Plugin:
#####################################################################

qt_internal_add_plugin(QEglFSIntegrationPlugin
    OUTPUT_NAME qeglfs
    TYPE platforms
    SOURCES
        qeglfsmain.cpp
    DEFINES
        QT_EGL_NO_X11
    PUBLIC_LIBRARIES
        Qt::EglFSDeviceIntegrationPrivate
)

#### Keys ignored in scope 12:.:.:eglfs-plugin.pro:<TRUE>:
# OTHER_FILES = "$$PWD/eglfs.json"

## Scopes:
#####################################################################

#### Keys ignored in scope 13:.:.:eglfs-plugin.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
# PLUGIN_EXTENDS = "-"
add_subdirectory(deviceintegration)
