mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-22 02:32:29 +01:00
Fix linux compilation
This commit is contained in:
parent
7a59f7934d
commit
830aaacfc4
@ -44,12 +44,12 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "linux-gcc-profile",
|
"name": "linux-gcc-relwithdebinfo",
|
||||||
"binaryDir": "${sourceDir}/../build_ScreenPlay_Gcc_Profile",
|
"binaryDir": "${sourceDir}/../build_ScreenPlay_Gcc_RelWithDebInfo",
|
||||||
"inherits": [
|
"inherits": [
|
||||||
"config-develop",
|
"config-develop",
|
||||||
"linux-gcc-base",
|
"linux-gcc-base",
|
||||||
"profile"
|
"relwithdebinfo"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -80,12 +80,12 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "linux-clang-profile",
|
"name": "linux-clang-relwithdebinfo",
|
||||||
"binaryDir": "${sourceDir}/../build_ScreenPlay_Clang_Profile",
|
"binaryDir": "${sourceDir}/../build_ScreenPlay_Clang_RelWithDebInfo",
|
||||||
"inherits": [
|
"inherits": [
|
||||||
"config-develop",
|
"config-develop",
|
||||||
"linux-clang-base",
|
"linux-clang-base",
|
||||||
"profile"
|
"relwithdebinfo"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -46,6 +46,7 @@ int main(int argc, char* argv[])
|
|||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
window = std::make_unique<WinWindow>();
|
window = std::make_unique<WinWindow>();
|
||||||
#elif defined(Q_OS_LINUX)
|
#elif defined(Q_OS_LINUX)
|
||||||
|
const auto platformName = QGuiApplication::platformName();
|
||||||
if (platformName == "xcb") {
|
if (platformName == "xcb") {
|
||||||
window = std::make_unique<LinuxX11Window>();
|
window = std::make_unique<LinuxX11Window>();
|
||||||
} else if (platformName == "wayland") {
|
} else if (platformName == "wayland") {
|
||||||
|
Loading…
Reference in New Issue
Block a user