diff options
Diffstat (limited to 'recipes/openh264')
-rw-r--r-- | recipes/openh264/0001-android-build-switch-to-using-the-c-_shared-c-librar.patch | 106 | ||||
-rw-r--r-- | recipes/openh264/0001-openh264-Build-for-iOS-SDK-11.0.patch (renamed from recipes/openh264/0001-openh264-Build-for-8.0-fembed-bitcode.patch) | 16 | ||||
-rw-r--r-- | recipes/openh264/0002-ios-Remove-flags-incompatible-with-fembed-bitcode.patch | 12 |
3 files changed, 28 insertions, 106 deletions
diff --git a/recipes/openh264/0001-android-build-switch-to-using-the-c-_shared-c-librar.patch b/recipes/openh264/0001-android-build-switch-to-using-the-c-_shared-c-librar.patch index 2bf1932a..821a587a 100644 --- a/recipes/openh264/0001-android-build-switch-to-using-the-c-_shared-c-librar.patch +++ b/recipes/openh264/0001-android-build-switch-to-using-the-c-_shared-c-librar.patch @@ -1,38 +1,26 @@ -From 06e0faea595546306c7195e8cec8a04b1b264267 Mon Sep 17 00:00:00 2001 +From c3372cf9ef5d9ae8bddb20073ebfba2d9d2f5a66 Mon Sep 17 00:00:00 2001 From: Matthew Waters <matthew@centricular.com> Date: Fri, 19 Oct 2018 16:42:54 +1100 Subject: [PATCH] android/build: switch to using the c++_shared c++ library It's the only stl available starting from NDK r18 --- - Makefile | 2 +- - build/platform-android.mk | 4 ++-- - codec/build/android/dec/jni/Application.mk | 4 ++-- - codec/build/android/dec/src/com/wels/dec/WelsDecTest.java | 2 +- - codec/build/android/enc/jni/Application.mk | 4 ++-- - codec/build/android/enc/src/com/wels/enc/WelsEncTest.java | 2 +- - test/build/android/jni/Application.mk | 4 ++-- - .../android/src/com/cisco/codec/unittest/MainActivity.java | 2 +- - 8 files changed, 12 insertions(+), 12 deletions(-) + build/platform-android.mk | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) -diff --git a/Makefile b/Makefile -index 8096467..9e62e48 100644 ---- a/Makefile -+++ b/Makefile -@@ -31,7 +31,7 @@ PROJECT_NAME=openh264 - MODULE_NAME=gmpopenh264 - GMP_API_BRANCH=Firefox39 - CCASFLAGS=$(CFLAGS) --STATIC_LDFLAGS=-lstdc++ -+STATIC_LDFLAGS=`pkg-config --libs gnustl` - - SHAREDLIB_MAJORVERSION=4 - FULL_VERSION := 1.7.0 diff --git a/build/platform-android.mk b/build/platform-android.mk -index 646740d..d5dbdb6 100644 +index 6f6ce34..4db2be0 100644 --- a/build/platform-android.mk +++ b/build/platform-android.mk -@@ -54,9 +54,9 @@ endif +@@ -49,6 +49,7 @@ CFLAGS += -isystem $(NDKROOT)/sysroot/usr/include -isystem $(NDKROOT)/sysroot/us + CXXFLAGS += -fno-rtti -fno-exceptions + LDFLAGS += --sysroot=$(SYSROOT) + SHLDFLAGS = -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-soname,lib$(PROJECT_NAME).so ++STATIC_LDFLAGS=`pkg-config --libs gnustl` + + ifeq ($(NDK_TOOLCHAIN_VERSION), clang) + HOST_OS = $(shell uname -s | tr [A-Z] [a-z]) +@@ -82,9 +83,9 @@ endif endif STL_INCLUDES = \ @@ -44,72 +32,6 @@ index 646740d..d5dbdb6 100644 GTEST_INCLUDES = $(STL_INCLUDES) CODEC_UNITTEST_INCLUDES = $(STL_INCLUDES) -diff --git a/codec/build/android/dec/jni/Application.mk b/codec/build/android/dec/jni/Application.mk -index 48ca94b..de25486 100644 ---- a/codec/build/android/dec/jni/Application.mk -+++ b/codec/build/android/dec/jni/Application.mk -@@ -1,2 +1,2 @@ --APP_STL := stlport_shared --APP_PLATFORM := android-12 -+APP_STL := c++_shared -+APP_PLATFORM := android-16 -diff --git a/codec/build/android/dec/src/com/wels/dec/WelsDecTest.java b/codec/build/android/dec/src/com/wels/dec/WelsDecTest.java -index f44c227..ff508e7 100644 ---- a/codec/build/android/dec/src/com/wels/dec/WelsDecTest.java -+++ b/codec/build/android/dec/src/com/wels/dec/WelsDecTest.java -@@ -140,7 +140,7 @@ public class WelsDecTest extends Activity { - static { - try { - System.loadLibrary ("openh264"); -- System.loadLibrary ("stlport_shared"); -+ System.loadLibrary ("c++_shared"); - System.loadLibrary ("welsdecdemo"); - Log.v (TAG, "Load libwelsdec successful"); - } catch (Exception e) { -diff --git a/codec/build/android/enc/jni/Application.mk b/codec/build/android/enc/jni/Application.mk -index 48ca94b..de25486 100644 ---- a/codec/build/android/enc/jni/Application.mk -+++ b/codec/build/android/enc/jni/Application.mk -@@ -1,2 +1,2 @@ --APP_STL := stlport_shared --APP_PLATFORM := android-12 -+APP_STL := c++_shared -+APP_PLATFORM := android-16 -diff --git a/codec/build/android/enc/src/com/wels/enc/WelsEncTest.java b/codec/build/android/enc/src/com/wels/enc/WelsEncTest.java -index 19b7842..5d11382 100644 ---- a/codec/build/android/enc/src/com/wels/enc/WelsEncTest.java -+++ b/codec/build/android/enc/src/com/wels/enc/WelsEncTest.java -@@ -161,7 +161,7 @@ public class WelsEncTest extends Activity { - static { - try { - System.loadLibrary ("openh264"); -- System.loadLibrary ("stlport_shared"); -+ System.loadLibrary ("c++_shared"); - System.loadLibrary ("welsencdemo"); - Log.v (TAG, "Load libwelsencdemo.so successful"); - } catch (Exception e) { -diff --git a/test/build/android/jni/Application.mk b/test/build/android/jni/Application.mk -index 48ca94b..de25486 100644 ---- a/test/build/android/jni/Application.mk -+++ b/test/build/android/jni/Application.mk -@@ -1,2 +1,2 @@ --APP_STL := stlport_shared --APP_PLATFORM := android-12 -+APP_STL := c++_shared -+APP_PLATFORM := android-16 -diff --git a/test/build/android/src/com/cisco/codec/unittest/MainActivity.java b/test/build/android/src/com/cisco/codec/unittest/MainActivity.java -index a7fb6f2..335fbf6 100644 ---- a/test/build/android/src/com/cisco/codec/unittest/MainActivity.java -+++ b/test/build/android/src/com/cisco/codec/unittest/MainActivity.java -@@ -62,7 +62,7 @@ public class MainActivity extends Activity { - - static { - try { -- System.loadLibrary ("stlport_shared"); -+ System.loadLibrary ("c++_shared"); - //System.loadLibrary("openh264"); - System.loadLibrary ("ut"); - System.loadLibrary ("utDemo"); -- -2.19.0 +2.25.1 diff --git a/recipes/openh264/0001-openh264-Build-for-8.0-fembed-bitcode.patch b/recipes/openh264/0001-openh264-Build-for-iOS-SDK-11.0.patch index dda8fe0e..57890b2b 100644 --- a/recipes/openh264/0001-openh264-Build-for-8.0-fembed-bitcode.patch +++ b/recipes/openh264/0001-openh264-Build-for-iOS-SDK-11.0.patch @@ -1,14 +1,14 @@ -From 2fa9af08f511f2ff8e12e894d08bd492f027ac13 Mon Sep 17 00:00:00 2001 -From: Olivier Crete <olivier.crete@collabora.com> -Date: Fri, 27 Apr 2018 13:56:15 -0400 -Subject: [PATCH 1/2] openh264: Build for 8.0 -fembed-bitcode +From b033dc4e14d168fb073787626eb20b4b3eedf240 Mon Sep 17 00:00:00 2001 +From: Matthew Waters <matthew@centricular.com> +Date: Tue, 10 Mar 2020 12:23:44 +1100 +Subject: [PATCH] openh264: Build for iOS SDK 11.0 --- build/platform-ios.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/platform-ios.mk b/build/platform-ios.mk -index 4f219e3..37d43a6 100644 +index f04b5c5..8501eed 100644 --- a/build/platform-ios.mk +++ b/build/platform-ios.mk @@ -7,7 +7,7 @@ SDKTYPE = iPhoneSimulator @@ -16,10 +16,10 @@ index 4f219e3..37d43a6 100644 SDKTYPE = iPhoneOS endif -SDK_MIN = 5.1 -+SDK_MIN = 8.0 ++SDK_MIN = 11.0 - SDKROOT = $(shell xcrun --sdk $(shell echo $(SDKTYPE) | tr A-Z a-z) --show-sdk-path) + SDKROOT := $(shell xcrun --sdk $(shell echo $(SDKTYPE) | tr A-Z a-z) --show-sdk-path) CFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN) -DAPPLE_IOS -fembed-bitcode -- -2.15.1 (Apple Git-101) +2.25.1 diff --git a/recipes/openh264/0002-ios-Remove-flags-incompatible-with-fembed-bitcode.patch b/recipes/openh264/0002-ios-Remove-flags-incompatible-with-fembed-bitcode.patch index 5900703d..ed7dfbb6 100644 --- a/recipes/openh264/0002-ios-Remove-flags-incompatible-with-fembed-bitcode.patch +++ b/recipes/openh264/0002-ios-Remove-flags-incompatible-with-fembed-bitcode.patch @@ -1,20 +1,20 @@ -From 8e7895df76c32ac95a24dd073213a799b57c2e0d Mon Sep 17 00:00:00 2001 +From 8aacdde0c49d70b0f5d80a618e1ee5b4683174a1 Mon Sep 17 00:00:00 2001 From: Olivier Crete <olivier.crete@collabora.com> Date: Fri, 27 Apr 2018 14:05:16 -0400 -Subject: [PATCH 2/2] ios: Remove flags incompatible with -fembed-bitcode +Subject: [PATCH] ios: Remove flags incompatible with -fembed-bitcode --- build/platform-darwin.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/platform-darwin.mk b/build/platform-darwin.mk -index a4583a1..e6fe9d8 100644 +index 6c7b244..9629471 100644 --- a/build/platform-darwin.mk +++ b/build/platform-darwin.mk @@ -5,8 +5,7 @@ SHAREDLIBSUFFIXFULLVER=$(FULL_VERSION).$(SHAREDLIBSUFFIX) SHAREDLIBSUFFIXMAJORVER=$(SHAREDLIB_MAJORVERSION).$(SHAREDLIBSUFFIX) - CURRENT_VERSION := 1.7.0 - COMPATIBILITY_VERSION := 1.7.0 + CURRENT_VERSION := 2.0.0 + COMPATIBILITY_VERSION := 2.0.0 -SHLDFLAGS = -dynamiclib -twolevel_namespace -undefined dynamic_lookup \ - -fno-common -headerpad_max_install_names -install_name \ +SHLDFLAGS = -dynamiclib -twolevel_namespace -fno-common -install_name \ @@ -22,5 +22,5 @@ index a4583a1..e6fe9d8 100644 SHARED = -dynamiclib SHARED += -current_version $(CURRENT_VERSION) -compatibility_version $(COMPATIBILITY_VERSION) -- -2.15.1 (Apple Git-101) +2.25.1 |