|
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
|
2 # vim: set filetype=python: |
|
3 # This Source Code Form is subject to the terms of the Mozilla Public |
|
4 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
6 |
|
7 XPIDL_MODULE = 'content_webrtc' |
|
8 |
|
9 EXPORTS += [ |
|
10 'MediaEngine.h', |
|
11 'MediaEngineDefault.h', |
|
12 'MediaTrackConstraints.h', |
|
13 ] |
|
14 |
|
15 if CONFIG['MOZ_WEBRTC']: |
|
16 EXPORTS += ['AudioOutputObserver.h', |
|
17 'LoadManager.h', |
|
18 'LoadManagerFactory.h', |
|
19 'LoadMonitor.h', |
|
20 'MediaEngineWebRTC.h'] |
|
21 UNIFIED_SOURCES += [ |
|
22 'LoadManagerFactory.cpp', |
|
23 'MediaEngineTabVideoSource.cpp', |
|
24 'MediaEngineWebRTCAudio.cpp', |
|
25 'MediaEngineWebRTCVideo.cpp', |
|
26 ] |
|
27 if CONFIG['OS_ARCH'] == 'Android' or CONFIG['OS_ARCH'] == 'Linux': |
|
28 UNIFIED_SOURCES += [ |
|
29 'LoadManager.cpp', |
|
30 'LoadMonitor.cpp', |
|
31 ] |
|
32 # MediaEngineWebRTC.cpp needs to be built separately. |
|
33 SOURCES += [ |
|
34 'MediaEngineWebRTC.cpp', |
|
35 ] |
|
36 LOCAL_INCLUDES += [ |
|
37 '/dom/base', |
|
38 '/dom/camera', |
|
39 '/media/libyuv/include', |
|
40 '/media/webrtc/signaling/src/common', |
|
41 '/media/webrtc/signaling/src/common/browser_logging', |
|
42 '/media/webrtc/trunk', |
|
43 ] |
|
44 |
|
45 XPIDL_SOURCES += [ |
|
46 'nsITabSource.idl' |
|
47 ] |
|
48 |
|
49 UNIFIED_SOURCES += [ |
|
50 'MediaEngineDefault.cpp', |
|
51 ] |
|
52 |
|
53 include('/ipc/chromium/chromium-config.mozbuild') |
|
54 |
|
55 FINAL_LIBRARY = 'gklayout' |
|
56 if CONFIG['OS_ARCH'] == 'WINNT': |
|
57 DEFINES['NOMINMAX'] = True |