1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-07-08 05:48:09 +02:00

Fix linux compilation

This commit is contained in:
Elias Steurer 2024-02-02 16:28:19 +01:00
parent 7a59f7934d
commit 830aaacfc4
2 changed files with 7 additions and 6 deletions

View File

@ -44,12 +44,12 @@
]
},
{
"name": "linux-gcc-profile",
"binaryDir": "${sourceDir}/../build_ScreenPlay_Gcc_Profile",
"name": "linux-gcc-relwithdebinfo",
"binaryDir": "${sourceDir}/../build_ScreenPlay_Gcc_RelWithDebInfo",
"inherits": [
"config-develop",
"linux-gcc-base",
"profile"
"relwithdebinfo"
]
},
{
@ -80,12 +80,12 @@
]
},
{
"name": "linux-clang-profile",
"binaryDir": "${sourceDir}/../build_ScreenPlay_Clang_Profile",
"name": "linux-clang-relwithdebinfo",
"binaryDir": "${sourceDir}/../build_ScreenPlay_Clang_RelWithDebInfo",
"inherits": [
"config-develop",
"linux-clang-base",
"profile"
"relwithdebinfo"
]
},
{

View File

@ -46,6 +46,7 @@ int main(int argc, char* argv[])
#if defined(Q_OS_WIN)
window = std::make_unique<WinWindow>();
#elif defined(Q_OS_LINUX)
const auto platformName = QGuiApplication::platformName();
if (platformName == "xcb") {
window = std::make_unique<LinuxX11Window>();
} else if (platformName == "wayland") {