mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #553 from lrusak/hyperion
hyperion: update to 85fcec3
This commit is contained in:
commit
3e03056d24
@ -17,12 +17,12 @@
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="rpi_ws281x"
|
||||
PKG_VERSION="dfcf740"
|
||||
PKG_VERSION="3e6ea50"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE=""
|
||||
PKG_SITE="https://github.com/penfold42/rpi_ws281x"
|
||||
PKG_URL="https://github.com/penfold42/rpi_ws281x/archive/$PKG_VERSION.tar.gz"
|
||||
PKG_SITE="https://github.com/hyperion-project/rpi_ws281x"
|
||||
PKG_URL="https://github.com/hyperion-project/rpi_ws281x/archive/$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION=""
|
||||
|
@ -1,3 +1,6 @@
|
||||
8.0.102
|
||||
- Update to version 85fcec3
|
||||
|
||||
8.0.101
|
||||
- Update to version d2f4725
|
||||
|
||||
|
@ -17,8 +17,8 @@
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="hyperion"
|
||||
PKG_VERSION="d2f4725"
|
||||
PKG_REV="101"
|
||||
PKG_VERSION="85fcec3"
|
||||
PKG_REV="102"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/tvdzwan/hyperion"
|
||||
PKG_URL="https://github.com/tvdzwan/hyperion/archive/$PKG_VERSION.tar.gz"
|
||||
|
@ -1,76 +0,0 @@
|
||||
From f0884ec25b5f56cea3ed135efaf5fca744d3f1ee Mon Sep 17 00:00:00 2001
|
||||
From: redPanther <redPanther@users.noreply.github.com>
|
||||
Date: Mon, 13 Jun 2016 08:11:57 +0200
|
||||
Subject: [PATCH] add support for using system protoc instead of version in
|
||||
submodule (#698)
|
||||
|
||||
---
|
||||
dependencies/CMakeLists.txt | 44 ++++++++++++++++++++++++++------------------
|
||||
1 file changed, 26 insertions(+), 18 deletions(-)
|
||||
|
||||
diff --git a/dependencies/CMakeLists.txt b/dependencies/CMakeLists.txt
|
||||
index 52d7f74..26dd96c 100644
|
||||
--- a/dependencies/CMakeLists.txt
|
||||
+++ b/dependencies/CMakeLists.txt
|
||||
@@ -9,27 +9,35 @@ if(ENABLE_WS281XPWM)
|
||||
external/rpi_ws281x/mailbox.c external/rpi_ws281x/ws2811.c
|
||||
external/rpi_ws281x/pwm.c external/rpi_ws281x/dma.c
|
||||
external/rpi_ws281x/rpihw.c)
|
||||
-endif(ENABLE_WS281XPWM)
|
||||
+endif()
|
||||
|
||||
-set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared protobuf library")
|
||||
-add_subdirectory(external/protobuf)
|
||||
+set(USE_SYSTEM_PROTO_LIBS OFF CACHE BOOL "use protobuf library from system")
|
||||
|
||||
-if(CMAKE_CROSSCOMPILING)
|
||||
- # when crosscompiling import the protoc executable targets from a file generated by a native build
|
||||
- option(IMPORT_PROTOC "Protoc export file (protoc_export.cmake) from a native build" "IMPORT_PROTOC-FILE_NOT_FOUND")
|
||||
- include(${IMPORT_PROTOC})
|
||||
-else()
|
||||
- # export the protoc compiler so it can be used when cross compiling
|
||||
- export(TARGETS protoc_compiler FILE "${CMAKE_BINARY_DIR}/protoc_export.cmake")
|
||||
-endif()
|
||||
+if (USE_SYSTEM_PROTO_LIBS)
|
||||
+ find_package(Protobuf REQUIRED)
|
||||
+ include_directories(${PROTOBUF_INCLUDE_DIRS})
|
||||
+else ()
|
||||
+ set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared protobuf library")
|
||||
+ add_subdirectory(external/protobuf)
|
||||
|
||||
-# define the include for the protobuf library at the parent scope
|
||||
-set(PROTOBUF_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/external/protobuf/src")
|
||||
-set(PROTOBUF_INCLUDE_DIRS ${PROTOBUF_INCLUDE_DIRS} PARENT_SCOPE)
|
||||
+ if(CMAKE_CROSSCOMPILING)
|
||||
+ # when crosscompiling import the protoc executable targets from a file generated by a native build
|
||||
+ option(IMPORT_PROTOC "Protoc export file (protoc_export.cmake) from a native build" "IMPORT_PROTOC-FILE_NOT_FOUND")
|
||||
+ include(${IMPORT_PROTOC})
|
||||
+ else()
|
||||
+ # export the protoc compiler so it can be used when cross compiling
|
||||
+ export(TARGETS protoc_compiler FILE "${CMAKE_BINARY_DIR}/protoc_export.cmake")
|
||||
+ endif()
|
||||
+
|
||||
+ # define the include for the protobuf library at the parent scope
|
||||
+ set(PROTOBUF_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/external/protobuf/src")
|
||||
+ set(PROTOBUF_INCLUDE_DIRS ${PROTOBUF_INCLUDE_DIRS} PARENT_SCOPE)
|
||||
+
|
||||
+ # define the protoc executable at the parent scope
|
||||
+ get_property(PROTOBUF_PROTOC_EXECUTABLE TARGET protoc_compiler PROPERTY LOCATION)
|
||||
+ set(PROTOBUF_PROTOC_EXECUTABLE ${PROTOBUF_PROTOC_EXECUTABLE} PARENT_SCOPE)
|
||||
+endif()
|
||||
|
||||
-# define the protoc executable at the parent scope
|
||||
-get_property(PROTOBUF_PROTOC_EXECUTABLE TARGET protoc_compiler PROPERTY LOCATION)
|
||||
-set(PROTOBUF_PROTOC_EXECUTABLE ${PROTOBUF_PROTOC_EXECUTABLE} PARENT_SCOPE)
|
||||
message(STATUS "Using protobuf compiler: " ${PROTOBUF_PROTOC_EXECUTABLE})
|
||||
|
||||
#=============================================================================
|
||||
@@ -76,7 +84,7 @@ function(PROTOBUF_GENERATE_CPP SRCS HDRS)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
- if(CMAKE_CROSSCOMPILING)
|
||||
+ if(CMAKE_CROSSCOMPILING OR USE_SYSTEM_PROTO_LIBS)
|
||||
set(PROTOC_DEPENDENCY ${PROTOBUF_PROTOC_EXECUTABLE})
|
||||
else()
|
||||
set(PROTOC_DEPENDENCY protoc_compiler)
|
Loading…
x
Reference in New Issue
Block a user