compile ViGEmClient
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -4,3 +4,6 @@
|
|||||||
[submodule "Simple-Web-Server"]
|
[submodule "Simple-Web-Server"]
|
||||||
path = Simple-Web-Server
|
path = Simple-Web-Server
|
||||||
url = https://github.com/loki-47-6F-64/Simple-Web-Server.git
|
url = https://github.com/loki-47-6F-64/Simple-Web-Server.git
|
||||||
|
[submodule "ViGEmClient"]
|
||||||
|
path = ViGEmClient
|
||||||
|
url = https://github.com/ViGEm/ViGEmClient
|
||||||
|
|||||||
@@ -13,17 +13,23 @@ find_package(OpenSSL REQUIRED)
|
|||||||
find_package(FFmpeg REQUIRED)
|
find_package(FFmpeg REQUIRED)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
include_directories(
|
||||||
|
ViGEmClient/include)
|
||||||
set(PLATFORM_TARGET_FILES
|
set(PLATFORM_TARGET_FILES
|
||||||
sunshine/platform/windows.cpp
|
sunshine/platform/windows.cpp
|
||||||
sunshine/platform/windows_dxgi.cpp
|
sunshine/platform/windows_dxgi.cpp
|
||||||
sunshine/platform/windows_wasapi.cpp)
|
sunshine/platform/windows_wasapi.cpp
|
||||||
|
ViGEmClient/src/ViGEmClient.cpp)
|
||||||
set(PLATFORM_LIBRARIES
|
set(PLATFORM_LIBRARIES
|
||||||
winmm
|
winmm
|
||||||
ksuser
|
ksuser
|
||||||
wsock32
|
wsock32
|
||||||
ws2_32
|
ws2_32
|
||||||
windowsapp
|
windowsapp
|
||||||
d3d11 dxgi)
|
d3d11 dxgi
|
||||||
|
setupapi)
|
||||||
|
set_source_files_properties(ViGEmClient/src/ViGEmClient.cpp PROPERTIES COMPILE_DEFINITIONS "UNICODE=1;ERROR_INVALID_DEVICE_OBJECT_PARAMETER=650")
|
||||||
|
set_source_files_properties(ViGEmClient/src/ViGEmClient.cpp PROPERTIES COMPILE_FLAGS "-Wno-unknown-pragmas -Wno-misleading-indentation -Wno-class-memaccess")
|
||||||
else()
|
else()
|
||||||
set(Boost_USE_STATIC_LIBS ON)
|
set(Boost_USE_STATIC_LIBS ON)
|
||||||
find_package(X11 REQUIRED)
|
find_package(X11 REQUIRED)
|
||||||
@@ -96,6 +102,7 @@ include_directories(
|
|||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND SUNSHINE_COMPILE_OPTIONS -fPIC -Wall -Wno-missing-braces -Wno-maybe-uninitialized -Wno-sign-compare)
|
list(APPEND SUNSHINE_COMPILE_OPTIONS -fPIC -Wall -Wno-missing-braces -Wno-maybe-uninitialized -Wno-sign-compare)
|
||||||
|
|
||||||
string(TOUPPER "x${CMAKE_BUILD_TYPE}" BUILD_TYPE)
|
string(TOUPPER "x${CMAKE_BUILD_TYPE}" BUILD_TYPE)
|
||||||
if("${BUILD_TYPE}" STREQUAL "XDEBUG")
|
if("${BUILD_TYPE}" STREQUAL "XDEBUG")
|
||||||
list(APPEND SUNSHINE_COMPILE_OPTIONS -O0 -pedantic -ggdb3)
|
list(APPEND SUNSHINE_COMPILE_OPTIONS -O0 -pedantic -ggdb3)
|
||||||
|
|||||||
1
ViGEmClient
Submodule
1
ViGEmClient
Submodule
Submodule ViGEmClient added at 52682b59c4
Reference in New Issue
Block a user