Commit b813e7d8 authored by Benjamin Gaignard's avatar Benjamin Gaignard Committed by Edward Hervey
Browse files

Add build system for Android

parent bf979b00
# This file is the top android makefile for all sub-modules.
LOCAL_PATH := $(call my-dir)
GSTREAMER_TOP := $(LOCAL_PATH)
include $(CLEAR_VARS)
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
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
LOCAL_CFLAGS := \
-D_GNU_SOURCE \
-DG_LOG_DOMAIN=g_log_domain_gstreamer \
-DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" \
-DGST_DISABLE_DEPRECATED \
-DHAVE_CONFIG_H
#
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
#
LOCAL_PRELINK_MODULE := false
LOCAL_COPY_HEADERS_TO := $(gst_COPY_HEADERS_TO)
LOCAL_COPY_HEADERS := $(gst_COPY_HEADERS)
include $(BUILD_SHARED_LIBRARY)
/* GStreamer
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
* 2004,2005 Wim Taymans <wim@fluendo.com>
*
* gstconfig.h: GST_DISABLE_* macros for build configuration
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
/**
* SECTION:gstconfig
* @short_description: Build configuration options
*
* This describes the configuration options for GStreamer. When building
* GStreamer there are a lot of parts (known internally as "subsystems" ) that
* can be disabled for various reasons. The most common reasons are speed and
* size, which is important because GStreamer is designed to run on embedded
* systems.
*
* If a subsystem is disabled, most of this changes are done in an API
* compatible way, so you don't need to adapt your code in most cases. It is
* never done in an ABI compatible way though. So if you want to disable a
* suybsystem, you have to rebuild all programs depending on GStreamer, too.
*
* If a subsystem is disabled in GStreamer, a value is defined in
* &lt;gst/gst.h&gt;. You can check this if you do subsystem-specific stuff.
* <example id="example-gstconfig">
* <title>Doing subsystem specific things</title>
* <programlisting>
* &hash;ifndef GST_DISABLE_GST_DEBUG
* // do stuff specific to the debugging subsystem
* &hash;endif // GST_DISABLE_GST_DEBUG
* </programlisting>
* </example>
*/
#ifndef __GST_CONFIG_H__
#define __GST_CONFIG_H__
/* trick gtk-doc into believing these symbols are defined (yes, it's ugly) */