Commit 3f1ef225 authored by Alessandro Decina's avatar Alessandro Decina Committed by Edward Hervey
Browse files

android: make it ready for androgenizer

Remove the android/ top dir
Fixe the Makefile.am to be androgenized

To build gstreamer for android we are now using androgenizer which generates the needed Android.mk files.
Androgenizer can be found here: http://git.collabora.co.uk/?p=user/derek/androgenizer.git
parent 76559d41
Android.mk
ABOUT-NLS
Makefile
Makefile.in
......
# This file is the top android makefile for all sub-modules.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
GSTREAMER_TOP := $(LOCAL_PATH)
gstreamer_TOP := $(LOCAL_PATH)
include $(CLEAR_VARS)
GST_BUILT_SOURCES := \
gst/gstenumtypes.h \
gst/gstenumtypes.c \
gst/gstmarshal.h \
gst/gstmarshal.c \
gst/parse/grammar.tab.h \
gst/parse/grammar.tab.c \
gst/parse/grammar.output \
gst/parse/lex._gst_parse_yy.c \
pkgconfig/gstreamer-0.10.pc \
pkgconfig/gstreamer-base-0.10.pc \
pkgconfig/gstreamer-controller-0.10.pc \
pkgconfig/gstreamer-dataprotocol-0.10.pc \
pkgconfig/gstreamer-net-0.10.pc \
pkgconfig/gstreamer-0.10-uninstalled.pc \
pkgconfig/gstreamer-base-0.10-uninstalled.pc \
pkgconfig/gstreamer-controller-0.10-uninstalled.pc \
pkgconfig/gstreamer-dataprotocol-0.10-uninstalled.pc \
pkgconfig/gstreamer-net-0.10-uninstalled.pc \
gst/Android.mk \
gst/parse/Android.mk \
libs/Android.mk \
libs/gst/Android.mk \
libs/gst/base/Android.mk \
libs/gst/controller/Android.mk \
libs/gst/dataprotocol/Android.mk \
libs/gst/net/Android.mk \
libs/gst/helpers/Android.mk \
plugins/Android.mk \
plugins/elements/Android.mk \
plugins/indexers/Android.mk \
tools/Android.mk
GST_BUILT_SOURCES := $(patsubst %, $(abspath $(gstreamer_TOP))/%, $(GST_BUILT_SOURCES))
.PHONY: gst-configure gst-configure-real
gst-configure-real:
echo $(GST_BUILT_SOURCES)
cd $(gstreamer_TOP) ; \
CC="$(CONFIGURE_CC)" \
CFLAGS="$(CONFIGURE_CFLAGS)" \
LD=$(TARGET_LD) \
LDFLAGS="$(CONFIGURE_LDFLAGS)" \
CPP=$(CONFIGURE_CPP) \
CPPFLAGS="$(CONFIGURE_CPPFLAGS)" \
PKG_CONFIG_LIBDIR=$(CONFIGURE_PKG_CONFIG_LIBDIR) \
PKG_CONFIG_TOP_BUILD_DIR=/ \
$(abspath $(gstreamer_TOP))/$(CONFIGURE) --host=arm-linux-androideabi \
--prefix=/system --disable-nls --disable-loadsave \
--disable-valgrind --disable-gtk-doc && \
for file in $(GST_BUILT_SOURCES); do \
rm -f $$file && \
make -C $$(dirname $$file) $$(basename $$file) ; \
done
gst-configure: gst-configure-real
include $(GSTREAMER_TOP)/android/gst.mk
include $(GSTREAMER_TOP)/android/base.mk
include $(GSTREAMER_TOP)/android/controller.mk
include $(GSTREAMER_TOP)/android/dataprotocol.mk
include $(GSTREAMER_TOP)/android/net.mk
include $(GSTREAMER_TOP)/android/elements.mk
include $(GSTREAMER_TOP)/android/indexers.mk
include $(GSTREAMER_TOP)/android/tools.mk
CONFIGURE_TARGETS += gst-configure
-include $(gstreamer_TOP)/gst/Android.mk
-include $(gstreamer_TOP)/libs/Android.mk
-include $(gstreamer_TOP)/plugins/Android.mk
-include $(gstreamer_TOP)/tools/Android.mk
This diff is collapsed.
LOCAL_PATH:= $(call my-dir)
#------------------------------------
# include section
#-----------------------------------
gst_base_COPY_HEADERS_TO := gstreamer-0.10/gst/base
gst_base_COPY_HEADERS := \
../libs/gst/base/gstadapter.h \
../libs/gst/base/gstbasesink.h \
../libs/gst/base/gstbasesrc.h \
../libs/gst/base/gstbasetransform.h \
../libs/gst/base/gstbitreader.h \
../libs/gst/base/gstbytereader.h \
../libs/gst/base/gstbytewriter.h \
../libs/gst/base/gstcollectpads.h \
../libs/gst/base/gstdataqueue.h \
../libs/gst/base/gstpushsrc.h \
../libs/gst/base/gsttypefindhelper.h
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
GST_MAJORMINOR:= 0.10
base_LOCAL_SRC_FILES:= \
libs/gst/base/gstadapter.c \
libs/gst/base/gstbasesink.c \
libs/gst/base/gstbasesrc.c \
libs/gst/base/gstbasetransform.c \
libs/gst/base/gstbitreader.c \
libs/gst/base/gstbytereader.c \
libs/gst/base/gstbytewriter.c \
libs/gst/base/gstcollectpads.c \
libs/gst/base/gstpushsrc.c \
libs/gst/base/gsttypefindhelper.c \
libs/gst/base/gstdataqueue.c
LOCAL_SRC_FILES:= $(addprefix ../,$(base_LOCAL_SRC_FILES))
LOCAL_SHARED_LIBRARIES := \
libgstreamer-0.10 \
libglib-2.0 \
libgthread-2.0 \
libgmodule-2.0 \
libgobject-2.0
LOCAL_MODULE:= libgstbase-$(GST_MAJORMINOR)
LOCAL_C_INCLUDES := \
$(LOCAL_PATH) \
$(LOCAL_PATH)/gst \
$(LOCAL_PATH)/../libs/gst/base \
$(LOCAL_PATH)/.. \
$(LOCAL_PATH)/../gst \
$(LOCAL_PATH)/../libs \
$(TARGET_OUT_HEADERS)/glib-2.0 \
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
external/libxml2/include
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
LOCAL_SHARED_LIBRARIES += libicuuc
LOCAL_C_INCLUDES += external/icu4c/common
endif
LOCAL_CFLAGS := -DHAVE_CONFIG_H
#
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
#
LOCAL_PRELINK_MODULE := false
LOCAL_COPY_HEADERS_TO := $(gst_base_COPY_HEADERS_TO)
LOCAL_COPY_HEADERS := $(gst_base_COPY_HEADERS)
include $(BUILD_SHARED_LIBRARY)
LOCAL_PATH:= $(call my-dir)
#------------------------------------
# include section
#-----------------------------------
gst_controller_COPY_HEADERS_TO := gstreamer-0.10/gst/controller
gst_controller_COPY_HEADERS := \
../libs/gst/controller/gstcontroller.h \
../libs/gst/controller/gstcontrolsource.h \
../libs/gst/controller/gstinterpolationcontrolsource.h \
../libs/gst/controller/gstlfocontrolsource.h
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
GST_MAJORMINOR:= 0.10
controller_LOCAL_SRC_FILES:= \
libs/gst/controller/lib.c \
libs/gst/controller/gstcontroller.c \
libs/gst/controller/gstinterpolation.c \
libs/gst/controller/gsthelper.c \
libs/gst/controller/gstcontrolsource.c \
libs/gst/controller/gstinterpolationcontrolsource.c \
libs/gst/controller/gstlfocontrolsource.c
LOCAL_SRC_FILES:= $(addprefix ../,$(controller_LOCAL_SRC_FILES))
LOCAL_SHARED_LIBRARIES := \
libgstreamer-0.10 \
libglib-2.0 \
libgthread-2.0 \
libgmodule-2.0 \
libgobject-2.0
LOCAL_MODULE:= libgstcontroller-$(GST_MAJORMINOR)
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../libs \
$(LOCAL_PATH)/.. \
$(LOCAL_PATH)/../gst \
$(LOCAL_PATH) \
$(LOCAL_PATH)/gst \
$(LOCAL_PATH)/gst/parse \
$(TARGET_OUT_HEADERS)/glib-2.0 \
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
external/libxml2/include
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
LOCAL_SHARED_LIBRARIES += libicuuc
LOCAL_C_INCLUDES += external/icu4c/common
endif
LOCAL_CFLAGS := -DHAVE_CONFIG_H
#
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
#
LOCAL_PRELINK_MODULE := false
LOCAL_COPY_HEADERS_TO := $(gst_controller_COPY_HEADERS_TO)
LOCAL_COPY_HEADERS := $(gst_controller_COPY_HEADERS)
include $(BUILD_SHARED_LIBRARY)
LOCAL_PATH:= $(call my-dir)
#------------------------------------
# include section
#-----------------------------------
gst_dataprotocol_COPY_HEADERS_TO := gstreamer-0.10/gst/dataprotocol
gst_dataprotocol_COPY_HEADERS := \
../libs/gst/dataprotocol/dataprotocol.h
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
GST_MAJORMINOR:= 0.10
dataprotocol_LOCAL_SRC_FILES:= \
libs/gst/dataprotocol/dataprotocol.c
LOCAL_SRC_FILES:= $(addprefix ../,$(dataprotocol_LOCAL_SRC_FILES))
LOCAL_SHARED_LIBRARIES := \
libgstreamer-0.10 \
libglib-2.0 \
libgthread-2.0 \
libgmodule-2.0 \
libgobject-2.0
LOCAL_MODULE:= libgstdataprotocol-$(GST_MAJORMINOR)
LOCAL_TOP_PATH := $(LOCAL_PATH)/../../../..
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/.. \
$(LOCAL_PATH)/../libs \
$(LOCAL_PATH)/../gst \
$(LOCAL_PATH) \
$(LOCAL_PATH)/gst \
$(LOCAL_PATH)/gst/parse \
$(TARGET_OUT_HEADERS)/glib-2.0 \
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
external/libxml2/include
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
LOCAL_SHARED_LIBRARIES += libicuuc
LOCAL_C_INCLUDES += external/icu4c/common
endif
LOCAL_CFLAGS := -DHAVE_CONFIG_H
#
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
#
LOCAL_PRELINK_MODULE := false
LOCAL_COPY_HEADERS_TO := $(gst_dataprotocol_COPY_HEADERS_TO)
LOCAL_COPY_HEADERS := $(gst_dataprotocol_COPY_HEADERS)
include $(BUILD_SHARED_LIBRARY)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
GST_MAJORMINOR:= 0.10
elements_LOCAL_SRC_FILES:= \
plugins/elements/gstcapsfilter.c \
plugins/elements/gstelements.c \
plugins/elements/gstfakesrc.c \
plugins/elements/gstfakesink.c \
plugins/elements/gstfdsrc.c \
plugins/elements/gstfdsink.c \
plugins/elements/gstfilesink.c \
plugins/elements/gstfilesrc.c \
plugins/elements/gstidentity.c \
plugins/elements/gstqueue.c \
plugins/elements/gstqueue2.c \
plugins/elements/gsttee.c \
plugins/elements/gsttypefindelement.c \
plugins/elements/gstmultiqueue.c
LOCAL_SRC_FILES:= $(addprefix ../,$(elements_LOCAL_SRC_FILES))
LOCAL_SHARED_LIBRARIES := \
libgstbase-0.10 \
libgstreamer-0.10 \
libglib-2.0 \
libgthread-2.0 \
libgmodule-2.0 \
libgobject-2.0
LOCAL_MODULE:= libgstcoreelements
#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.10
LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/.. \
$(LOCAL_PATH)/../libs \
$(LOCAL_PATH)/../gst \
$(LOCAL_PATH)/ \
$(LOCAL_PATH)/gst \
$(LOCAL_PATH)/gst/parse \
$(TARGET_OUT_HEADERS)/glib-2.0 \
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
external/libxml2/include
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
LOCAL_SHARED_LIBRARIES += libicuuc
LOCAL_C_INCLUDES += external/icu4c/common
endif
LOCAL_CFLAGS := -DHAVE_CONFIG_H
#
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
#
LOCAL_PRELINK_MODULE := false
include $(BUILD_SHARED_LIBRARY)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
GST_MAJORMINOR:= 0.10
LOCAL_SRC_FILES:= ../tools/gst-inspect.c
LOCAL_SHARED_LIBRARIES := \
libgstreamer-0.10 \
libglib-2.0 \
libgthread-2.0 \
libgmodule-2.0 \
libgobject-2.0
LOCAL_MODULE:= gst-inspect
LOCAL_TOP_PATH := $(LOCAL_PATH)/../..
LOCAL_C_INCLUDES := \
$(LOCAL_PATH) \
$(LOCAL_PATH)/.. \
$(LOCAL_PATH)/../tools \
$(TARGET_OUT_HEADERS)/gstreamer-0.10 \
$(TARGET_OUT_HEADERS)/glib-2.0 \
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
external/libxml2/include
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
LOCAL_SHARED_LIBRARIES += libicuuc
LOCAL_C_INCLUDES += external/icu4c/common
endif
LOCAL_CFLAGS := -DHAVE_CONFIG_H
include $(BUILD_EXECUTABLE)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
GST_MAJORMINOR:= 0.10
LOCAL_SRC_FILES:= ../tools/gst-launch.c
LOCAL_SHARED_LIBRARIES := \
libgstreamer-0.10 \
libglib-2.0 \
libgthread-2.0 \
libgmodule-2.0 \
libgobject-2.0
LOCAL_MODULE:= gst-launch
LOCAL_C_INCLUDES := \
$(LOCAL_PATH) \
$(LOCAL_PATH)/.. \
$(LOCAL_PATH)/../tools \
$(TARGET_OUT_HEADERS)/gstreamer-0.10 \
$(TARGET_OUT_HEADERS)/glib-2.0 \
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
external/libxml2/include
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
LOCAL_SHARED_LIBRARIES += libicuuc
LOCAL_C_INCLUDES += external/icu4c/common
endif
LOCAL_CFLAGS := \
-DHAVE_CONFIG_H
include $(BUILD_EXECUTABLE)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
GST_MAJORMINOR:= 0.10
LOCAL_SRC_FILES:= ../libs/gst/helpers/gst-plugin-scanner.c
LOCAL_SHARED_LIBRARIES := \
libgstreamer-0.10 \
libglib-2.0 \
libgthread-2.0 \
libgmodule-2.0 \
libgobject-2.0
LOCAL_MODULE:= gst-plugin-scanner
LOCAL_C_INCLUDES := \
$(LOCAL_PATH) \
$(LOCAL_PATH)/.. \
$(LOCAL_PATH)/../tools \
$(TARGET_OUT_HEADERS)/gstreamer-0.10 \
$(TARGET_OUT_HEADERS)/glib-2.0 \
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
external/libxml2/include
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
LOCAL_SHARED_LIBRARIES += libicuuc
LOCAL_C_INCLUDES += external/icu4c/common
endif
LOCAL_CFLAGS := \
-DHAVE_CONFIG_H
include $(BUILD_EXECUTABLE)
LOCAL_PATH:= $(call my-dir)
#------------------------------------
# include section
#-----------------------------------
gst_COPY_HEADERS_TO := gstreamer-0.10/gst
gst_COPY_HEADERS_BASE := \
glib-compat.h \
gst.h \
gstbin.h \
gstbuffer.h \
gstbufferlist.h \
gstbus.h \
gstcaps.h \
gstchildproxy.h \
gstclock.h \
gstcompat.h \
gstdebugutils.h \
gstelement.h \
gstelementfactory.h \
gsterror.h \
gstevent.h \
gstfilter.h \
gstformat.h \
gstghostpad.h \
gstindex.h \
gstindexfactory.h \
gstinfo.h \
gstinterface.h \
gstiterator.h \
gstmacros.h \
gstmessage.h \
gstminiobject.h \
gstobject.h \
gstpad.h \
gstpadtemplate.h \
gstparamspecs.h \
gstparse.h \
gstpipeline.h \
gstplugin.h \
gstpluginfeature.h \
gstpluginloader.h \
gstpoll.h \
gstpreset.h \
gstquery.h \
gstregistry.h \
gstregistrychunks.h \
gstsegment.h \
gststructure.h \
gstsystemclock.h \
gsttaglist.h \
gsttagsetter.h \
gsttask.h \
gsttaskpool.h \
gsttrace.h \
gsttypefind.h \
gsttypefindfactory.h \
gsturi.h \
gstutils.h \
gstvalue.h \
gstxml.h
gst_COPY_HEADERS_ANDROID := \
gstconfig.h \
gstversion.h \
gstenumtypes.h \
gstmarshal.h
gst_COPY_HEADERS := $(addprefix ../gst/,$(gst_COPY_HEADERS_BASE)) \
$(addprefix ../android/gst/,$(gst_COPY_HEADERS_ANDROID))
#------------------------------------
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
GST_MAJORMINOR:= 0.10
gst_LOCAL_SRC_FILES_BASE:= \
gst.c \
gstobject.c \
gstbin.c \
gstbuffer.c \
gstbufferlist.c \
gstbus.c \
gstcaps.c \
gstchildproxy.c \
gstclock.c \
gstdebugutils.c \
gstelement.c \
gstelementfactory.c \
gsterror.c \
gstevent.c \
gstfilter.c \
gstformat.c \
gstghostpad.c \
gstindex.c \
gstindexfactory.c \
gstinfo.c \
gstinterface.c \
gstiterator.c \
gstmessage.c \
gstminiobject.c \
gstpad.c \
gstpadtemplate.c \
gstparamspecs.c \
gstpipeline.c \
gstplugin.c \
gstpluginfeature.c \
gstpluginloader.c \
gstpoll.c \
gstpreset.c \
gstquark.c \
gstquery.c \
gstregistry.c \
gstregistrychunks.c \
gstsegment.c \
gststructure.c \
gstsystemclock.c \
gsttaglist.c \
gsttagsetter.c \
gsttask.c \
gsttaskpool.c \
gsttrace.c \
gsttypefind.c \
gsttypefindfactory.c \
gsturi.c \
gstutils.c \
gstvalue.c \
gstparse.c \
gstregistrybinary.c \
gstxml.c
gst_LOCAL_SRC_FILES_ANDROID:= \
gstenumtypes.c \
gstmarshal.c \
parse/grammar.tab.c \
parse/lex._gst_parse_yy.c
LOCAL_SRC_FILES:= $(addprefix ../gst/,$(gst_LOCAL_SRC_FILES_BASE)) \
$(addprefix ../android/gst/,$(gst_LOCAL_SRC_FILES_ANDROID))
LOCAL_STATIC_LIBRARIES := libxml2
LOCAL_SHARED_LIBRARIES := \
libglib-2.0 \
libgthread-2.0 \
libgmodule-2.0 \
libgobject-2.0
LOCAL_MODULE:= libgstreamer-$(GST_MAJORMINOR)
LOCAL_C_INCLUDES := \
$(LOCAL_PATH) \
$(LOCAL_PATH)/gst \
$(LOCAL_PATH)/gst/parse \
$(LOCAL_PATH)/../gst \
$(LOCAL_PATH)/.. \
$(LOCAL_PATH)/../gst/parse \
$(TARGET_OUT_HEADERS)/glib-2.0 \
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
external/libxml2/include
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
LOCAL_SHARED_LIBRARIES += libicuuc
LOCAL_C_INCLUDES += external/icu4c/common
endif