mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 12:41:05 +00:00
72 lines
1.7 KiB
Makefile
72 lines
1.7 KiB
Makefile
|
LOCAL_PATH := $(call my-dir)
|
||
|
|
||
|
# -------------------------------------
|
||
|
# gsteglglessink library
|
||
|
#
|
||
|
include $(CLEAR_VARS)
|
||
|
|
||
|
LOCAL_ARM_MODE := arm
|
||
|
|
||
|
gsteglglessink_FILES := gsteglglessink.c
|
||
|
|
||
|
LOCAL_SRC_FILES := $(gsteglglessink_FILES)
|
||
|
LOCAL_C_INCLUDES = $(LOCAL_PATH) \
|
||
|
$(LOCAL_PATH)/include
|
||
|
|
||
|
ifneq ($(NDK_BUILD), true)
|
||
|
LOCAL_C_INCLUDES += $(TOP)/frameworks/base
|
||
|
else
|
||
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../android_headers
|
||
|
endif
|
||
|
|
||
|
LOCAL_CFLAGS += -DHAVE_CONFIG_H
|
||
|
LOCAL_CFLAGS += -Wall -Wdeclaration-after-statement -g -O2
|
||
|
LOCAL_CFLAGS += -DANDROID_USE_GSTREAMER \
|
||
|
$(shell $(PKG_CONFIG) gstreamer-plugins-bad-0.10 --cflags) \
|
||
|
$(shell $(PKG_CONFIG) gstreamer-audio-0.10 --cflags)
|
||
|
|
||
|
ifeq ($(USE_AUDIO_PURE_CODEC),true)
|
||
|
LOCAL_CFLAGS += -DAUDIO_PURE_CODEC
|
||
|
endif
|
||
|
|
||
|
LOCAL_SHARED_LIBRARIES += libdl
|
||
|
LOCAL_SHARED_LIBRARIES += \
|
||
|
libgstreamer-0.10 \
|
||
|
libgstbase-0.10 \
|
||
|
libglib-2.0 \
|
||
|
libgthread-2.0 \
|
||
|
libgmodule-2.0 \
|
||
|
libgobject-2.0 \
|
||
|
libgstvideo-0.10 \
|
||
|
libgstinterfaces-0.10
|
||
|
|
||
|
ifneq ($(NDK_BUILD), true)
|
||
|
LOCAL_LDFLAGS := -L$(SYSROOT)/usr/lib -llog
|
||
|
else
|
||
|
LOCAL_LDFLAGS := -L$(SYSROOT)/usr/lib -llog -lmedia -lutils
|
||
|
endif
|
||
|
|
||
|
LOCAL_LDFLAGS += -lEGL -lGLESv2
|
||
|
|
||
|
LOCAL_SHARED_LIBRARIES += \
|
||
|
libutils \
|
||
|
libcutils \
|
||
|
libui \
|
||
|
libhardware \
|
||
|
libandroid_runtime \
|
||
|
libmedia
|
||
|
|
||
|
|
||
|
LOCAL_MODULE:= libgsteglglessink
|
||
|
LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10
|
||
|
|
||
|
#
|
||
|
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
|
||
|
#
|
||
|
LOCAL_PRELINK_MODULE := false
|
||
|
LOCAL_MODULE_TAGS := eng debug
|
||
|
|
||
|
include $(BUILD_SHARED_LIBRARY)
|
||
|
|
||
|
#endif # USE_HARDWARE_MM == true
|