移植live555到android4.0

live555/Android.mk

-------------------------------------------

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := openRTSP
LOCAL_CFLAGS    := -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -DPIC -DNO_SSTREAM=1 -DLOCALE_NOT_USED -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp  -fexceptions
LOCAL_SRC_FILES := testProgs/openRTSP.cpp testProgs/playCommon.cpp
#LOCAL_LDLIBS    := -llog -lGLESv2
LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/BasicUsageEnvironment/include $(LOCAL_PATH)/UsageEnvironment/include $(LOCAL_PATH)/groupsock/include $(LOCAL_PATH)/liveMedia $(LOCAL_PATH)/liveMedia/include
LOCAL_STATIC_LIBRARIES :=  libliveMedia libBasicUsageEnvironment libUsageEnvironment  libgroupsock   libsupc++
LOCAL_SHARED_LIBRARIES := libcutils libstdc++ libc

LOCAL_MODULE_TAGS := optional

include $(BUILD_EXECUTABLE)
----------------------------------------------------------------------------------------------------------------
#live555/liveMedia/Android.mk


LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_CFLAGS := -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -DPIC -DNO_SSTREAM=1 -DLOCALE_NOT_USED -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp  -fexceptions
LOCAL_SRC_FILES := AC3AudioFileServerMediaSubsession.cpp          AC3AudioMatroskaFileServerMediaSubsession.cpp    AC3AudioRTPSink.cpp                               AC3AudioRTPSource.cpp    \
AC3AudioStreamFramer.cpp                       ADTSAudioFileServerMediaSubsession.cpp           ADTSAudioFileSource.cpp                           AMRAudioFileServerMediaSubsession.cpp    \
AMRAudioFileSink.cpp                           AMRAudioFileSource.cpp                           AMRAudioRTPSink.cpp                               AMRAudioRTPSource.cpp    \
AMRAudioSource.cpp                             AudioInputDevice.cpp                             AudioRTPSink.cpp                                  AVIFileSink.cpp    \
Base64.cpp                                     BasicUDPSink.cpp                                 BasicUDPSource.cpp                                BitVector.cpp    \
ByteStreamFileSource.cpp                       ByteStreamMemoryBufferSource.cpp                 ByteStreamMultiFileSource.cpp                     DarwinInjector.cpp    \
DeviceSource.cpp                               DigestAuthentication.cpp                         DVVideoFileServerMediaSubsession.cpp              DVVideoRTPSink.cpp    \
DVVideoRTPSource.cpp                           DVVideoStreamFramer.cpp                          EBMLNumber.cpp                                    FileServerMediaSubsession.cpp    \
FileSink.cpp                                   FramedFileSource.cpp                             FramedFilter.cpp                                  FramedSource.cpp    \
GSMAudioRTPSink.cpp                            H261VideoRTPSource.cpp                           H263plusVideoFileServerMediaSubsession.cpp        H263plusVideoRTPSink.cpp    \
H263plusVideoRTPSource.cpp                     H263plusVideoStreamFramer.cpp                    H263plusVideoStreamParser.cpp                     H264VideoFileServerMediaSubsession.cpp    \
H264VideoFileSink.cpp                          H264VideoMatroskaFileServerMediaSubsession.cpp   H264VideoRTPSink.cpp                              H264VideoRTPSource.cpp    \
H264VideoStreamDiscreteFramer.cpp              H264VideoStreamFramer.cpp                        InputFile.cpp                                     JPEGVideoRTPSink.cpp    \
JPEGVideoRTPSource.cpp                         JPEGVideoSource.cpp                              Locale.cpp                                        MatroskaDemuxedTrack.cpp    \
MatroskaFile.cpp                               MatroskaFileParser.cpp                           MatroskaFileServerDemux.cpp                       Media.cpp    \
MediaSession.cpp                               MediaSink.cpp                                    MediaSource.cpp                                   MP3ADU.cpp    \
MP3ADUdescriptor.cpp                           MP3ADUinterleaving.cpp                           MP3ADURTPSink.cpp                                 MP3ADURTPSource.cpp    \
MP3ADUTranscoder.cpp                           MP3AudioFileServerMediaSubsession.cpp            MP3AudioMatroskaFileServerMediaSubsession.cpp     MP3FileSource.cpp    \
MP3Internals.cpp                               MP3InternalsHuffman.cpp                          MP3InternalsHuffmanTable.cpp                      MP3StreamState.cpp    \
MP3Transcoder.cpp                              MPEG1or2AudioRTPSink.cpp                         MPEG1or2AudioRTPSource.cpp                        MPEG1or2AudioStreamFramer.cpp    \
MPEG1or2Demux.cpp                              MPEG1or2DemuxedElementaryStream.cpp              MPEG1or2DemuxedServerMediaSubsession.cpp          MPEG1or2FileServerDemux.cpp        \
MPEG1or2VideoFileServerMediaSubsession.cpp     MPEG1or2VideoRTPSink.cpp                         MPEG1or2VideoRTPSource.cpp                        MPEG1or2VideoStreamDiscreteFramer.cpp    \
MPEG1or2VideoStreamFramer.cpp                  MPEG2IndexFromTransportStream.cpp                MPEG2TransportFileServerMediaSubsession.cpp       MPEG2TransportStreamFramer.cpp    \
MPEG2TransportStreamFromESSource.cpp           MPEG2TransportStreamFromPESSource.cpp            MPEG2TransportStreamIndexFile.cpp                 MPEG2TransportStreamMultiplexor.cpp    \
MPEG2TransportStreamTrickModeFilter.cpp        MPEG2TransportUDPServerMediaSubsession.cpp       MPEG4ESVideoRTPSink.cpp                           MPEG4ESVideoRTPSource.cpp    \
MPEG4GenericRTPSink.cpp                        MPEG4GenericRTPSource.cpp                        MPEG4LATMAudioRTPSink.cpp                         MPEG4LATMAudioRTPSource.cpp    \
MPEG4VideoFileServerMediaSubsession.cpp        MPEG4VideoStreamDiscreteFramer.cpp               MPEG4VideoStreamFramer.cpp                        MPEGVideoStreamFramer.cpp    \
MPEGVideoStreamParser.cpp                      MultiFramedRTPSink.cpp                           MultiFramedRTPSource.cpp                          OnDemandServerMediaSubsession.cpp    \
OutputFile.cpp                                 PassiveServerMediaSubsession.cpp                 ProxyServerMediaSession.cpp                       QCELPAudioRTPSource.cpp    \
QuickTimeFileSink.cpp                          QuickTimeGenericRTPSource.cpp                    RTCP.cpp                                          RTPInterface.cpp    \
RTPSink.cpp                                    RTPSource.cpp                                    RTSPClient.cpp                                    RTSPCommon.cpp    \
RTSPServer.cpp                                 RTSPServerSupportingHTTPStreaming.cpp            ServerMediaSession.cpp                            SimpleRTPSink.cpp    \
SimpleRTPSource.cpp                            SIPClient.cpp                                    StreamParser.cpp                                  StreamReplicator.cpp    \
T140TextMatroskaFileServerMediaSubsession.cpp  T140TextRTPSink.cpp                              TCPStreamSink.cpp                                 TextRTPSink.cpp    \
uLawAudioFilter.cpp                            VideoRTPSink.cpp                                 VorbisAudioMatroskaFileServerMediaSubsession.cpp  VorbisAudioRTPSink.cpp  \
VorbisAudioRTPSource.cpp                       VP8VideoMatroskaFileServerMediaSubsession.cpp    VP8VideoRTPSink.cpp                               VP8VideoRTPSource.cpp   \
WAVAudioFileServerMediaSubsession.cpp          WAVAudioFileSource.cpp our_md5.c our_md5hl.c rtcp_from_spec.c
LOCAL_C_INCLUDES += $(LOCAL_PATH) $(LOCAL_PATH)/include $(LOCAL_PATH)/../UsageEnvironment/include $(LOCAL_PATH)/../groupsock/include

LOCAL_MODULE := libliveMedia

include $(BUILD_STATIC_LIBRARY)

--------------------------------------------------------------------------------------------------------------------------

#/live555/BasicUsageEnvironment/Android.mk

LOCAL_MODULE_TAGS := optional
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_CFLAGS := -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -DPIC -DNO_SSTREAM=1 -DLOCALE_NOT_USED -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp  -fexceptions
LOCAL_SRC_FILES := BasicHashTable.cpp BasicTaskScheduler0.cpp BasicTaskScheduler.cpp BasicUsageEnvironment0.cpp BasicUsageEnvironment.cpp DelayQueue.cpp
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include $(LOCAL_PATH)/../UsageEnvironment/include $(LOCAL_PATH)/../groupsock/include

LOCAL_MODULE := libBasicUsageEnvironment

include $(BUILD_STATIC_LIBRARY)
----------------------------------------------------------------------------------------------------------------------------

#/live555/groupsock/Android.mk

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_CFLAGS := -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -DPIC -DNO_SSTREAM=1 -DLOCALE_NOT_USED -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp  -fexceptions
LOCAL_SRC_FILES := GroupEId.cpp Groupsock.cpp GroupsockHelper.cpp inet.c IOHandlers.cpp NetAddress.cpp NetInterface.cpp
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include $(LOCAL_PATH)/../UsageEnvironment/include $(LOCAL_PATH)/../groupsock/include

LOCAL_MODULE := libgroupsock

include $(BUILD_STATIC_LIBRARY)

----------------------------------------------------------------------------------------------------------------------------

#/live555/UsageEnvironment/Android.mk

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_CFLAGS := -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -DPIC -DNO_SSTREAM=1 -DLOCALE_NOT_USED -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp  -fexceptions
LOCAL_SRC_FILES := HashTable.cpp strDup.cpp UsageEnvironment.cpp
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include $(LOCAL_PATH)/../UsageEnvironment/include $(LOCAL_PATH)/../groupsock/include

LOCAL_MODULE := libUsageEnvironment

include $(BUILD_STATIC_LIBRARY)

-----------------------------------------------------------------------------------------------------------------------------


先编译出各个.a静态库,再在/live555下面mm即可编译出openRTSP. 先编译子目录的过程好像可以写在/live/Android.mk中,懒得查了。。。

你可能感兴趣的:(移植live555到android4.0)