-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Steam Link: Add platform, video and audio code
Known issues: * Videos stutter due to increased CPU requirements
- Loading branch information
Showing
63 changed files
with
3,174 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#.rst: | ||
# FindSdl2 | ||
# ------- | ||
# Finds the SDL2 library | ||
# | ||
# This will will define the following variables:: | ||
# | ||
# SDL2_FOUND - system has SDL2 | ||
# SDL2_INCLUDE_DIRS - the SDL2 include directory | ||
# SDL2_LIBRARIES - the SDL2 libraries | ||
# SDL2_DEFINITIONS - the SDL2 compile definitions | ||
|
||
find_path(SDL2_INCLUDE_DIR NAMES SDL2/SDL.h) | ||
find_library(SDL2_LIBRARY NAMES SDL2) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Sdl2 REQUIRED_VARS SDL2_LIBRARY SDL2_INCLUDE_DIR) | ||
|
||
if(SDL2_FOUND) | ||
set(SDL2_LIBRARIES ${SDL2_LIBRARY}) | ||
set(SDL2_INCLUDE_DIRS ${SDL2_INCLUDE_DIR}) | ||
set(SDL2_DEFINITIONS -DHAVE_SDL=1 -DHAVE_SDL_VERSION=2) | ||
endif() | ||
|
||
mark_as_advanced(SDL2_LIBRARY SDL2_INCLUDE_DIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# FindSteamLink | ||
# ---------- | ||
# Finds the FindSteamLink headers and libraries | ||
# | ||
# This will will define the following variables:: | ||
# | ||
# STEAMLINK_FOUND - system has Steam Link | ||
# STEAMLINK_INCLUDE_DIRS - the Steam Link include directory | ||
# STEAMLINK_LIBRARIES - the Steam Link libraries | ||
# STEAMLINK_DEFINITIONS - the Steam Link definitions | ||
# | ||
# and the following imported targets:: | ||
# | ||
# STEAMLINK::STEAMLINK - The Steam Link library | ||
|
||
find_path(STEAMLINK_INCLUDE_DIR NAMES SLVideo.h) | ||
|
||
find_library(STEAMLINK_VIDEO_LIBRARY NAMES SLVideo) | ||
find_library(STEAMLINK_AUDIO_LIBRARY NAMES SLAudio) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(SteamLink | ||
REQUIRED_VARS STEAMLINK_INCLUDE_DIR | ||
STEAMLINK_VIDEO_LIBRARY | ||
STEAMLINK_AUDIO_LIBRARY) | ||
|
||
if(STEAMLINK_FOUND) | ||
set(STEAMLINK_LIBRARIES ${STEAMLINK_VIDEO_LIBRARY} | ||
${STEAMLINK_AUDIO_LIBRARY}) | ||
set(STEAMLINK_INCLUDE_DIRS ${STEAMLINK_INCLUDE_DIR}) | ||
set(STEAMLINK_DEFINITIONS -DHAS_STEAMLINK) | ||
if(NOT TARGET STEAMLINK::STEAMLINK) | ||
add_library(STEAMLINK::STEAMLINK UNKNOWN IMPORTED) | ||
set_target_properties(STEAMLINK::STEAMLINK PROPERTIES | ||
IMPORTED_LOCATION "${STEAMLINK_VIDEO_LIBRARY}" # TODO | ||
INTERFACE_INCLUDE_DIRECTORIES "${STEAMLINK_INCLUDE_DIR}") | ||
endif() | ||
endif() | ||
|
||
mark_as_advanced(STEAMLINK_INCLUDE_DIR STEAMLINK_VIDEO_LIBRARY STEAMLINK_AUDIO_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
set(PLATFORM_REQUIRED_DEPS OpenGLES EGL Sdl2 SteamLink) | ||
set(APP_RENDER_SYSTEM gles) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
xbmc/cores/AudioEngine/Sinks/steamlink cores/AudioEngine/Sinks/steamlink # STEAMLINK | ||
xbmc/cores/RetroPlayer/process/steamlink cores/RetroPlayer/process/steamlink # STEAMLINK | ||
xbmc/cores/VideoPlayer/DVDCodecs/Video/steamlink cores/VideoPlayer/DVDCodecs/Video/steamlink # STEAMLINK | ||
xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/steamlink cores/VideoPlayer/VideoRenderers/HwDecRender/steamlink # STEAMLINK | ||
xbmc/windowing/steamlink windowing/steamlink # STEAMLINK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.