mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 10:56:38 +00:00
225c23f1fa
This in preparation for the next commit, adding gradle as a build system https://bugzilla.gnome.org/show_bug.cgi?id=796570
31 lines
1,014 B
Makefile
31 lines
1,014 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := tutorial-1
|
|
LOCAL_SRC_FILES := tutorial-1.c
|
|
LOCAL_SHARED_LIBRARIES := gstreamer_android
|
|
LOCAL_LDLIBS := -llog
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
ifndef GSTREAMER_ROOT_ANDROID
|
|
$(error GSTREAMER_ROOT_ANDROID is not defined!)
|
|
endif
|
|
|
|
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
|