2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:20 +00:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# Copyright 2013 Mozilla Foundation and Mozilla contributors
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2013-03-12 17:20:41 +00:00
|
|
|
if CONFIG['MOZ_B2G_BT']:
|
2013-08-22 06:56:01 +00:00
|
|
|
LIBXUL_LIBRARY = True
|
2013-03-19 18:47:00 +00:00
|
|
|
MODULE = 'dom'
|
2013-08-15 13:12:40 +00:00
|
|
|
LIBRARY_NAME = 'dombluetooth_s'
|
2013-03-12 05:00:00 +00:00
|
|
|
XPIDL_MODULE = 'dom_bluetooth'
|
2013-03-12 17:20:41 +00:00
|
|
|
XPIDL_SOURCES += [
|
2013-05-16 16:53:27 +00:00
|
|
|
'nsIDOMBluetoothDevice.idl',
|
2013-05-16 22:37:18 +00:00
|
|
|
'nsIDOMBluetoothDeviceEvent.idl',
|
2013-08-02 10:33:15 +00:00
|
|
|
'nsIDOMBluetoothStatusChangedEvent.idl',
|
2013-03-12 17:20:41 +00:00
|
|
|
]
|
|
|
|
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'BluetoothService.cpp',
|
|
|
|
'BluetoothManager.cpp',
|
|
|
|
'BluetoothAdapter.cpp',
|
|
|
|
'BluetoothDevice.cpp',
|
|
|
|
'BluetoothReplyRunnable.cpp',
|
|
|
|
'BluetoothPropertyContainer.cpp',
|
|
|
|
'BluetoothUtils.cpp',
|
2013-10-03 07:10:00 +00:00
|
|
|
'ipc/BluetoothChild.cpp',
|
|
|
|
'ipc/BluetoothParent.cpp',
|
|
|
|
'ipc/BluetoothServiceChildProcess.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'BluetoothUnixSocketConnector.cpp',
|
2013-06-08 15:24:29 +00:00
|
|
|
'BluetoothA2dpManager.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'BluetoothHfpManager.cpp',
|
2013-08-12 09:32:25 +00:00
|
|
|
'BluetoothHidManager.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'BluetoothOppManager.cpp',
|
|
|
|
'ObexBase.cpp',
|
|
|
|
'BluetoothUuid.cpp',
|
|
|
|
'BluetoothSocket.cpp',
|
2013-09-06 11:19:46 +00:00
|
|
|
'BluetoothProfileController.cpp'
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_B2G_RIL']:
|
|
|
|
CPP_SOURCES += [
|
2013-09-09 11:54:56 +00:00
|
|
|
'BluetoothRilListener.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
2013-10-23 06:12:24 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
if CONFIG['MOZ_B2G_BT_BLUEZ']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'linux/BluetoothDBusService.cpp',
|
|
|
|
'gonk/BluetoothGonkService.cpp',
|
|
|
|
]
|
|
|
|
if CONFIG['MOZ_B2G_BT_BLUEDROID']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'BluetoothServiceBluedroid.cpp',
|
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
else:
|
|
|
|
if CONFIG['MOZ_ENABLE_DBUS']:
|
|
|
|
CPP_SOURCES += [
|
2013-10-23 06:12:24 +00:00
|
|
|
'linux/BluetoothDBusService.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS.mozilla.dom.bluetooth.ipc += [
|
2013-06-26 18:51:06 +00:00
|
|
|
'ipc/BluetoothMessageUtils.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.dom.bluetooth += [
|
|
|
|
'BluetoothCommon.h',
|
|
|
|
]
|
|
|
|
|
2013-07-01 13:56:28 +00:00
|
|
|
IPDL_SOURCES += [
|
|
|
|
'ipc/BluetoothTypes.ipdlh',
|
|
|
|
'ipc/PBluetooth.ipdl',
|
|
|
|
'ipc/PBluetoothRequest.ipdl',
|
|
|
|
]
|
2013-08-22 06:55:59 +00:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|