-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RetroEngine: Implement RetroPlayer v4
- Loading branch information
Showing
192 changed files
with
12,084 additions
and
6 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
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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<addon id="kodi.binary.instance.identity" version="@ADDON_INSTANCE_VERSION_IDENTITY@" provider-name="Team Kodi"> | ||
<backwards-compatibility abi="@ADDON_INSTANCE_VERSION_IDENTITY_MIN@"/> | ||
<requires> | ||
<import addon="xbmc.core" version="0.1.0"/> | ||
</requires> | ||
</addon> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#.rst: | ||
# FindLMDB | ||
# -------- | ||
# Finds the LMDB library | ||
# | ||
# This will define the following variables: | ||
# | ||
# LMDB_FOUND - system has LMDB | ||
# LMDB_INCLUDE_DIRS - the LMDB include directory | ||
# LMDB_LIBRARIES - the LMDB libraries | ||
# | ||
# and the following imported targets: | ||
# | ||
# LMDB::LMDB - The LMDB library | ||
# | ||
|
||
# If target exists, no need to rerun find. Allows a module that may be a | ||
# dependency for multiple libraries to just be executed once to populate all | ||
# required variables/targets. | ||
if(NOT TARGET LMDB::LMDB) | ||
if(ENABLE_INTERNAL_LMDB) | ||
include(cmake/scripts/common/ModuleHelpers.cmake) | ||
|
||
set(MODULE_LC liblmdb) | ||
|
||
SETUP_BUILD_VARS() | ||
|
||
set(LIBLMDB_VERSION ${${MODULE}_VER}) | ||
|
||
set(CMAKE_ARGS -DCMAKE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}") | ||
|
||
set(PATCH_COMMAND ${CMAKE_COMMAND} -E copy | ||
"${CORE_SOURCE_DIR}/tools/depends/target/${MODULE_LC}/CMakeLists.txt" | ||
"${CMAKE_CURRENT_BINARY_DIR}/${CORE_BUILD_DIR}/${MODULE_LC}/src/${MODULE_LC}/CMakeLists.txt") | ||
|
||
BUILD_DEP_TARGET() | ||
else() | ||
# Populate paths for find_package_handle_standard_args | ||
find_path(LIBLMDB_INCLUDE_DIR NAMES lmdb.h) | ||
find_library(LIBLMDB_LIBRARY NAMES lmdb) | ||
endif() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(LMDB | ||
REQUIRED_VARS | ||
LIBLMDB_LIBRARY | ||
LIBLMDB_INCLUDE_DIR | ||
VERSION_VAR | ||
LIBLMDB_VERSION) | ||
|
||
if(LMDB_FOUND) | ||
set(LMDB_INCLUDE_DIRS "${LIBLMDB_INCLUDE_DIR}") | ||
set(LMDB_LIBRARIES "${LIBLMDB_LIBRARY}") | ||
|
||
add_library(LMDB::LMDB UNKNOWN IMPORTED) | ||
|
||
set_target_properties(LMDB::LMDB PROPERTIES | ||
FOLDER "External Projects" | ||
IMPORTED_LOCATION "${LIBLMDB_LIBRARY}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${LIBLMDB_INCLUDE_DIR}") | ||
|
||
if(TARGET liblmdb) | ||
add_dependencies(LMDB::LMDB liblmdb) | ||
endif() | ||
|
||
# Add dependency to libkodi to build | ||
set_property(GLOBAL APPEND PROPERTY INTERNAL_DEPS_PROP LMDB::LMDB) | ||
else() | ||
if(LMDB_FIND_REQUIRED) | ||
message(FATAL_ERROR "LMDB not found. Maybe use -DENABLE_INTERNAL_LMDB=ON") | ||
endif() | ||
endif() | ||
|
||
mark_as_advanced(LIBLMDB_INCLUDE_DIR) | ||
mark_as_advanced(LIBLMDB_LIBRARY) | ||
endif() |
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,92 @@ | ||
#.rst: | ||
# FindLibqrencode | ||
# -------- | ||
# Find the libqrencode library and headers | ||
# | ||
# This will define the following variables: | ||
# | ||
# LIBQRENCODE_FOUND - system has libqrencode library and headers | ||
# LIBQRENCODE_INCLUDE_DIRS - the libqrencode include directories | ||
# LIBQRENCODE_LIBRARIES - the libqrencode library directories | ||
# | ||
# and the following imported targets:: | ||
# | ||
# libqrencode::libqrencode - The libqrencode library | ||
# | ||
|
||
# If target exists, no need to rerun find. Allows a module that may be a | ||
# dependency for multiple libraries to just be executed once to populate all | ||
# required variables/targets. | ||
if(NOT TARGET libqrencode::libqrencode) | ||
if(ENABLE_INTERNAL_LIBQRENCODE) | ||
include(cmake/scripts/common/ModuleHelpers.cmake) | ||
|
||
set(MODULE_LC libqrencode) | ||
|
||
SETUP_BUILD_VARS() | ||
|
||
set(LIBQRENCODE_VERSION ${${MODULE}_VER}) | ||
|
||
# Debug postfix only used for windows | ||
if(WIN32 OR WINDOWS_STORE) | ||
set(LIBQRENCODE_DEBUG_POSTFIX "d") | ||
endif() | ||
|
||
set(CMAKE_ARGS -DWITH_TOOLS=NO) | ||
|
||
BUILD_DEP_TARGET() | ||
else() | ||
# Populate paths for find_package_handle_standard_args | ||
find_path(LIBQRENCODE_INCLUDE_DIR NAMES libqrencode.h) | ||
find_library(LIBQRENCODE_LIBRARY_RELEASE NAMES qrencode) | ||
find_library(LIBQRENCODE_LIBRARY_DEBUG NAMES qrencoded) | ||
endif() | ||
|
||
include(SelectLibraryConfigurations) | ||
select_library_configurations(LIBQRENCODE) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Libqrencode | ||
REQUIRED_VARS | ||
LIBQRENCODE_LIBRARY | ||
LIBQRENCODE_INCLUDE_DIR | ||
VERSION_VAR | ||
LIBQRENCODE_VERSION | ||
) | ||
|
||
if(LIBQRENCODE_FOUND) | ||
set(LIBQRENCODE_INCLUDE_DIRS "${LIBQRENCODE_INCLUDE_DIR}") | ||
set(LIBQRENCODE_LIBRARIES "${LIBQRENCODE_LIBRARY}") | ||
|
||
add_library(libqrencode::libqrencode UNKNOWN IMPORTED) | ||
|
||
set_target_properties(libqrencode::libqrencode PROPERTIES | ||
FOLDER "External Projects" | ||
INTERFACE_INCLUDE_DIRECTORIES "${LIBQRENCODE_INCLUDE_DIR}") | ||
|
||
if(LIBQRENCODE_LIBRARY_RELEASE) | ||
set_target_properties(libqrencode::libqrencode PROPERTIES | ||
IMPORTED_CONFIGURATIONS RELEASE | ||
IMPORTED_LOCATION_RELEASE "${LIBQRENCODE_LIBRARY_RELEASE}") | ||
endif() | ||
if(LIBQRENCODE_LIBRARY_DEBUG) | ||
set_target_properties(libqrencode::libqrencode PROPERTIES | ||
IMPORTED_CONFIGURATIONS DEBUG | ||
IMPORTED_LOCATION_DEBUG "${LIBQRENCODE_LIBRARY_DEBUG}") | ||
endif() | ||
|
||
if(TARGET libqrencode) | ||
add_dependencies(libqrencode::libqrencode libqrencode) | ||
endif() | ||
|
||
# Add dependency to libkodi to build | ||
set_property(GLOBAL APPEND PROPERTY INTERNAL_DEPS_PROP libqrencode::libqrencode) | ||
else() | ||
if(LIBQRENCODE_FIND_REQUIRED) | ||
message(FATAL_ERROR "libqrencode not found. Maybe use -DENABLE_INTERNAL_LIBQRENCODE=ON") | ||
endif() | ||
endif() | ||
|
||
mark_as_advanced(LIBQRENCODE_INCLUDE_DIR) | ||
mark_as_advanced(LIBQRENCODE_LIBRARY) | ||
endif() |
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,78 @@ | ||
#.rst: | ||
# FindLz4 | ||
# -------- | ||
# Finds the LZ4 library | ||
# | ||
# This will define the following variables: | ||
# | ||
# LZ4_FOUND - system has LZ4 | ||
# LZ4_INCLUDE_DIRS - the LZ4 include directory | ||
# LZ4_LIBRARIES - the LZ4 libraries | ||
# | ||
# and the following imported targets: | ||
# | ||
# Lz4::Lz4 - The LZ4 library | ||
# | ||
|
||
# If target exists, no need to rerun find. Allows a module that may be a | ||
# dependency for multiple libraries to just be executed once to populate all | ||
# required variables/targets. | ||
if(NOT TARGET Lz4::Lz4) | ||
if(ENABLE_INTERNAL_LZ4) | ||
include(cmake/scripts/common/ModuleHelpers.cmake) | ||
|
||
set(MODULE_LC liblz4) | ||
|
||
SETUP_BUILD_VARS() | ||
|
||
set(LIBLZ4_VERSION ${${MODULE}_VER}) | ||
|
||
set(CMAKE_ARGS -DBUILD_SHARED_LIBS=OFF | ||
-DBUILD_STATIC_LIBS=ON | ||
-DLZ4_BUILD_CLI=OFF | ||
-DLZ4_BUILD_LEGACY_LZ4C=OFF | ||
-DLZ4_BUNDLED_MODE=OFF) | ||
|
||
set(LIBLZ4_SOURCE_SUBDIR build/cmake) | ||
|
||
BUILD_DEP_TARGET() | ||
else() | ||
# Populate paths for find_package_handle_standard_args | ||
find_path(LIBLZ4_INCLUDE_DIR NAMES lz4.h) | ||
find_library(LIBLZ4_LIBRARY NAMES lz4) | ||
endif() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Lz4 | ||
REQUIRED_VARS | ||
LIBLZ4_LIBRARY | ||
LIBLZ4_INCLUDE_DIR | ||
VERSION_VAR | ||
LIBLZ4_VERSION) | ||
|
||
if(LZ4_FOUND) | ||
set(LZ4_INCLUDE_DIRS "${LIBLZ4_INCLUDE_DIR}") | ||
set(LZ4_LIBRARIES "${LIBLZ4_LIBRARY}") | ||
|
||
# Add dependency to libkodi to build | ||
set_property(GLOBAL APPEND PROPERTY INTERNAL_DEPS_PROP Lz4::Lz4) | ||
|
||
add_library(Lz4::Lz4 UNKNOWN IMPORTED) | ||
|
||
set_target_properties(Lz4::Lz4 PROPERTIES | ||
FOLDER "External Projects" | ||
IMPORTED_LOCATION "${LIBLZ4_LIBRARY}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${LIBLZ4_INCLUDE_DIR}") | ||
|
||
if(TARGET liblz4) | ||
add_dependencies(Lz4::Lz4 liblz4) | ||
endif() | ||
else() | ||
if(LZ4_FIND_REQUIRED) | ||
message(FATAL_ERROR "LZ4 not found. Maybe use -DENABLE_INTERNAL_LZ4=ON") | ||
endif() | ||
endif() | ||
|
||
mark_as_advanced(LIBLZ4_INCLUDE_DIR) | ||
mark_as_advanced(LIBLZ4_LIBRARY) | ||
endif() |
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,6 @@ | ||
xbmc/cores/RetroEngine cores/RetroEngine | ||
xbmc/cores/RetroEngine/guibridge cores/RetroEngine/guibridge | ||
xbmc/cores/RetroEngine/guicontrols cores/RetroEngine/guicontrols | ||
xbmc/cores/RetroEngine/input cores/RetroEngine/input | ||
xbmc/cores/RetroEngine/rendering cores/RetroEngine/rendering | ||
xbmc/cores/RetroEngine/streams cores/RetroEngine/streams |
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.