dom/bluetooth/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/bluetooth/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,111 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +if CONFIG['MOZ_B2G_BT']:
    1.11 +    SOURCES += [
    1.12 +        'BluetoothAdapter.cpp',
    1.13 +        'BluetoothDevice.cpp',
    1.14 +        'BluetoothHidManager.cpp',
    1.15 +        'BluetoothManager.cpp',
    1.16 +        'BluetoothProfileController.cpp',
    1.17 +        'BluetoothPropertyContainer.cpp',
    1.18 +        'BluetoothReplyRunnable.cpp',
    1.19 +        'BluetoothService.cpp',
    1.20 +        'BluetoothUuid.cpp',
    1.21 +        'ipc/BluetoothChild.cpp',
    1.22 +        'ipc/BluetoothParent.cpp',
    1.23 +        'ipc/BluetoothServiceChildProcess.cpp',
    1.24 +        'ObexBase.cpp'
    1.25 +    ]
    1.26 +
    1.27 +    if CONFIG['MOZ_B2G_RIL']:
    1.28 +        SOURCES += [
    1.29 +            'BluetoothRilListener.cpp',
    1.30 +        ]
    1.31 +
    1.32 +    if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
    1.33 +        if CONFIG['MOZ_B2G_BT_BLUEZ']:
    1.34 +            SOURCES += [
    1.35 +                'bluez/BluetoothA2dpManager.cpp',
    1.36 +                'bluez/BluetoothDBusService.cpp',
    1.37 +                'bluez/BluetoothHfpManager.cpp',
    1.38 +                'bluez/BluetoothOppManager.cpp',
    1.39 +                'bluez/BluetoothSocket.cpp',
    1.40 +                'bluez/BluetoothUnixSocketConnector.cpp',
    1.41 +                'bluez/BluetoothUtils.cpp',
    1.42 +            ]
    1.43 +            LOCAL_INCLUDES += [
    1.44 +                'bluez',
    1.45 +            ]
    1.46 +            DEFINES['MOZ_B2G_BT_BLUEZ'] = True
    1.47 +        elif CONFIG['MOZ_B2G_BT_BLUEDROID']:
    1.48 +            SOURCES += [
    1.49 +                'bluedroid/BluetoothA2dpManager.cpp',
    1.50 +                'bluedroid/BluetoothOppManager.cpp',
    1.51 +                'bluedroid/BluetoothServiceBluedroid.cpp',
    1.52 +                'bluedroid/BluetoothSocket.cpp',
    1.53 +                'bluedroid/BluetoothUtils.cpp',
    1.54 +            ]
    1.55 +            LOCAL_INCLUDES += [
    1.56 +                'bluedroid',
    1.57 +            ]
    1.58 +
    1.59 +            if CONFIG['MOZ_B2G_RIL']:
    1.60 +                SOURCES += [
    1.61 +                    'bluedroid/hfp/BluetoothHfpManager.cpp',
    1.62 +                ]
    1.63 +                LOCAL_INCLUDES += [
    1.64 +                    'bluedroid/hfp',
    1.65 +                ]
    1.66 +            else:
    1.67 +                SOURCES += [
    1.68 +                    'bluedroid/hfp-fallback/BluetoothHfpManager.cpp',
    1.69 +                ]
    1.70 +                LOCAL_INCLUDES += [
    1.71 +                    'bluedroid/hfp-fallback',
    1.72 +                ]
    1.73 +
    1.74 +            DEFINES['MOZ_B2G_BT_BLUEDROID'] = True
    1.75 +    elif CONFIG['MOZ_ENABLE_DBUS']:
    1.76 +        SOURCES += [
    1.77 +            'bluez/BluetoothDBusService.cpp',
    1.78 +            'bluez/BluetoothHfpManager.cpp',
    1.79 +        ]
    1.80 +        LOCAL_INCLUDES += [
    1.81 +            'bluez',
    1.82 +        ]
    1.83 +        DEFINES['MOZ_BLUETOOTH_DBUS'] = True
    1.84 +        DEFINES['HAVE_PTHREADS'] = True
    1.85 +
    1.86 +    FINAL_LIBRARY = 'gklayout'
    1.87 +
    1.88 +    LOCAL_INCLUDES += [
    1.89 +        'ipc',
    1.90 +    ]
    1.91 +
    1.92 +EXPORTS.mozilla.dom.bluetooth.ipc += [
    1.93 +    'ipc/BluetoothMessageUtils.h',
    1.94 +]
    1.95 +
    1.96 +EXPORTS.mozilla.dom.bluetooth += [
    1.97 +    'BluetoothCommon.h',
    1.98 +]
    1.99 +
   1.100 +IPDL_SOURCES += [
   1.101 +    'ipc/BluetoothTypes.ipdlh',
   1.102 +    'ipc/PBluetooth.ipdl',
   1.103 +    'ipc/PBluetoothRequest.ipdl',
   1.104 +]
   1.105 +
   1.106 +FAIL_ON_WARNINGS = True
   1.107 +
   1.108 +LOCAL_INCLUDES += [
   1.109 +    '../base',
   1.110 +    '../network/src',
   1.111 +    '../system/gonk',
   1.112 +]
   1.113 +
   1.114 +include('/ipc/chromium/chromium-config.mozbuild')

mercurial