1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-03 00:59:47 +02:00

Fix linux compilation

This commit is contained in:
Elias Steurer 2023-11-09 12:10:52 +01:00
parent 55996b2914
commit b66e293b55
4 changed files with 5 additions and 6 deletions

View File

@ -295,7 +295,6 @@ target_link_libraries(
ScreenPlayApp
PUBLIC ScreenPlaySDK
LibArchive::LibArchive
ScreenPlayWallpaperLib
ScreenPlayUtil
ScreenPlayUtilplugin
QArchive
@ -354,7 +353,7 @@ if(WIN32
endif()
if(WIN32)
target_link_libraries(ScreenPlayApp PUBLIC CURL::libcurl sentry::sentry)
target_link_libraries(ScreenPlayApp PUBLIC CURL::libcurl sentry::sentry ScreenPlayWallpaperLib)
# Icon
target_sources(${PROJECT_NAME} PRIVATE ScreenPlay.rc)

View File

@ -1,7 +1,9 @@
// SPDX-License-Identifier: LicenseRef-EliasSteurerTachiom OR AGPL-3.0-only
#include "ScreenPlay/monitorlistmodel.h"
#ifdef Q_OS_WIN
#include "windowsintegration.h"
#endif
#include <QGuiApplication>
namespace ScreenPlay {

View File

@ -177,7 +177,7 @@ void Settings::setupWidgetAndWindowPaths()
m_globalVariables->setGodotWallpaperExecutablePath(QUrl(workingDir.path() + basePath + "ScreenPlayWallpaperGodot").toLocalFile());
const auto godotEditorName = "Godot_" + godotVersion + "-stable_osx.universal";
m_globalVariables->setGodotEditorExecutablePath(QUrl(workingDir.path() + "/" + godotEditorName));
} else if (osType == "linux") {
} else if (osType == "linux" || osType == "ubuntu") {
m_globalVariables->setWidgetExecutablePath(QUrl(workingDir.path() + "/ScreenPlayWidget"));
m_globalVariables->setWallpaperExecutablePath(QUrl(workingDir.path() + "/ScreenPlayWallpaper"));
m_globalVariables->setGodotWallpaperExecutablePath(QUrl(workingDir.path() + "/ScreenPlayWallpaperGodot"));

View File

@ -63,9 +63,7 @@ endif()
add_executable(
${PROJECT_NAME}
${SOURCES}
${HEADER}
src/windowsintegration.h
src/windowsintegration.cpp)
${HEADER})
qt_add_qml_module(
${PROJECT_NAME}