
!IF "$(BSP_STREAMING_LIBRARY)" == ""
SKIPBUILD=1
!ENDIF

!INCLUDE ..\..\..\sources.cmn

!IF "$(BSP_STREAMING_LIBRARY_FULL_BUILD)" != ""
CDEFINES=$(CDEFINES) -DLIVE555_FULL_BUILD
!ENDIF


EXPLIB_PRODUCES=Live555_lib


TARGETNAME=live555
TARGETTYPE=DYNLINK

SOURCELIBS= \
    $(_SYSGENSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib \
    $(_SYSGENSDKROOT)\lib\$(_CPUINDPATH)\ws2.lib \

INCLUDES= \
    $(INCLUDES); \
    include; \

CDEFINES=$(CDEFINES) -DLOCALE_NOT_USED -DNO_SSTREAM -DLIVEAPI_EXPORTS
CDEFINES=$(CDEFINES) /EHsc

MP3_SOURCE_SRC = MP3FileSource.cpp MP3HTTPSource.cpp MP3Transcoder.cpp MP3ADU.cpp \
    MP3ADUdescriptor.cpp MP3ADUinterleaving.cpp MP3ADUTranscoder.cpp MP3StreamState.cpp \
    MP3Internals.cpp MP3InternalsHuffman.cpp MP3InternalsHuffmanTable.cpp MP3ADURTPSource.cpp
MPEG_SOURCE_SRC = MPEG1or2Demux.cpp MPEG1or2DemuxedElementaryStream.cpp \
    MPEG1or2VideoStreamFramer.cpp MPEG1or2VideoStreamDiscreteFramer.cpp \
    H264or5VideoStreamFramer.cpp H264or5VideoStreamDiscreteFramer.cpp \
    H264VideoStreamFramer.cpp MPEG1or2AudioStreamFramer.cpp MPEG1or2AudioRTPSource.cpp \
    MPEG1or2VideoRTPSource.cpp \
    MPEG2TransportStreamMultiplexor.cpp MPEG2TransportStreamFromPESSource.cpp \
    MPEG2TransportStreamFromESSource.cpp MPEG2TransportStreamFramer.cpp \
    ADTSAudioFileSource.cpp
MPEG4_SOURCE_SRC = MPEGVideoStreamFramer.cpp MPEG4VideoStreamFramer.cpp \
    MPEG4VideoStreamDiscreteFramer.cpp MPEGVideoStreamParser.cpp \
    MPEG4ESVideoRTPSource.cpp MPEG4GenericRTPSource.cpp \
    MPEG4LATMAudioRTPSource.cpp
    
H264_OR_5_SOURCE_SRC= \
    H264VideoStreamFramer.cpp H264VideoStreamDiscreteFramer.cpp \
    H264or5VideoStreamFramer.cpp H264or5VideoStreamDiscreteFramer.cpp \
    H265VideoStreamFramer.cpp H265VideoStreamDiscreteFramer.cpp \
    H264VideoRTPSource.cpp H265VideoRTPSource.cpp
    
H263_SOURCE_SRC = H263plusVideoRTPSource.cpp H263plusVideoStreamFramer.cpp \
    H263plusVideoStreamParser.cpp
AC3_SOURCE_SRC = AC3AudioStreamFramer.cpp AC3AudioRTPSource.cpp
DV_SOURCE_SRC = DVVideoStreamFramer.cpp DVVideoRTPSource.cpp

MP3_SINK_SRC = MP3ADURTPSink.cpp
H263_SINK_SRC = H263plusVideoRTPSink.cpp

H264_SINK_SRC = H264VideoRTPSink.cpp 
#H264VideoFileSink.cpp FileSink.cpp

H264_OR_5_SINK_SRC = H264or5VideoRTPSink.cpp H264VideoRTPSink.cpp H265VideoRTPSink.cpp


DV_SINK_SRC = DVVideoRTPSink.cpp
AC3_SINK_SRC = AC3AudioRTPSink.cpp
MPEG_SINK_SRC = MPEG1or2AudioRTPSink.cpp MPEG1or2VideoRTPSink.cpp \
    MPEG1or2VideoHTTPSink.cpp MPEG4LATMAudioRTPSink.cpp
MPEG4_SINK_SRC = MPEG4GenericRTPSink.cpp MPEG4ESVideoRTPSink.cpp

FILE_SOURCE_SRC = FramedFileSource.cpp ByteStreamFileSource.cpp \
    ByteStreamMultiFileSource.cpp WAVAudioFileSource.cpp \
    AMRAudioFileSource.cpp InputFile.cpp
FILE_SINK_SRC = FileSink.cpp AMRAudioFileSink.cpp H264VideoFileSink.cpp \
    HTTPSink.cpp OutputFile.cpp

BASE_SOURCE_SRC = MediaSource.cpp FramedSource.cpp FramedFilter.cpp
MISC_SOURCE_SRC = BasicUDPSource.cpp DeviceSource.cpp AudioInputDevice.cpp \
    JPEGVideoSource.cpp AMRAudioSource.cpp 

BASE_SINK_SRC = MediaSink.cpp BasicUDPSink.cpp
MISC_SINK_SRC = GSMAudioRTPSink.cpp JPEGVideoRTPSink.cpp \
    SimpleRTPSink.cpp AMRAudioRTPSink.cpp

MISC_FILTER_SRC = uLawAudioFilter.cpp

TRANSPORT_STREAM_TRICK_PLAY_SRC = MPEG2IndexFromTransportStream.cpp \
    MPEG2TransportStreamIndexFile.cpp MPEG2TransportStreamTrickModeFilter.cpp

RTP_SOURCE_SRC = RTPSource.cpp MultiFramedRTPSource.cpp SimpleRTPSource.cpp
RTP_MEDIA_SRC = H261VideoRTPSource.cpp H264VideoRTPSource.cpp \
    QCELPAudioRTPSource.cpp AMRAudioRTPSource.cpp JPEGVideoRTPSource.cpp
RTP_SINK_SRC = RTPSink.cpp MultiFramedRTPSink.cpp
RTP_VIDEO_SINK_SRC = VideoRTPSink.cpp
RTP_AUDIO_SINK_SRC = AudioRTPSink.cpp
RTP_INTERFACE_SRC = RTPInterface.cpp

RTCP_SRC = RTCP.cpp rtcp_from_spec.c
GENERIC_MEDIA_SERVER_SRC = GenericMediaServer.cpp
RTSP_SRC = RTSPServer.cpp RTSPClient.cpp RTSPCommon.cpp RTSPRegisterSender.cpp
SIP_SRC = SIPClient.cpp

SESSION_BASE_SRC = MediaSession.cpp ServerMediaSession.cpp \
    OnDemandServerMediaSubsession.cpp \
    ProxyServerMediaSession.cpp

SESSION_MEDIA_SRC = PassiveServerMediaSubsession.cpp FileServerMediaSubsession.cpp \
    MPEG4VideoFileServerMediaSubsession.cpp H263plusVideoFileServerMediaSubsession.cpp \
    WAVAudioFileServerMediaSubsession.cpp AMRAudioFileServerMediaSubsession.cpp \
    MP3AudioFileServerMediaSubsession.cpp MPEG1or2VideoFileServerMediaSubsession.cpp \
    MPEG1or2FileServerDemux.cpp MPEG1or2DemuxedServerMediaSubsession.cpp \
    MPEG2TransportFileServerMediaSubsession.cpp ADTSAudioFileServerMediaSubsession.cpp \
    DVVideoFileServerMediaSubsession.cpp \

QUICKTIME_SRC = QuickTimeFileSink.cpp QuickTimeGenericRTPSource.cpp
AVI_SRC = AVIFileSink.cpp

MISC_SRC = StreamParser.cpp BitVector.cpp \
    DigestAuthentication.cpp ourMD5.cpp Base64.cpp Locale.cpp

LIVEMEDIA_LIB_SRC = \
    Media.cpp $(BASE_SOURCE_SRC) $(BASE_SINK_SRC) \
    $(MPEG4_SOURCE_SRC) $(MPEG4_SINK_SRC) \
    $(H264_OR_5_SOURCE_SRC)  $(H264_OR_5_SINK_SRC) \
    $(RTCP_SRC) $(RTSP_SRC) \
    $(GENERIC_MEDIA_SERVER_SRC) \
    $(RTP_SOURCE_SRC) $(RTP_SINK_SRC) $(RTP_VIDEO_SINK_SRC) $(RTP_INTERFACE_SRC) \
    $(SESSION_BASE_SRC) \
    $(MISC_SRC)

USAGE_ENV_OBJS = UsageEnvironment.cpp HashTable.cpp strDup.cpp

BASIC_USAGE_ENV_SRC = BasicUsageEnvironment0.cpp BasicUsageEnvironment.cpp \
	BasicTaskScheduler0.cpp BasicTaskScheduler.cpp \
	DelayQueue.cpp BasicHashTable.cpp

GROUPSOCK_LIB_SRC = GroupsockHelper.cpp GroupEId.cpp inet.c \
    Groupsock.cpp NetInterface.cpp NetAddress.cpp IOHandlers.cpp

SOURCES= \
    $(USAGE_ENV_OBJS) \
    $(BASIC_USAGE_ENV_SRC) \
    $(GROUPSOCK_LIB_SRC) \
    $(LIVEMEDIA_LIB_SRC) \
    oscompat.cpp \

#    $(MP3_SOURCE_SRC) $(MPEG_SOURCE_SRC) \
#    $(H263_SOURCE_SRC) $(AC3_SOURCE_SRC) $(DV_SOURCE_SRC) \
#    $(MP3_SINK_SRC) $(H263_SINK_SRC) $(H264_SINK_SRC) \
#    $(DV_SINK_SRC) $(AC3_SINK_SRC) $(MPEG_SINK_SRC) \
#    $(FILE_SOURCE_SRC) $(FILE_SINK_SRC) \
#    $(MISC_SOURCE_SRC) $(MISC_SINK_SRC) $(MISC_FILTER_SRC) \
#    $(TRANSPORT_STREAM_TRICK_PLAY_SRC) \
#    $(RTP_MEDIA_SRC) $(RTP_AUDIO_SINK_SRC) $(SIP_SRC) \
#    $(SESSION_MEDIA_SRC) $(QUICKTIME_SRC) $(AVI_SRC)


FILE_VIEW_INCLUDES_FOLDER= \
    include\UsageEnvironment.hh \
    include\HashTable.hh \
    include\strDup.hh \
    include\BasicUsageEnvironment0.hh \
    include\BasicUsageEnvironment.hh \
    include\DelayQueue.hh \
    include\BasicHashTable.hh \
    include\GroupsockHelper.hh \
    include\GroupEId.hh \
    include\Groupsock.hh \
    include\NetInterface.hh \
    include\NetAddress.hh \
    include\IOHandlers.hh \
    include\Media.hh \
    include\MediaSource.hh \
    include\FramedSource.hh \
    include\FramedFilter.hh \
    include\MediaSink.hh \
    include\BasicUDPSink.hh \
    include\MPEGVideoStreamFramer.hh \
    include\MPEG4VideoStreamFramer.hh \
    include\MPEG4VideoStreamDiscreteFramer.hh \
    MPEGVideoStreamParser.hh \
    include\MPEG4ESVideoRTPSource.hh \
    include\MPEG4GenericRTPSource.hh \
    include\MPEG4LATMAudioRTPSource.hh \
    include\MPEG4GenericRTPSink.hh \
    include\MPEG4ESVideoRTPSink.hh \
    include\H264VideoStreamFramer.hh \
    include\H264VideoStreamDiscreteFramer.hh \
    include\H264or5VideoStreamFramer.hh \
    include\H264or5VideoStreamDiscreteFramer.hh \
    include\H265VideoStreamFramer.hh \
    include\H265VideoStreamDiscreteFramer.hh \
    include\H264VideoRTPSource.hh \
    include\H265VideoRTPSource.hh \
    include\H264or5VideoRTPSink.hh \
    include\H264VideoRTPSink.hh \
    include\H265VideoRTPSink.hh \
    include\RTCP.hh \
    rtcp_from_spec.h \
    include\GenericMediaServer.hh \
    include\RTSPServer.hh \
    include\RTSPClient.hh \
    include\RTSPCommon.hh \
    include\RTSPRegisterSender.hh \
    include\RTPSource.hh \
    include\MultiFramedRTPSource.hh \
    include\SimpleRTPSource.hh \
    include\RTPSink.hh \
    include\MultiFramedRTPSink.hh \
    include\VideoRTPSink.hh \
    include\RTPInterface.hh \
    include\MediaSession.hh \
    include\ServerMediaSession.hh \
    include\OnDemandServerMediaSubsession.hh \
    include\ProxyServerMediaSession.hh \
    StreamParser.hh \
    include\BitVector.hh \
    include\DigestAuthentication.hh \
    include\ourMD5.hh \
    include\Base64.hh \
    include\Locale.hh \

FILE_VIEW_RESOURCE_FOLDER=  \
    ..\changelog.txt