Browse Source
Merge pull request #12223 from liamwhite/fruit-company
general: conditionally compile gamemode on linux only
pull/15/merge
Narr the Reg
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
2 deletions
-
externals/CMakeLists.txt
-
src/common/CMakeLists.txt
-
src/common/linux/gamemode.cpp
|
|
|
@ -189,7 +189,7 @@ if (ANDROID) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
if (UNIX) |
|
|
|
if (CMAKE_SYSTEM_NAME STREQUAL "Linux") |
|
|
|
add_subdirectory(gamemode) |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
@ -174,7 +174,7 @@ if(ANDROID) |
|
|
|
) |
|
|
|
endif() |
|
|
|
|
|
|
|
if (UNIX) |
|
|
|
if (CMAKE_SYSTEM_NAME STREQUAL "Linux") |
|
|
|
target_sources(common PRIVATE |
|
|
|
linux/gamemode.cpp |
|
|
|
linux/gamemode.h |
|
|
|
|
|
|
|
@ -4,6 +4,7 @@ |
|
|
|
#include <gamemode_client.h>
|
|
|
|
|
|
|
|
#include "common/linux/gamemode.h"
|
|
|
|
#include "common/logging/log.h"
|
|
|
|
#include "common/settings.h"
|
|
|
|
|
|
|
|
namespace Common::Linux { |
|
|
|
|