mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
android: Update to use multi-arch builds
This commit is contained in:
parent
e2ecf4a58d
commit
2c8b46ed4c
10 changed files with 76 additions and 10 deletions
|
@ -8,12 +8,24 @@ LOCAL_SHARED_LIBRARIES := gstreamer_android
|
|||
LOCAL_LDLIBS := -llog
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
ifndef GSTREAMER_ROOT
|
||||
ifndef GSTREAMER_ROOT_ANDROID
|
||||
$(error GSTREAMER_ROOT_ANDROID is not defined!)
|
||||
endif
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)
|
||||
|
||||
ifeq ($(TARGET_ARCH_ABI),armeabi)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm
|
||||
else ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/armv7
|
||||
else ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm64
|
||||
else ifeq ($(TARGET_ARCH_ABI),x86)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86
|
||||
else ifeq ($(TARGET_ARCH_ABI),x86_64)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86_64
|
||||
else
|
||||
$(error Target arch ABI not supported: $(TARGET_ARCH_ABI))
|
||||
endif
|
||||
|
||||
GSTREAMER_NDK_BUILD_PATH := $(GSTREAMER_ROOT)/share/gst-android/ndk-build/
|
||||
GSTREAMER_PLUGINS := coreelements
|
||||
include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer-1.0.mk
|
||||
|
|
1
gst-sdk/tutorials/android-tutorial-1/jni/Application.mk
Normal file
1
gst-sdk/tutorials/android-tutorial-1/jni/Application.mk
Normal file
|
@ -0,0 +1 @@
|
|||
APP_ABI = armeabi armeabi-v7a arm64-v8a x86 x86_64
|
|
@ -8,12 +8,24 @@ LOCAL_SHARED_LIBRARIES := gstreamer_android
|
|||
LOCAL_LDLIBS := -llog
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
ifndef GSTREAMER_ROOT
|
||||
ifndef GSTREAMER_ROOT_ANDROID
|
||||
$(error GSTREAMER_ROOT_ANDROID is not defined!)
|
||||
endif
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)
|
||||
|
||||
ifeq ($(TARGET_ARCH_ABI),armeabi)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm
|
||||
else ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/armv7
|
||||
else ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm64
|
||||
else ifeq ($(TARGET_ARCH_ABI),x86)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86
|
||||
else ifeq ($(TARGET_ARCH_ABI),x86_64)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86_64
|
||||
else
|
||||
$(error Target arch ABI not supported: $(TARGET_ARCH_ABI))
|
||||
endif
|
||||
|
||||
GSTREAMER_NDK_BUILD_PATH := $(GSTREAMER_ROOT)/share/gst-android/ndk-build/
|
||||
include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
|
||||
GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_SYS)
|
||||
|
|
1
gst-sdk/tutorials/android-tutorial-2/jni/Application.mk
Normal file
1
gst-sdk/tutorials/android-tutorial-2/jni/Application.mk
Normal file
|
@ -0,0 +1 @@
|
|||
APP_ABI = armeabi armeabi-v7a arm64-v8a x86 x86_64
|
|
@ -8,12 +8,24 @@ LOCAL_SHARED_LIBRARIES := gstreamer_android
|
|||
LOCAL_LDLIBS := -llog -landroid
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
ifndef GSTREAMER_ROOT
|
||||
ifndef GSTREAMER_ROOT_ANDROID
|
||||
$(error GSTREAMER_ROOT_ANDROID is not defined!)
|
||||
endif
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)
|
||||
|
||||
ifeq ($(TARGET_ARCH_ABI),armeabi)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm
|
||||
else ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/armv7
|
||||
else ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm64
|
||||
else ifeq ($(TARGET_ARCH_ABI),x86)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86
|
||||
else ifeq ($(TARGET_ARCH_ABI),x86_64)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86_64
|
||||
else
|
||||
$(error Target arch ABI not supported: $(TARGET_ARCH_ABI))
|
||||
endif
|
||||
|
||||
GSTREAMER_NDK_BUILD_PATH := $(GSTREAMER_ROOT)/share/gst-android/ndk-build/
|
||||
include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
|
||||
GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_SYS) $(GSTREAMER_PLUGINS_EFFECTS)
|
||||
|
|
1
gst-sdk/tutorials/android-tutorial-3/jni/Application.mk
Normal file
1
gst-sdk/tutorials/android-tutorial-3/jni/Application.mk
Normal file
|
@ -0,0 +1 @@
|
|||
APP_ABI = armeabi armeabi-v7a arm64-v8a x86 x86_64
|
|
@ -8,12 +8,24 @@ LOCAL_SHARED_LIBRARIES := gstreamer_android
|
|||
LOCAL_LDLIBS := -llog -landroid
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
ifndef GSTREAMER_ROOT
|
||||
ifndef GSTREAMER_ROOT_ANDROID
|
||||
$(error GSTREAMER_ROOT_ANDROID is not defined!)
|
||||
endif
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)
|
||||
|
||||
ifeq ($(TARGET_ARCH_ABI),armeabi)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm
|
||||
else ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/armv7
|
||||
else ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm64
|
||||
else ifeq ($(TARGET_ARCH_ABI),x86)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86
|
||||
else ifeq ($(TARGET_ARCH_ABI),x86_64)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86_64
|
||||
else
|
||||
$(error Target arch ABI not supported: $(TARGET_ARCH_ABI))
|
||||
endif
|
||||
|
||||
GSTREAMER_NDK_BUILD_PATH := $(GSTREAMER_ROOT)/share/gst-android/ndk-build/
|
||||
include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
|
||||
GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS) $(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_SYS)
|
||||
|
|
1
gst-sdk/tutorials/android-tutorial-4/jni/Application.mk
Normal file
1
gst-sdk/tutorials/android-tutorial-4/jni/Application.mk
Normal file
|
@ -0,0 +1 @@
|
|||
APP_ABI = armeabi armeabi-v7a arm64-v8a x86 x86_64
|
|
@ -8,12 +8,24 @@ LOCAL_SHARED_LIBRARIES := gstreamer_android
|
|||
LOCAL_LDLIBS := -llog -landroid
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
ifndef GSTREAMER_ROOT
|
||||
ifndef GSTREAMER_ROOT_ANDROID
|
||||
$(error GSTREAMER_ROOT_ANDROID is not defined!)
|
||||
endif
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)
|
||||
|
||||
ifeq ($(TARGET_ARCH_ABI),armeabi)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm
|
||||
else ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/armv7
|
||||
else ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm64
|
||||
else ifeq ($(TARGET_ARCH_ABI),x86)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86
|
||||
else ifeq ($(TARGET_ARCH_ABI),x86_64)
|
||||
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86_64
|
||||
else
|
||||
$(error Target arch ABI not supported: $(TARGET_ARCH_ABI))
|
||||
endif
|
||||
|
||||
GSTREAMER_NDK_BUILD_PATH := $(GSTREAMER_ROOT)/share/gst-android/ndk-build/
|
||||
include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
|
||||
GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS) $(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_SYS)
|
||||
|
|
2
gst-sdk/tutorials/android-tutorial-5/jni/Application.mk
Normal file
2
gst-sdk/tutorials/android-tutorial-5/jni/Application.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
APP_ABI = armeabi armeabi-v7a arm64-v8a x86 x86_64
|
||||
|
Loading…
Reference in a new issue