-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: #43
- Loading branch information
Showing
41 changed files
with
4,806 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# SPDX-FileCopyrightText: 2024 Pier Luigi Fiorini <[email protected]> | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
if(NOT TARGET PkgConfig::LibDisplayInfo) | ||
find_package(PkgConfig QUIET) | ||
pkg_check_modules(LibDisplayInfo libdisplay-info IMPORTED_TARGET) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# SPDX-FileCopyrightText: 2024 Pier Luigi Fiorini <[email protected]> | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
if(NOT TARGET PkgConfig::Libxcvt) | ||
find_package(PkgConfig QUIET) | ||
pkg_check_modules(Libxcvt libxcvt IMPORTED_TARGET) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
include(ECMQtDeclareLoggingCategory) | ||
ecm_qt_declare_logging_category( | ||
AuroraDeviceIntegrationDrm_SOURCES | ||
HEADER "drmloggingcategories.h" | ||
IDENTIFIER "Aurora::Platform::gLcDrm" | ||
CATEGORY_NAME "aurora.platform.drm" | ||
DEFAULT_SEVERITY "Info" | ||
DESCRIPTION "Aurora device integration for DRM/KMS" | ||
) | ||
|
||
qt6_add_plugin(AuroraDeviceIntegrationDrm | ||
SHARED | ||
CLASS_NAME DrmIntegrationPlugin | ||
MANUAL_FINALIZATION | ||
c_ptr.h | ||
drmbackend.cpp drmbackend.h | ||
drmblob.cpp drmblob.h | ||
drmcrtc.cpp drmcrtc.h | ||
drmconnector.cpp drmconnector.h | ||
drmdevice.cpp drmdevice.h | ||
drmeventreader.cpp drmeventreader.h | ||
drmintegration.cpp drmintegration.h | ||
drmintegrationplugin.cpp drmintegrationplugin.h | ||
drmobject.cpp drmobject.h | ||
drmoutput.cpp drmoutput.h | ||
drmplane.cpp drmplane.h | ||
drmpointer.h | ||
drmproperty.cpp drmproperty.h | ||
drmwindow.cpp drmwindow.h | ||
edid.cpp edid.h | ||
filedescriptor.cpp filedescriptor.h | ||
udev.cpp udev.h | ||
${AuroraDeviceIntegrationDrm_SOURCES} | ||
) | ||
|
||
set_target_properties(AuroraDeviceIntegrationDrm | ||
PROPERTIES OUTPUT_NAME drm | ||
) | ||
|
||
target_link_libraries(AuroraDeviceIntegrationDrm | ||
PUBLIC | ||
Qt6::Core | ||
Qt6::Gui | ||
Liri::AuroraCore | ||
Liri::AuroraPlatform | ||
EGL::EGL | ||
PRIVATE | ||
PkgConfig::Libdrm | ||
PkgConfig::Gbm | ||
PkgConfig::Libxcvt | ||
PkgConfig::LibDisplayInfo | ||
PkgConfig::Libudev | ||
Liri::AuroraPlatformPrivate | ||
) | ||
|
||
qt6_finalize_target(AuroraDeviceIntegrationDrm) | ||
|
||
install( | ||
TARGETS AuroraDeviceIntegrationDrm | ||
DESTINATION ${KDE_INSTALL_PLUGINDIR}/aurora/deviceintegration | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// SPDX-FileCopyrightText: 2024 Pier Luigi Fiorini <[email protected]> | ||
// SPDX-FileCopyrightText: 2022 Xaver Hugl <[email protected]> | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
|
||
namespace Aurora { | ||
|
||
namespace Platform { | ||
|
||
struct CDeleter | ||
{ | ||
template<typename T> | ||
void operator()(T *ptr) | ||
{ | ||
if (ptr) { | ||
free(ptr); | ||
} | ||
} | ||
}; | ||
|
||
template<typename T> | ||
using UniqueCPtr = std::unique_ptr<T, CDeleter>; | ||
|
||
} // namespace Platform | ||
|
||
} // namespace Aurora |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"Keys": [ "drm" ] | ||
} |
Oops, something went wrong.