| 1 | ############################################################ |
|---|
| 2 | # (c)2008-2011 Broadcom Corporation |
|---|
| 3 | # |
|---|
| 4 | # This program is the proprietary software of Broadcom Corporation and/or its licensors, |
|---|
| 5 | # and may only be used, duplicated, modified or distributed pursuant to the terms and |
|---|
| 6 | # conditions of a separate, written license agreement executed between you and Broadcom |
|---|
| 7 | # (an "Authorized License"). Except as set forth in an Authorized License, Broadcom grants |
|---|
| 8 | # no license (express or implied), right to use, or waiver of any kind with respect to the |
|---|
| 9 | # Software, and Broadcom expressly reserves all rights in and to the Software and all |
|---|
| 10 | # intellectual property rights therein. IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU |
|---|
| 11 | # HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY |
|---|
| 12 | # NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE. |
|---|
| 13 | # |
|---|
| 14 | # Except as expressly set forth in the Authorized License, |
|---|
| 15 | # |
|---|
| 16 | # 1. This program, including its structure, sequence and organization, constitutes the valuable trade |
|---|
| 17 | # secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof, |
|---|
| 18 | # and to use this information only in connection with your use of Broadcom integrated circuit products. |
|---|
| 19 | # |
|---|
| 20 | # 2. TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" |
|---|
| 21 | # AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR |
|---|
| 22 | # WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO |
|---|
| 23 | # THE SOFTWARE. BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES |
|---|
| 24 | # OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, |
|---|
| 25 | # LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION |
|---|
| 26 | # OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF |
|---|
| 27 | # USE OR PERFORMANCE OF THE SOFTWARE. |
|---|
| 28 | # |
|---|
| 29 | # 3. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS |
|---|
| 30 | # LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR |
|---|
| 31 | # EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR |
|---|
| 32 | # USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF |
|---|
| 33 | # THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT |
|---|
| 34 | # ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE |
|---|
| 35 | # LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF |
|---|
| 36 | # ANY LIMITED REMEDY. |
|---|
| 37 | # |
|---|
| 38 | # $brcm_Workfile: b_playback_ip_lib.inc $ |
|---|
| 39 | # $brcm_Revision: 48 $ |
|---|
| 40 | # $brcm_Date: 9/30/11 9:46a $ |
|---|
| 41 | # |
|---|
| 42 | # Module Description: |
|---|
| 43 | # |
|---|
| 44 | # Revision History: |
|---|
| 45 | # |
|---|
| 46 | # Created: |
|---|
| 47 | # |
|---|
| 48 | # $brcm_Log: /nexus/lib/playback_ip/b_playback_ip_lib.inc $ |
|---|
| 49 | # |
|---|
| 50 | # 48 9/30/11 9:46a ssood |
|---|
| 51 | # SW7346-341: keep netrecord function outside the live streaming so that |
|---|
| 52 | # brutus can build |
|---|
| 53 | # |
|---|
| 54 | # 47 9/29/11 6:00p ssood |
|---|
| 55 | # SW7346-341: encapsulate nexus dependent changes so that non-nexus |
|---|
| 56 | # platforms continue to build |
|---|
| 57 | # |
|---|
| 58 | # 46 6/30/11 9:13a ssood |
|---|
| 59 | # SW7231-268: Add FLV container support |
|---|
| 60 | # |
|---|
| 61 | # 45 4/22/11 7:47p ssood |
|---|
| 62 | # SW7420-1616: pass-in LIVE_STREAMING_SUPPORT flag to ip library |
|---|
| 63 | # |
|---|
| 64 | # 44 12/23/10 5:23p ssood |
|---|
| 65 | # SW7420-1257: Set RTP Marker bit in last RTP packet belonging to an AV |
|---|
| 66 | # frame to allow receiver distiniguish frame boudnaries for ES streams + |
|---|
| 67 | # changes to include new camera APIs |
|---|
| 68 | # |
|---|
| 69 | # 43 12/14/10 12:07p ssood |
|---|
| 70 | # SW7420-1217: add support for encryption key parsing, downloading and |
|---|
| 71 | # receiving encrypted content |
|---|
| 72 | # |
|---|
| 73 | # 42 11/24/10 2:58p ssood |
|---|
| 74 | # SW7420-1257: Video Conferencing Demo: add support for receiving input |
|---|
| 75 | # camera input and stream it out |
|---|
| 76 | # |
|---|
| 77 | # 41 10/27/10 8:28p ssood |
|---|
| 78 | # SW7420-1217: initial check-in for HLS support |
|---|
| 79 | # |
|---|
| 80 | # 40 9/7/10 11:32a ssood |
|---|
| 81 | # SW7420-883: define PLAYBACK_IP_SUPPORT by default |
|---|
| 82 | # |
|---|
| 83 | # 39 7/30/10 3:19p ssood |
|---|
| 84 | # SW7420-883: add support to transcode/pass-thru audio to IP Streamer |
|---|
| 85 | # |
|---|
| 86 | # 38 5/18/10 1:30p sgundime |
|---|
| 87 | # SW7420-559: set env. variable EROUTER_SUPPORT=n to build dms stand |
|---|
| 88 | # alone with out eRouter support. |
|---|
| 89 | # |
|---|
| 90 | # 37 3/4/10 12:17p ssood |
|---|
| 91 | # SW7420-561: merge from branch to mainline |
|---|
| 92 | # |
|---|
| 93 | # SW7420-561/1 2/16/10 10:11a ssood |
|---|
| 94 | # SW7420-561: initial cut of new APIs to meet Media Browser, DMR, & |
|---|
| 95 | # Philips RTSP requirements |
|---|
| 96 | # |
|---|
| 97 | # 36 1/29/10 6:12p ismailk |
|---|
| 98 | # SW7420-559: Enable EROUTER_SUPPORT flag to enable the WAN unicast |
|---|
| 99 | # ioctl. |
|---|
| 100 | # |
|---|
| 101 | # 35 1/18/10 5:02p ssood |
|---|
| 102 | # SW7420-454: Add support to create index w/o using the createindex |
|---|
| 103 | # utility |
|---|
| 104 | # |
|---|
| 105 | # 35 1/18/10 5:00p ssood |
|---|
| 106 | # SW7420-454: Add support to create index w/o using the createindex |
|---|
| 107 | # utility |
|---|
| 108 | # |
|---|
| 109 | # 34 12/30/09 9:13p dliu |
|---|
| 110 | # SW7405-3400: Add RVU build flag |
|---|
| 111 | # |
|---|
| 112 | # 33 12/30/09 1:19a ssood |
|---|
| 113 | # SW7420-454: compile in ASF & AVI related files |
|---|
| 114 | # |
|---|
| 115 | # 32 12/10/09 7:29p ssood |
|---|
| 116 | # SW7420-502: Added compile time flags to enable chunk encoding support |
|---|
| 117 | # on the server |
|---|
| 118 | # |
|---|
| 119 | # 31 12/8/09 4:15p ssood |
|---|
| 120 | # SW7420-454: use the default nav player |
|---|
| 121 | # |
|---|
| 122 | # 30 12/8/09 2:04p ssood |
|---|
| 123 | # SW7420-454: add include path for nav indexer & player header files |
|---|
| 124 | # |
|---|
| 125 | # 29 12/8/09 1:37p ssood |
|---|
| 126 | # SW7420-454: compile nav indexer/player related files |
|---|
| 127 | # |
|---|
| 128 | # 28 11/17/09 4:11p ssood |
|---|
| 129 | # SW7420-340: include BFILE_STDIO files |
|---|
| 130 | # |
|---|
| 131 | # 27 11/17/09 2:58p ssood |
|---|
| 132 | # SW7420-454: Enhance IP Streamer to stream files from local disk |
|---|
| 133 | # |
|---|
| 134 | # 26 10/20/09 6:33p ssood |
|---|
| 135 | # SW7420-340: remove nexus playback, audio, video decoder dependencies |
|---|
| 136 | # for SMS compilation |
|---|
| 137 | # |
|---|
| 138 | # 25 8/14/09 4:37p ssood |
|---|
| 139 | # PR53773: Adding support for AVI playback over HTTP |
|---|
| 140 | # |
|---|
| 141 | # 24 6/24/09 4:38p ssood |
|---|
| 142 | # PR53773: simplified the OpenSSL directory path |
|---|
| 143 | # |
|---|
| 144 | # 23 6/11/09 10:56a leisun |
|---|
| 145 | # PR 55907: Add HW M2M feature for DTCP-IP |
|---|
| 146 | # |
|---|
| 147 | # 22 6/10/09 11:02a leisun |
|---|
| 148 | # PR 55693: checking in DTCP-IP lib |
|---|
| 149 | # |
|---|
| 150 | # 21 6/10/09 11:00a leisun |
|---|
| 151 | # PR 55693: checking in DTCP-IP lib |
|---|
| 152 | # |
|---|
| 153 | # 20 5/8/09 2:54p lwhite |
|---|
| 154 | # PR53373: Removed SSL compilation |
|---|
| 155 | # |
|---|
| 156 | # 19 5/6/09 3:36p lwhite |
|---|
| 157 | # PR53373: Improved SSL library configuration |
|---|
| 158 | # |
|---|
| 159 | # 18 5/5/09 5:38p lwhite |
|---|
| 160 | # PR53373: Add SSL library configuration |
|---|
| 161 | # |
|---|
| 162 | # 17 5/1/09 12:00p ssood |
|---|
| 163 | # PR53773: RAD/EA specific changes: EA data is in not yet SSL encrypted |
|---|
| 164 | # |
|---|
| 165 | # 16 4/13/09 10:05a lwhite |
|---|
| 166 | # PR53773: fixed dependencies |
|---|
| 167 | # |
|---|
| 168 | # 15 4/3/09 3:05p lwhite |
|---|
| 169 | # PR53773: Added SSL support |
|---|
| 170 | # |
|---|
| 171 | # 14 4/2/09 11:36p ssood |
|---|
| 172 | # PR53773 : changes to support security framework for SSL, DTCP-IP, |
|---|
| 173 | # RAD/ES protocols |
|---|
| 174 | # |
|---|
| 175 | # 13 11/7/08 2:55p jrubio |
|---|
| 176 | # PR48782: adding netrecord functions |
|---|
| 177 | # |
|---|
| 178 | # 12 11/5/08 8:54p ssood |
|---|
| 179 | # PR48146: Enabling MP4 by default |
|---|
| 180 | # |
|---|
| 181 | # 11 10/31/08 12:30p jjordan |
|---|
| 182 | # PR47230: Add TTS Pacing |
|---|
| 183 | # |
|---|
| 184 | # 10 10/31/08 11:39a ssood |
|---|
| 185 | # PR48146: cleaning up support needed for MP4/ASF compilation |
|---|
| 186 | # |
|---|
| 187 | # 9 10/28/08 1:43p ssood |
|---|
| 188 | # PR48146: conditionally compiling HTTP MP4 support w/ HTTP_MP4_SUPPORT |
|---|
| 189 | # env variable |
|---|
| 190 | # |
|---|
| 191 | # 8 10/27/08 11:45a ssood |
|---|
| 192 | # PR45431: added support to compile probe interface of bmedia |
|---|
| 193 | # |
|---|
| 194 | # 7 8/14/08 12:29p ssood |
|---|
| 195 | # PR45431: fixed compilation errors w/ LIVEMEDIA_SUPPORT=n |
|---|
| 196 | # |
|---|
| 197 | # 6 8/11/08 10:13a ssood |
|---|
| 198 | # PR45431: Add HTTP playback support for ASF content |
|---|
| 199 | # |
|---|
| 200 | # 5 8/5/08 1:12p ssood |
|---|
| 201 | # PR42739: splitting up UDP & RTP Processing code into separate sub- |
|---|
| 202 | # modules |
|---|
| 203 | # |
|---|
| 204 | # 4 7/24/08 1:23p ssood |
|---|
| 205 | # PR42739: changes for supporting example app for IP Applib |
|---|
| 206 | # |
|---|
| 207 | # 3 7/21/08 4:06p ssood |
|---|
| 208 | # PR42739: code changes to simplify ip app lib interface |
|---|
| 209 | # |
|---|
| 210 | # 2 6/13/08 7:29p ssood |
|---|
| 211 | # PR42739: Adding support for HTTP & RTSP playback |
|---|
| 212 | # |
|---|
| 213 | ############################################################ |
|---|
| 214 | |
|---|
| 215 | # |
|---|
| 216 | # Conditional options for this makefile |
|---|
| 217 | # |
|---|
| 218 | # None at this time |
|---|
| 219 | # |
|---|
| 220 | |
|---|
| 221 | # |
|---|
| 222 | # Identify this library |
|---|
| 223 | # |
|---|
| 224 | B_LIBS += B_PLAYBACK_IP_LIB |
|---|
| 225 | |
|---|
| 226 | export PLAYBACK_IP_SUPPORT=y |
|---|
| 227 | ifeq ($(PLAYBACK_IP_SUPPORT),y) |
|---|
| 228 | export HTTP_MP4_SUPPORT=y |
|---|
| 229 | B_PLAYBACK_IP_LIB_DEFINES += B_HAS_HTTP_MP4_SUPPORT |
|---|
| 230 | endif |
|---|
| 231 | |
|---|
| 232 | ifeq ($(VIDEO_CONFERENCING_SUPPORT), y) |
|---|
| 233 | export VIDEO_CONFERENCING_SUPPORT=y |
|---|
| 234 | B_PLAYBACK_IP_LIB_DEFINES += B_HAS_VIDEO_CONFERENCING_SUPPORT |
|---|
| 235 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../AppLibs/broadcom/bvc/src/AVCapture |
|---|
| 236 | endif |
|---|
| 237 | |
|---|
| 238 | ifeq ($(HLS_PROTOCOL_SUPPORT), y) |
|---|
| 239 | export HLS_PROTOCOL_SUPPORT=y |
|---|
| 240 | export HTTP_AES_SUPPORT=y |
|---|
| 241 | B_PLAYBACK_IP_LIB_DEFINES += B_HAS_HLS_PROTOCOL_SUPPORT |
|---|
| 242 | B_PLAYBACK_IP_LIB_DEFINES += B_HAS_HTTP_AES_SUPPORT |
|---|
| 243 | endif |
|---|
| 244 | |
|---|
| 245 | ifeq ($(SMS_GATEWAY), y) |
|---|
| 246 | # When compiling for SMS platforms, .inc files of Nexus Playback, Audio, Video modules are not included. |
|---|
| 247 | # Thus, we explictly include their paths for header files. |
|---|
| 248 | B_PLAYBACK_IP_LIB_DEFINES += B_HAS_SMS_GATEWAY |
|---|
| 249 | |
|---|
| 250 | ifneq ($(EROUTER_SUPPORT),n) |
|---|
| 251 | B_PLAYBACK_IP_LIB_DEFINES += EROUTER_SUPPORT |
|---|
| 252 | endif |
|---|
| 253 | |
|---|
| 254 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(NEXUS_TOP)/modules/playback/include |
|---|
| 255 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(NEXUS_TOP)/modules/video_decoder/${BCHP_CHIP}/include |
|---|
| 256 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(NEXUS_TOP)/modules/audio/${BCHP_CHIP}/include |
|---|
| 257 | B_PLAYBACK_IP_LIB_DEFINES += NEXUS_HAS_PLAYBACK |
|---|
| 258 | endif |
|---|
| 259 | |
|---|
| 260 | # |
|---|
| 261 | # Define source files in this library |
|---|
| 262 | # |
|---|
| 263 | B_PLAYBACK_IP_LIB_SOURCES += \ |
|---|
| 264 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip.c \ |
|---|
| 265 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip_udp.c \ |
|---|
| 266 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip_rtp.c \ |
|---|
| 267 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip_file_streaming.c \ |
|---|
| 268 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip_live_streaming.c \ |
|---|
| 269 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip_utils.c \ |
|---|
| 270 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip_tts_throttle.c \ |
|---|
| 271 | $(B_LIB_TOP)/../../BSEAV/lib/rtp/brtp_spf.c \ |
|---|
| 272 | $(B_LIB_TOP)/../../BSEAV/lib/rtp/btimestamp.c |
|---|
| 273 | ifeq ($(HTTP_MP4_SUPPORT), y) |
|---|
| 274 | B_PLAYBACK_IP_LIB_SOURCES += \ |
|---|
| 275 | $(B_LIB_TOP)/../../BSEAV/lib/mpeg2_ts_parse/ts_priv.c \ |
|---|
| 276 | $(B_LIB_TOP)/../../BSEAV/lib/mpeg2_ts_parse/ts_psi.c \ |
|---|
| 277 | $(B_LIB_TOP)/../../BSEAV/lib/mpeg2_ts_parse/ts_pmt.c \ |
|---|
| 278 | $(B_LIB_TOP)/../../BSEAV/lib/mpeg2_ts_parse/ts_pat.c \ |
|---|
| 279 | $(B_LIB_TOP)/../../BSEAV/lib/tspsi/tspsi_validate.c |
|---|
| 280 | endif |
|---|
| 281 | |
|---|
| 282 | # bcmplayer & index creation related files |
|---|
| 283 | B_PLAYBACK_IP_LIB_DEFINES += CMDLINE_TEST |
|---|
| 284 | B_PLAYBACK_IP_LIB_DEFINES += B_IS_SOFTINDEXER |
|---|
| 285 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/bcmplayer/include |
|---|
| 286 | B_PLAYBACK_IP_LIB_SOURCES += \ |
|---|
| 287 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip_nav_indexer.c\ |
|---|
| 288 | $(B_LIB_TOP)/../../BSEAV/lib/bcmplayer/src/tsindexer.c\ |
|---|
| 289 | $(B_LIB_TOP)/../../BSEAV/lib/bcmplayer/src/bcmindexer.c |
|---|
| 290 | |
|---|
| 291 | # we dont compile these files for SMS as they have depdendencies on the AV decoder headers which are not included in SMS |
|---|
| 292 | ifneq ($(SMS_GATEWAY), y) |
|---|
| 293 | B_PLAYBACK_IP_LIB_SOURCES += \ |
|---|
| 294 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip_http.c \ |
|---|
| 295 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip_trickmode.c |
|---|
| 296 | endif |
|---|
| 297 | ifeq ($(HLS_PROTOCOL_SUPPORT), y) |
|---|
| 298 | B_PLAYBACK_IP_LIB_SOURCES += \ |
|---|
| 299 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip_hls.c |
|---|
| 300 | endif |
|---|
| 301 | |
|---|
| 302 | ifeq ($(HTTP_AES_SUPPORT), y) |
|---|
| 303 | B_PLAYBACK_IP_LIB_SOURCES += \ |
|---|
| 304 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip_aes.c |
|---|
| 305 | endif |
|---|
| 306 | |
|---|
| 307 | ifeq ($(LIVEMEDIA_SUPPORT), y) |
|---|
| 308 | B_PLAYBACK_IP_LIB_SOURCES += \ |
|---|
| 309 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip_lm_helper.cpp \ |
|---|
| 310 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip_rtsp.c \ |
|---|
| 311 | $(B_LIB_TOP)/playback_ip/src/b_playback_ip_lm_rtp_src.cpp |
|---|
| 312 | endif |
|---|
| 313 | |
|---|
| 314 | ifeq ($(LIVE_STREAMING_SUPPORT), y) |
|---|
| 315 | B_PLAYBACK_IP_LIB_DEFINES += B_HAS_LIVE_STREAMING |
|---|
| 316 | endif |
|---|
| 317 | |
|---|
| 318 | ifeq ($(DTCP_IP_SUPPORT), y) |
|---|
| 319 | B_PLAYBACK_IP_LIB_DEFINES += B_HAS_DTCP_IP |
|---|
| 320 | B_PLAYBACK_IP_LIB_SOURCES += $(B_LIB_TOP)/playback_ip/src/b_playback_ip_dtcp_ip.c |
|---|
| 321 | endif |
|---|
| 322 | |
|---|
| 323 | ifeq ($(SSL_SUPPORT), y) |
|---|
| 324 | B_PLAYBACK_IP_LIB_DEFINES += B_HAS_SSL |
|---|
| 325 | B_PLAYBACK_IP_LIB_SOURCES += $(B_LIB_TOP)/playback_ip/src/b_playback_ip_ssl.c |
|---|
| 326 | endif |
|---|
| 327 | |
|---|
| 328 | ifeq ($(RAD_EA_SUPPORT), y) |
|---|
| 329 | B_PLAYBACK_IP_LIB_DEFINES += B_HAS_RAD_EA |
|---|
| 330 | B_PLAYBACK_IP_LIB_SOURCES += $(B_LIB_TOP)/playback_ip/src/b_playback_ip_rad_ea.c \ |
|---|
| 331 | $(B_LIB_TOP)/playback_ip/src/cryptdes.cpp \ |
|---|
| 332 | $(B_LIB_TOP)/playback_ip/src/radeadecoder.cpp |
|---|
| 333 | endif |
|---|
| 334 | |
|---|
| 335 | ifeq ($(HTTP_MP4_SUPPORT), y) |
|---|
| 336 | # |
|---|
| 337 | # Add media related sources |
|---|
| 338 | # |
|---|
| 339 | MEDIA_MODULES := BFLV_PROBE BMEDIA_PROBE BASF_PROBE BAVI_PROBE BFILE_STDIO |
|---|
| 340 | ifeq ($(SMS_GATEWAY), y) |
|---|
| 341 | MEDIA_MODULES += BMEDIA_PLAYER BFILE BFILE_CACHE BFILE_MEDIA B_MEDIA_NAV_PLAYER BASF_PLAYER BAVI_PLAYER |
|---|
| 342 | endif |
|---|
| 343 | B_PLAYBACK_IP_LIB_SOURCES += $(sort $(foreach module, $(MEDIA_MODULES), $($(module)_SOURCES))) |
|---|
| 344 | endif |
|---|
| 345 | |
|---|
| 346 | ifeq ($(IP_STREAMER_DEMO_MODE), y) |
|---|
| 347 | B_PLAYBACK_IP_LIB_DEFINES += IP_STREAMER_DEMO_MODE |
|---|
| 348 | endif |
|---|
| 349 | |
|---|
| 350 | # |
|---|
| 351 | # Define public include path(s) for this library |
|---|
| 352 | # |
|---|
| 353 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/os/include $(B_LIB_TOP)/os/include/linuxuser |
|---|
| 354 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/netaccel/include |
|---|
| 355 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/api/include |
|---|
| 356 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/utils |
|---|
| 357 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/rtp |
|---|
| 358 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/tspsi |
|---|
| 359 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/mpeg2_ts_parse |
|---|
| 360 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/bfile |
|---|
| 361 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/media |
|---|
| 362 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/asf |
|---|
| 363 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/media/flv |
|---|
| 364 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(BAVI_INCLUDES) |
|---|
| 365 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../modules/file/include/priv |
|---|
| 366 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/livemedia/blive_ext/include |
|---|
| 367 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/livemedia/live/liveMedia/include |
|---|
| 368 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/livemedia/live/groupsock/include |
|---|
| 369 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/livemedia/live/UsageEnvironment/include |
|---|
| 370 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../BSEAV/lib/livemedia/live/BasicUsageEnvironment/include |
|---|
| 371 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../../magnum/commonutils/lst |
|---|
| 372 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/../base/include |
|---|
| 373 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/playback_ip/include |
|---|
| 374 | ifeq ($(HTTP_MP4_SUPPORT), y) |
|---|
| 375 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(sort $(foreach module, $(MEDIA_MODULES), $($(module)_INCLUDES))) |
|---|
| 376 | endif |
|---|
| 377 | ifeq ($(DTCP_IP_SUPPORT),y) |
|---|
| 378 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(B_LIB_TOP)/dtcp_ip/include |
|---|
| 379 | endif |
|---|
| 380 | |
|---|
| 381 | |
|---|
| 382 | # |
|---|
| 383 | # Define private include path(s) for this library |
|---|
| 384 | # |
|---|
| 385 | B_PLAYBACK_IP_LIB_PRIVATE_INCLUDES += $(B_LIB_TOP)/playback_ip/src \ |
|---|
| 386 | $(B_LIB_TOP)/playback_ip/src/$(SAMPLE) |
|---|
| 387 | |
|---|
| 388 | # |
|---|
| 389 | # Define other libs that this library is dependent upon. |
|---|
| 390 | # This will check for cyclic dependencies and setup include paths |
|---|
| 391 | # |
|---|
| 392 | B_PLAYBACK_IP_LIB_DEPENDENCIES := B_OS_LIB |
|---|
| 393 | |
|---|
| 394 | ifeq ($(SSL_SUPPORT), y) |
|---|
| 395 | OPENSSL_DIR := $(BSEAV)/lib/openssl/src |
|---|
| 396 | B_PLAYBACK_IP_LIB_PUBLIC_INCLUDES += $(OPENSSL_DIR)/include |
|---|
| 397 | endif |
|---|
| 398 | |
|---|
| 399 | # |
|---|
| 400 | # Define extra C definitions |
|---|
| 401 | # |
|---|
| 402 | #B_PLAYBACK_IP_LIB_DEFINES += ## N/A for this library |
|---|
| 403 | ifeq ($(NETACCEL_SUPPORT), y) |
|---|
| 404 | B_PLAYBACK_IP_LIB_DEFINES += B_HAS_NETACCEL |
|---|
| 405 | endif |
|---|
| 406 | |
|---|
| 407 | ifeq ($(LIVEMEDIA_SUPPORT), y) |
|---|
| 408 | B_PLAYBACK_IP_LIB_DEFINES += LIVEMEDIA_SUPPORT |
|---|
| 409 | endif |
|---|
| 410 | |
|---|
| 411 | ifeq ($(B_HAS_PLAYPUMP_IP), y) |
|---|
| 412 | B_PLAYBACK_IP_LIB_DEFINES += B_HAS_PLAYPUMP_IP |
|---|
| 413 | endif |
|---|
| 414 | |
|---|
| 415 | ifeq ($(MEDIA_ASF_SUPPORT), y) |
|---|
| 416 | B_PLAYBACK_IP_LIB_DEFINES += B_HAS_ASF |
|---|
| 417 | endif |
|---|
| 418 | |
|---|
| 419 | ifeq ($(MEDIA_FLV_SUPPORT), y) |
|---|
| 420 | B_PLAYBACK_IP_LIB_DEFINES += B_HAS_FLV |
|---|
| 421 | endif |
|---|
| 422 | |
|---|
| 423 | ifeq ($(MEDIA_AVI_SUPPORT), y) |
|---|
| 424 | B_PLAYBACK_IP_LIB_DEFINES += B_HAS_AVI |
|---|
| 425 | #B_PLAYBACK_IP_LIB_SOURCES += $(sort $(BAVI_PROBE_SOURCES)) |
|---|
| 426 | endif |
|---|
| 427 | |
|---|
| 428 | ifeq ($(USE_HTTP_CHUNK_ENCODING),y) |
|---|
| 429 | B_PLAYBACK_IP_LIB_DEFINES += B_USE_HTTP_CHUNK_ENCODING |
|---|
| 430 | endif |
|---|
| 431 | |
|---|
| 432 | |
|---|
| 433 | ifeq ($(DTCP_IP_HARDWARE_DECRYPTION), y) |
|---|
| 434 | B_PLAYBACK_IP_LIB_DEFINES += B_DTCP_IP_HW_DECRYPTION |
|---|
| 435 | endif |
|---|
| 436 | |
|---|
| 437 | ifeq ($(RVU_SUPPORT), y) |
|---|
| 438 | B_PLAYBACK_IP_LIB_DEFINES += RVU_SUPPORT |
|---|
| 439 | endif |
|---|
| 440 | |
|---|
| 441 | |
|---|
| 442 | B_PLAYBACK_IP_LIB_DEFINES += $(sort $(foreach module, $(MEDIA_MODULES), $($(module)_DEFINES))) |
|---|
| 443 | # |
|---|
| 444 | # Define possible options - this is only for debug, it does _not_ actually define them. |
|---|
| 445 | # |
|---|
| 446 | #B_PLAYBACK_IP_LIB_OPTIONS += ## N/A for this library |
|---|
| 447 | |
|---|