From 74e8c6dde8457e513df0e9e12230ac4eaa254d69 Mon Sep 17 00:00:00 2001 From: phunkyfish Date: Wed, 18 Mar 2020 19:32:30 +0000 Subject: [PATCH] Fix tvOS build --- depends/common/gmp/CMakeLists.txt | 6 +++--- depends/common/gnutls/CMakeLists.txt | 3 ++- depends/common/nettle/CMakeLists.txt | 2 +- inputstream.ffmpegdirect/addon.xml.in | 5 ++++- inputstream.ffmpegdirect/changelog.txt | 3 +++ 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/depends/common/gmp/CMakeLists.txt b/depends/common/gmp/CMakeLists.txt index 04dea1a1..17bd4a1a 100644 --- a/depends/common/gmp/CMakeLists.txt +++ b/depends/common/gmp/CMakeLists.txt @@ -6,13 +6,14 @@ list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}) include(ExternalProject) if(CORE_SYSTEM_NAME STREQUAL osx OR - CORE_SYSTEM_NAME STREQUAL ios OR CORE_SYSTEM_NAME STREQUAL darwin_embedded) - if(CORE_SYSTEM_NAME STREQUAL ios OR CORE_SYSTEM_NAME STREQUAL darwin_embedded) + if(CORE_SYSTEM_NAME STREQUAL darwin_embedded) set(EXTRA_ARGS "--disable-assembly") + set(EXTRA_ARGS "${EXTRA_ARGS} --host=aarch64-apple-darwin") else() set(EXTRA_ARGS "--with-pic") + set(EXTRA_ARGS "${EXTRA_ARGS} --host=x86_64-apple-darwin") if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(EXTRA_ARGS "${EXTRA_ARGS} ABI=64") else() @@ -30,7 +31,6 @@ if(CORE_SYSTEM_NAME STREQUAL osx OR LDFLAGS='${CMAKE_EXE_LINKER_FLAGS}' \ CPP='${CMAKE_C_COMPILER} -E' \ CPPFLAGS='${CMAKE_C_FLAGS}' \ - --host=x86_64-apple-darwin \ ${EXTRA_ARGS} \ --enable-static \ --disable-shared" diff --git a/depends/common/gnutls/CMakeLists.txt b/depends/common/gnutls/CMakeLists.txt index c50b81db..4ed21abf 100644 --- a/depends/common/gnutls/CMakeLists.txt +++ b/depends/common/gnutls/CMakeLists.txt @@ -13,9 +13,10 @@ list(APPEND gnutls_conf CPPFLAGS=-I${CMAKE_INSTALL_PREFIX}/include) list(APPEND gnutls_conf LDFLAGS=-L${CMAKE_INSTALL_PREFIX}/lib) list(APPEND gnutls_conf LIBS=-lgmp) -if(APPLE) +if(CORE_SYSTEM_NAME STREQUAL darwin_embedded) list(APPEND gnutls_conf ac_cv_func_vfork_works=no) list(APPEND gnutls_conf ac_cv_func_fork=no) + list(APPEND gnutls_conf --disable-hardware-acceleration) endif() include(ExternalProject) diff --git a/depends/common/nettle/CMakeLists.txt b/depends/common/nettle/CMakeLists.txt index 17ef97a5..460dc4fe 100644 --- a/depends/common/nettle/CMakeLists.txt +++ b/depends/common/nettle/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.5) list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}) -if(CORE_SYSTEM_NAME STREQUAL ios OR CORE_SYSTEM_NAME STREQUAL darwin_embedded) +if(CORE_SYSTEM_NAME STREQUAL darwin_embedded) list(APPEND nettle_conf -disable-assembler) endif() diff --git a/inputstream.ffmpegdirect/addon.xml.in b/inputstream.ffmpegdirect/addon.xml.in index 12b302f5..334b6888 100644 --- a/inputstream.ffmpegdirect/addon.xml.in +++ b/inputstream.ffmpegdirect/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ @@ -23,6 +23,9 @@ fanart.jpg +v1.7.1 +- Fixed: tvOS build + v1.7.0 - Update: remove unrequired gnutls patch - Fixed: Replace ;'s workaround for cmake bug for ffmpeg LDFLAGS diff --git a/inputstream.ffmpegdirect/changelog.txt b/inputstream.ffmpegdirect/changelog.txt index f907ef6c..1b3524de 100644 --- a/inputstream.ffmpegdirect/changelog.txt +++ b/inputstream.ffmpegdirect/changelog.txt @@ -1,3 +1,6 @@ +v1.7.1 +- Fixed: tvOS build + v1.7.0 - Update: remove unrequired gnutls patch - Fixed: Replace ;'s workaround for cmake bug for ffmpeg LDFLAGS