|
1 # vim: set filetype=python: |
|
2 # This Source Code Form is subject to the terms of the Mozilla Public |
|
3 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
5 |
|
6 EXPORTS.mozilla.net += [ |
|
7 'controller/RtspController.h', |
|
8 'controller/RtspControllerChild.h', |
|
9 'controller/RtspControllerParent.h', |
|
10 'controller/RtspMetaData.h', |
|
11 'rtsp/RTSPSource.h', |
|
12 'RtspChannelChild.h', |
|
13 'RtspChannelParent.h', |
|
14 'RtspHandler.h', |
|
15 ] |
|
16 |
|
17 # These files cannot be built in unified mode because they force NSPR logging. |
|
18 SOURCES += [ |
|
19 'controller/RtspController.cpp', |
|
20 'controller/RtspControllerChild.cpp', |
|
21 'controller/RtspControllerParent.cpp', |
|
22 'controller/RtspMetaData.cpp', |
|
23 'RtspChannelChild.cpp', |
|
24 'RtspChannelParent.cpp', |
|
25 'RtspHandler.cpp', |
|
26 ] |
|
27 |
|
28 # Android sources |
|
29 SOURCES += [ |
|
30 'rtsp/AAMRAssembler.cpp', |
|
31 'rtsp/AAVCAssembler.cpp', |
|
32 'rtsp/AH263Assembler.cpp', |
|
33 'rtsp/AMPEG4AudioAssembler.cpp', |
|
34 'rtsp/AMPEG4ElementaryAssembler.cpp', |
|
35 'rtsp/APacketSource.cpp', |
|
36 'rtsp/ARawAudioAssembler.cpp', |
|
37 'rtsp/ARTPAssembler.cpp', |
|
38 'rtsp/ARTPConnection.cpp', |
|
39 'rtsp/ARTPSource.cpp', |
|
40 'rtsp/ARTPWriter.cpp', |
|
41 'rtsp/ARTSPConnection.cpp', |
|
42 'rtsp/ASessionDescription.cpp', |
|
43 'rtsp/RTSPSource.cpp', |
|
44 ] |
|
45 |
|
46 FAIL_ON_WARNINGS = True |
|
47 |
|
48 MSVC_ENABLE_PGO = True |
|
49 |
|
50 include('/ipc/chromium/chromium-config.mozbuild') |
|
51 |
|
52 FINAL_LIBRARY = 'necko' |
|
53 |
|
54 DEFINES['IMPL_NS_NET'] = True |
|
55 DEFINES['FORCE_PR_LOG'] = True |
|
56 |
|
57 LOCAL_INCLUDES += [ |
|
58 '../../base/src', |
|
59 '/content/base/src', |
|
60 'controller', |
|
61 'rtsp', |
|
62 ] |
|
63 |
|
64 for var in ('IMPL_NS_NET', 'FORCE_PR_LOG'): |
|
65 DEFINES[var] = True |
|
66 |
|
67 if CONFIG['ANDROID_VERSION'] == '15': |
|
68 CXXFLAGS += ['-I%s/frameworks/base/media/libstagefright/mpeg2ts' % CONFIG['ANDROID_SOURCE']] |
|
69 else: |
|
70 CXXFLAGS += ['-I%s/frameworks/av/media/libstagefright/mpeg2ts' % CONFIG['ANDROID_SOURCE']] |
|
71 |
|
72 CXXFLAGS += ['-Wno-multichar'] |