-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
949cd42
commit 926820f
Showing
16 changed files
with
110 additions
and
144 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
This file was deleted.
Oops, something went wrong.
Empty file.
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,46 @@ | ||
# SPDX-FileCopyrightText: Year Author <[email protected]> | ||
# | ||
# SPDX-License-Identifier: BSD-2-Clause | ||
|
||
# cmake_minimum_required(VERSION 3.16) | ||
|
||
# project(webcamkcm) | ||
|
||
# set(QT_MIN_VERSION "5.15.0") | ||
# set(KF5_MIN_VERSION "5.85.0") | ||
|
||
# find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) | ||
# set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) | ||
|
||
set(QWebcamSettings_SRCS | ||
QWebcamSettings.cpp | ||
VideoDevice.cpp | ||
helpers.cpp | ||
) | ||
|
||
kauth_install_actions(kcm.webcam.settings.udevhelper udevhelper.actions) | ||
add_executable(udevhelper UdevHelper.cpp UdevHelper.h helpers.cpp helpers.h) | ||
target_link_libraries(udevhelper KF5::Auth) | ||
install(TARGETS udevhelper DESTINATION ${KAUTH_HELPER_INSTALL_DIR}) | ||
kauth_install_helper_files(udevhelper kcm.webcam.settings.udevhelper root) | ||
|
||
add_library(kcm_webcam_settings MODULE ${QWebcamSettings_SRCS}) | ||
|
||
target_link_libraries(kcm_webcam_settings | ||
KF5::ConfigCore | ||
KF5::CoreAddons | ||
KF5::Declarative | ||
KF5::I18n | ||
KF5::PlasmaQuick | ||
KF5::QuickAddons | ||
KF5::Auth | ||
Qt5::Multimedia | ||
) | ||
target_compile_options (kcm_webcam_settings PUBLIC -fexceptions) | ||
kcoreaddons_desktop_to_json(kcm_webcam_settings "package/metadata.desktop") | ||
|
||
install(TARGETS kcm_webcam_settings DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | ||
install(FILES package/metadata.desktop RENAME kcm_webcam_settings.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) # Install the desktop file | ||
|
||
|
||
kpackage_install_package(package kcm_webcam_settings kcms) # Install our QML kpackage. |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.