Commit 2e02b06a authored by jehan's avatar jehan
Browse files

add android build scripts

parent 5d3278e1
##
## Android.mk -Android build script-
##
##
## Copyright (C) 2010 Belledonne Communications, Grenoble, France
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program 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 General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
##
LOCAL_PATH:= $(call my-dir)/../../src
include $(CLEAR_VARS)
LOCAL_MODULE := libmediastreamer2
#LOCAL_CPP_EXTENSION := .cc
LOCAL_SRC_FILES = \
mscommon.c \
msfilter.c \
msqueue.c \
msticker.c \
alaw.c \
ulaw.c \
mssndcard.c \
msfileplayer.c \
msrtp.c \
dtmfgen.c \
msfilerec.c \
ice.c \
tee.c \
msconf.c \
msjoin.c \
g711common.h \
msvolume.c \
mtu.c \
msresample.c \
mswebcam.c \
equalizer.c \
dsptools.c \
kiss_fft.c \
kiss_fftr.c \
void.c
LOCAL_SRC_FILES += audiostream.c
##if BUILD_RESAMPLE
#LOCAL_SRC_FILES += msresample.c
##if BUILD_ALSA
ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
LOCAL_SRC_FILES += alsa.c
LOCAL_CFLAGS += -D__ALSA_ENABLED__
endif
##if BUILD_OSS
#LOCAL_SRC_FILES += oss.c
##if BUILD_ARTS
#LOCAL_SRC_FILES += arts.c
##if BUILD_PORTAUDIO
#LOCAL_SRC_FILES += pasnd.c
##if BUILD_MACSND
#LOCAL_SRC_FILES += macsnd.c
##if BUILD_MACAQSND
#LOCAL_SRC_FILES += aqsnd.c
##if BUILD_VIDEO
#
##if BUILD_MACOSX
#LOCAL_SRC_FILES += msv4m.c
#
## else (Linux)
#LOCAL_SRC_FILES += \
# msv4l.c \
# msv4l2.c
#
#LOCAL_SRC_FILES += \
# videoenc.c \
# videodec.c \
# pixconv.c \
# sizeconv.c \
# rfc2429.h \
# nowebcam.c \
# nowebcam.h \
# videoout.c \
# msvideo.c \
# rfc3984.c \
# mire.c \
# swscale.h \
# ffmpeg-priv.h
#LOCAL_SRC_FILES += videostream.c
#
##if BUILD_THEORA
#LOCAL_SRC_FILES += theora.c
#if BUILD_SPEEX
LOCAL_SRC_FILES += \
msspeex.c \
speexec.c
##if BUILD_GSM
LOCAL_SRC_FILES += gsm.c
LOCAL_CFLAGS += \
-UHAVE_CONFIG_H \
-include $(LOCAL_PATH)/../build/android/libmediastreamer2_AndroidConfig.h \
-D_POSIX_SOURCE
ifeq ($(TARGET_ARCH),arm)
#this is for ffmpeg
LOCAL_CFLAGS += -DANDROID_CONFIG_X86=1
endif
#LOCAL_CFLAGS += -DDEBUG
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/../build/android \
$(LOCAL_PATH)/../include \
$(LOCAL_PATH)/../../oRTP \
$(LOCAL_PATH)/../../oRTP/include \
$(LOCAL_PATH)/../../../../speex/include \
$(LOCAL_PATH)/../../../../gsm/ \
$(LOCAL_PATH)/../../../../ffmpeg
LOCAL_STATIC_LIBRARIES := \
libortp \
libspeex \
ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
LOCAL_SHARED_LIBRARIES += libasound
endif
#LOCAL_SHARED_LIBRARIES += libavcodec \
# libswscale \
# libavutil
include $(BUILD_STATIC_LIBRARY)
#include "mediastreamer2/msfilter.h"
extern MSFilterDesc ms_alaw_dec_desc;
extern MSFilterDesc ms_alaw_enc_desc;
extern MSFilterDesc ms_ulaw_dec_desc;
extern MSFilterDesc ms_ulaw_enc_desc;
extern MSFilterDesc ms_rtp_send_desc;
extern MSFilterDesc ms_rtp_recv_desc;
extern MSFilterDesc ms_dtmf_gen_desc;
extern MSFilterDesc ms_ice_desc;
extern MSFilterDesc ms_tee_desc;
extern MSFilterDesc ms_conf_desc;
extern MSFilterDesc ms_join_desc;
extern MSFilterDesc ms_volume_desc;
extern MSFilterDesc ms_void_sink_desc;
extern MSFilterDesc ms_equalizer_desc;
extern MSFilterDesc ms_speex_dec_desc;
extern MSFilterDesc ms_speex_enc_desc;
extern MSFilterDesc ms_speex_ec_desc;
extern MSFilterDesc ms_file_player_desc;
extern MSFilterDesc ms_file_rec_desc;
extern MSFilterDesc ms_resample_desc;
extern MSFilterDesc aq_read_desc;
extern MSFilterDesc aq_write_desc;
extern MSFilterDesc ms_equalizer_desc;
MSFilterDesc * ms_filter_descs[]={
&ms_alaw_dec_desc,
&ms_alaw_enc_desc,
&ms_ulaw_dec_desc,
&ms_ulaw_enc_desc,
&ms_rtp_send_desc,
&ms_rtp_recv_desc,
&ms_dtmf_gen_desc,
&ms_ice_desc,
&ms_tee_desc,
&ms_conf_desc,
&ms_join_desc,
&ms_volume_desc,
&ms_void_sink_desc,
&ms_speex_dec_desc,
&ms_speex_enc_desc,
&ms_speex_ec_desc,
&ms_file_player_desc,
&ms_file_rec_desc,
&ms_resample_desc,
&ms_equalizer_desc,
NULL
};
/* mediastreamer-config.h. Generated from mediastreamer-config.h.in by configure. */
/* mediastreamer-config.h.in. Generated from configure.ac by autoheader. */
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This function is required for `alloca.c' support on those systems.
*/
/* #undef CRAY_STACKSEG_END */
/* Define to 1 if using `alloca.c'. */
#define C_ALLOCA 1
/* Define to 1 if you have `alloca', as a function or macro. */
/* #undef HAVE_ALLOCA */
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
*/
/* #undef HAVE_ALLOCA_H */
/* Define to 1 if you have the <alsa/asoundlib.h> header file. */
/* #undef HAVE_ALSA_ASOUNDLIB_H */
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Defined if dlopen() is availlable */
/*#define HAVE_DLOPEN 1*/
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <kde/artsc/artsc.h> header file. */
/* #undef HAVE_KDE_ARTSC_ARTSC_H */
/* Define to 1 if you have the <libavcodec/avcodec.h> header file. */
#define HAVE_LIBAVCODEC_AVCODEC_H 1
/* Define to 1 if you have the <libswscale/swscale.h> header file. */
#define HAVE_LIBSWSCALE_SWSCALE_H 1
/* Define to 1 if you have the <linux/videodev2.h> header file. */
#define HAVE_LINUX_VIDEODEV2_H 1
/* Define to 1 if you have the <linux/videodev.h> header file. */
#define HAVE_LINUX_VIDEODEV_H 1
/* Define to 1 if you have the <machine/soundcard.h> header file. */
/* #undef HAVE_MACHINE_SOUNDCARD_H */
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the <portaudio.h> header file. */
/* #undef HAVE_PORTAUDIO_H */
/* Define to 1 if you have the <soundcard.h> header file. */
#define HAVE_SOUNDCARD_H 1
/* tells whether the noise arg of speex_echo_cancel can be used */
#define HAVE_SPEEX_NOISE 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/audio.h> header file. */
/* #undef HAVE_SYS_AUDIO_H */
/* Define to 1 if you have the <sys/soundcard.h> header file. */
/* #undef HAVE_SYS_SOUNDCARD_H */
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if you have the <X11/Xlib.h> header file. */
/* #undef HAVE_X11_XLIB_H */
/* major version */
#define MEDIASTREAMER_MAJOR_VERSION 2
/* micro version */
#define MEDIASTREAMER_MICRO_VERSION 2
/* minor version */
#define MEDIASTREAMER_MINOR_VERSION 2
/* MEDIASTREAMER version number */
#define MEDIASTREAMER_VERSION "2.2.2"
/* Name of package */
#define PACKAGE "mediastreamer"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
/* path of data */
#define PACKAGE_DATA_DIR "/system/share"
/* Define to the full name of this package. */
#define PACKAGE_NAME "mediastreamer"
/* Path of plugins */
#define PACKAGE_PLUGINS_DIR "/system/lib"
/* Plugins prefix */
#define PACKAGE_PLUGINS_PREFIX "libms"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "mediastreamer 2.2.2"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "mediastreamer"
/* Define to the version of this package. */
#define PACKAGE_VERSION "2.2.2"
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at runtime.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
#define STACK_DIRECTION 0
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1
/* Version number of package */
#define VERSION "2.2.2"
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
/* #undef WORDS_BIGENDIAN */
/* defined if alsa support is available */
/* #undef __ALSA_ENABLED__ */
/* defined if arts support is available */
/* #undef __ARTS_ENABLED__ */
/* Jack support */
/* #undef __JACK_ENABLED__ */
/* defined if native macosx sound support is available */
/* #undef __MACSND_ENABLED__ */
/* defined if native macosx AQ sound support is available */
/* #undef __MAC_AQ_ENABLED__ */
/* defined if portaudio support is available */
/* #undef __PORTAUDIO_ENABLED__ */
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment