Bumping manifests a=b2g-bump
[gecko.git] / dom / bluetooth / moz.build
blob2ce396c2c6312d81daaa296149e71b3366e1d7a4
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/.
7 if CONFIG['MOZ_B2G_BT']:
8     SOURCES += [
9         'BluetoothAdapter.cpp',
10         'BluetoothDevice.cpp',
11         'BluetoothHidManager.cpp',
12         'BluetoothManager.cpp',
13         'BluetoothProfileController.cpp',
14         'BluetoothPropertyContainer.cpp',
15         'BluetoothReplyRunnable.cpp',
16         'BluetoothService.cpp',
17         'BluetoothUuid.cpp',
18         'ipc/BluetoothChild.cpp',
19         'ipc/BluetoothParent.cpp',
20         'ipc/BluetoothServiceChildProcess.cpp',
21         'ObexBase.cpp'
22     ]
24     if CONFIG['MOZ_B2G_RIL']:
25         SOURCES += [
26             'BluetoothRilListener.cpp',
27         ]
29     if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
30         if CONFIG['MOZ_B2G_BT_BLUEZ']:
31             CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
32             SOURCES += [
33                 'bluez/BluetoothA2dpManager.cpp',
34                 'bluez/BluetoothDBusService.cpp',
35                 'bluez/BluetoothHfpManager.cpp',
36                 'bluez/BluetoothOppManager.cpp',
37                 'bluez/BluetoothSocket.cpp',
38                 'bluez/BluetoothUnixSocketConnector.cpp',
39                 'bluez/BluetoothUtils.cpp',
40             ]
41             LOCAL_INCLUDES += [
42                 'bluez',
43             ]
44             DEFINES['MOZ_B2G_BT_BLUEZ'] = True
45         elif CONFIG['MOZ_B2G_BT_BLUEDROID']:
46             SOURCES += [
47                 'bluedroid/BluetoothA2dpManager.cpp',
48                 'bluedroid/BluetoothInterface.cpp',
49                 'bluedroid/BluetoothOppManager.cpp',
50                 'bluedroid/BluetoothServiceBluedroid.cpp',
51                 'bluedroid/BluetoothSocket.cpp',
52                 'bluedroid/BluetoothUtils.cpp',
53             ]
54             LOCAL_INCLUDES += [
55                 'bluedroid',
56             ]
58             if CONFIG['MOZ_B2G_RIL']:
59                 SOURCES += [
60                     'bluedroid/hfp/BluetoothHfpManager.cpp',
61                 ]
62                 LOCAL_INCLUDES += [
63                     'bluedroid/hfp',
64                 ]
65             else:
66                 SOURCES += [
67                     'bluedroid/hfp-fallback/BluetoothHfpManager.cpp',
68                 ]
69                 LOCAL_INCLUDES += [
70                     'bluedroid/hfp-fallback',
71                 ]
73             DEFINES['MOZ_B2G_BT_BLUEDROID'] = True
74     elif CONFIG['MOZ_ENABLE_DBUS']:
75         CFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
76         CFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
77         CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
78         CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
79         SOURCES += [
80             'bluez/BluetoothDBusService.cpp',
81             'bluez/BluetoothHfpManager.cpp',
82         ]
83         LOCAL_INCLUDES += [
84             'bluez',
85         ]
86         DEFINES['MOZ_BLUETOOTH_DBUS'] = True
87         DEFINES['HAVE_PTHREADS'] = True
89     FINAL_LIBRARY = 'xul'
91     LOCAL_INCLUDES += [
92         'ipc',
93     ]
95 EXPORTS.mozilla.dom.bluetooth.ipc += [
96     'ipc/BluetoothMessageUtils.h',
99 EXPORTS.mozilla.dom.bluetooth += [
100     'BluetoothAdapter.h',
101     'BluetoothCommon.h',
102     'BluetoothDevice.h',
103     'BluetoothManager.h',
106 IPDL_SOURCES += [
107     'ipc/BluetoothTypes.ipdlh',
108     'ipc/PBluetooth.ipdl',
109     'ipc/PBluetoothRequest.ipdl',
112 FAIL_ON_WARNINGS = True
114 LOCAL_INCLUDES += [
115     '../base',
116     '../network',
117     '../system/gonk',
120 include('/ipc/chromium/chromium-config.mozbuild')