Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | if CONFIG['MOZ_B2G_BT']: |
michael@0 | 8 | SOURCES += [ |
michael@0 | 9 | 'BluetoothAdapter.cpp', |
michael@0 | 10 | 'BluetoothDevice.cpp', |
michael@0 | 11 | 'BluetoothHidManager.cpp', |
michael@0 | 12 | 'BluetoothManager.cpp', |
michael@0 | 13 | 'BluetoothProfileController.cpp', |
michael@0 | 14 | 'BluetoothPropertyContainer.cpp', |
michael@0 | 15 | 'BluetoothReplyRunnable.cpp', |
michael@0 | 16 | 'BluetoothService.cpp', |
michael@0 | 17 | 'BluetoothUuid.cpp', |
michael@0 | 18 | 'ipc/BluetoothChild.cpp', |
michael@0 | 19 | 'ipc/BluetoothParent.cpp', |
michael@0 | 20 | 'ipc/BluetoothServiceChildProcess.cpp', |
michael@0 | 21 | 'ObexBase.cpp' |
michael@0 | 22 | ] |
michael@0 | 23 | |
michael@0 | 24 | if CONFIG['MOZ_B2G_RIL']: |
michael@0 | 25 | SOURCES += [ |
michael@0 | 26 | 'BluetoothRilListener.cpp', |
michael@0 | 27 | ] |
michael@0 | 28 | |
michael@0 | 29 | if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': |
michael@0 | 30 | if CONFIG['MOZ_B2G_BT_BLUEZ']: |
michael@0 | 31 | SOURCES += [ |
michael@0 | 32 | 'bluez/BluetoothA2dpManager.cpp', |
michael@0 | 33 | 'bluez/BluetoothDBusService.cpp', |
michael@0 | 34 | 'bluez/BluetoothHfpManager.cpp', |
michael@0 | 35 | 'bluez/BluetoothOppManager.cpp', |
michael@0 | 36 | 'bluez/BluetoothSocket.cpp', |
michael@0 | 37 | 'bluez/BluetoothUnixSocketConnector.cpp', |
michael@0 | 38 | 'bluez/BluetoothUtils.cpp', |
michael@0 | 39 | ] |
michael@0 | 40 | LOCAL_INCLUDES += [ |
michael@0 | 41 | 'bluez', |
michael@0 | 42 | ] |
michael@0 | 43 | DEFINES['MOZ_B2G_BT_BLUEZ'] = True |
michael@0 | 44 | elif CONFIG['MOZ_B2G_BT_BLUEDROID']: |
michael@0 | 45 | SOURCES += [ |
michael@0 | 46 | 'bluedroid/BluetoothA2dpManager.cpp', |
michael@0 | 47 | 'bluedroid/BluetoothOppManager.cpp', |
michael@0 | 48 | 'bluedroid/BluetoothServiceBluedroid.cpp', |
michael@0 | 49 | 'bluedroid/BluetoothSocket.cpp', |
michael@0 | 50 | 'bluedroid/BluetoothUtils.cpp', |
michael@0 | 51 | ] |
michael@0 | 52 | LOCAL_INCLUDES += [ |
michael@0 | 53 | 'bluedroid', |
michael@0 | 54 | ] |
michael@0 | 55 | |
michael@0 | 56 | if CONFIG['MOZ_B2G_RIL']: |
michael@0 | 57 | SOURCES += [ |
michael@0 | 58 | 'bluedroid/hfp/BluetoothHfpManager.cpp', |
michael@0 | 59 | ] |
michael@0 | 60 | LOCAL_INCLUDES += [ |
michael@0 | 61 | 'bluedroid/hfp', |
michael@0 | 62 | ] |
michael@0 | 63 | else: |
michael@0 | 64 | SOURCES += [ |
michael@0 | 65 | 'bluedroid/hfp-fallback/BluetoothHfpManager.cpp', |
michael@0 | 66 | ] |
michael@0 | 67 | LOCAL_INCLUDES += [ |
michael@0 | 68 | 'bluedroid/hfp-fallback', |
michael@0 | 69 | ] |
michael@0 | 70 | |
michael@0 | 71 | DEFINES['MOZ_B2G_BT_BLUEDROID'] = True |
michael@0 | 72 | elif CONFIG['MOZ_ENABLE_DBUS']: |
michael@0 | 73 | SOURCES += [ |
michael@0 | 74 | 'bluez/BluetoothDBusService.cpp', |
michael@0 | 75 | 'bluez/BluetoothHfpManager.cpp', |
michael@0 | 76 | ] |
michael@0 | 77 | LOCAL_INCLUDES += [ |
michael@0 | 78 | 'bluez', |
michael@0 | 79 | ] |
michael@0 | 80 | DEFINES['MOZ_BLUETOOTH_DBUS'] = True |
michael@0 | 81 | DEFINES['HAVE_PTHREADS'] = True |
michael@0 | 82 | |
michael@0 | 83 | FINAL_LIBRARY = 'gklayout' |
michael@0 | 84 | |
michael@0 | 85 | LOCAL_INCLUDES += [ |
michael@0 | 86 | 'ipc', |
michael@0 | 87 | ] |
michael@0 | 88 | |
michael@0 | 89 | EXPORTS.mozilla.dom.bluetooth.ipc += [ |
michael@0 | 90 | 'ipc/BluetoothMessageUtils.h', |
michael@0 | 91 | ] |
michael@0 | 92 | |
michael@0 | 93 | EXPORTS.mozilla.dom.bluetooth += [ |
michael@0 | 94 | 'BluetoothCommon.h', |
michael@0 | 95 | ] |
michael@0 | 96 | |
michael@0 | 97 | IPDL_SOURCES += [ |
michael@0 | 98 | 'ipc/BluetoothTypes.ipdlh', |
michael@0 | 99 | 'ipc/PBluetooth.ipdl', |
michael@0 | 100 | 'ipc/PBluetoothRequest.ipdl', |
michael@0 | 101 | ] |
michael@0 | 102 | |
michael@0 | 103 | FAIL_ON_WARNINGS = True |
michael@0 | 104 | |
michael@0 | 105 | LOCAL_INCLUDES += [ |
michael@0 | 106 | '../base', |
michael@0 | 107 | '../network/src', |
michael@0 | 108 | '../system/gonk', |
michael@0 | 109 | ] |
michael@0 | 110 | |
michael@0 | 111 | include('/ipc/chromium/chromium-config.mozbuild') |