2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:20 +04: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 21:20:41 +04:00
|
|
|
if CONFIG['MOZ_B2G_BT']:
|
2013-08-22 10:56:01 +04:00
|
|
|
LIBXUL_LIBRARY = True
|
2013-03-19 22:47:00 +04:00
|
|
|
MODULE = 'dom'
|
2013-08-15 17:12:40 +04:00
|
|
|
LIBRARY_NAME = 'dombluetooth_s'
|
2013-03-12 09:00:00 +04:00
|
|
|
XPIDL_MODULE = 'dom_bluetooth'
|
2013-03-12 21:20:41 +04:00
|
|
|
XPIDL_SOURCES += [
|
2013-05-16 20:53:27 +04:00
|
|
|
'nsIDOMBluetoothDevice.idl',
|
2013-05-17 02:37:18 +04:00
|
|
|
'nsIDOMBluetoothDeviceEvent.idl',
|
2013-08-02 14:33:15 +04:00
|
|
|
'nsIDOMBluetoothStatusChangedEvent.idl',
|
2013-03-12 21:20:41 +04:00
|
|
|
]
|
|
|
|
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-24 03:00:23 +04:00
|
|
|
'BluetoothA2dpManager.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'BluetoothAdapter.cpp',
|
|
|
|
'BluetoothDevice.cpp',
|
|
|
|
'BluetoothHfpManager.cpp',
|
2013-08-12 13:32:25 +04:00
|
|
|
'BluetoothHidManager.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'BluetoothManager.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'BluetoothOppManager.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'BluetoothProfileController.cpp',
|
|
|
|
'BluetoothPropertyContainer.cpp',
|
|
|
|
'BluetoothReplyRunnable.cpp',
|
|
|
|
'BluetoothService.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'BluetoothSocket.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'BluetoothUnixSocketConnector.cpp',
|
|
|
|
'BluetoothUtils.cpp',
|
|
|
|
'BluetoothUuid.cpp',
|
|
|
|
'ipc/BluetoothChild.cpp',
|
|
|
|
'ipc/BluetoothParent.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'ipc/BluetoothServiceChildProcess.cpp',
|
|
|
|
'ObexBase.cpp'
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_B2G_RIL']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-09-09 15:54:56 +04:00
|
|
|
'BluetoothRilListener.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2013-10-23 10:12:24 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
if CONFIG['MOZ_B2G_BT_BLUEZ']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-23 10:12:24 +04:00
|
|
|
'gonk/BluetoothGonkService.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'linux/BluetoothDBusService.cpp',
|
2013-10-23 10:12:24 +04:00
|
|
|
]
|
|
|
|
if CONFIG['MOZ_B2G_BT_BLUEDROID']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-23 10:12:24 +04:00
|
|
|
'BluetoothServiceBluedroid.cpp',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
else:
|
|
|
|
if CONFIG['MOZ_ENABLE_DBUS']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-23 10:12:24 +04:00
|
|
|
'linux/BluetoothDBusService.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS.mozilla.dom.bluetooth.ipc += [
|
2013-06-26 22:51:06 +04:00
|
|
|
'ipc/BluetoothMessageUtils.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.dom.bluetooth += [
|
|
|
|
'BluetoothCommon.h',
|
|
|
|
]
|
|
|
|
|
2013-07-01 17:56:28 +04:00
|
|
|
IPDL_SOURCES += [
|
|
|
|
'ipc/BluetoothTypes.ipdlh',
|
|
|
|
'ipc/PBluetooth.ipdl',
|
|
|
|
'ipc/PBluetoothRequest.ipdl',
|
|
|
|
]
|
2013-08-22 10:55:59 +04:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-10-24 01:20:55 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../base',
|
|
|
|
'../network/src',
|
|
|
|
'../system/gonk',
|
|
|
|
]
|
2013-10-02 21:17:55 +04:00
|
|
|
|
2013-10-24 01:20:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|