dom/mobileconnection/moz.build
author Dave Townsend <dtownsend@oxymoronical.com>
Fri, 26 Sep 2014 08:32:55 -0700
changeset 230683 8f7dd750e75fafc6460edd7f9fe6455029419f6c
parent 230495 5293979e38c63fa4cf3b0e69662f5e47ef1d3c39
child 233037 2e6f1162f0735250a81ef04f53260cc936fc94a1
permissions -rw-r--r--
Bug 1068440: Uplift Add-on SDK to Firefox. https://github.com/mozilla/addon-sdk/compare/cc3242d1ca8c...cbf6cdd0d630

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

MOCHITEST_MANIFESTS += ['tests/mochitest/mochitest.ini']

EXPORTS.mozilla.dom += [
    'DOMMMIError.h',
    'MobileCellInfo.h',
    'MobileConnection.h',
    'MobileConnectionArray.h',
    'MobileConnectionInfo.h',
    'MobileNetworkInfo.h',
]

EXPORTS.mozilla.dom.mobileconnection += [
    'ipc/MobileConnectionChild.h',
    'ipc/MobileConnectionIPCSerializer.h',
    'ipc/MobileConnectionParent.h',
]

XPIDL_SOURCES += [
    'interfaces/nsICellInfo.idl',
    'interfaces/nsIMobileCellInfo.idl',
    'interfaces/nsIMobileConnectionInfo.idl',
    'interfaces/nsIMobileConnectionService.idl',
    'interfaces/nsIMobileNetworkInfo.idl',
    'interfaces/nsINeighboringCellInfo.idl',
]

UNIFIED_SOURCES += [
    'DOMMMIError.cpp',
    'ipc/MobileConnectionChild.cpp',
    'ipc/MobileConnectionIPCService.cpp',
    'ipc/MobileConnectionParent.cpp',
    'MobileCellInfo.cpp',
    'MobileConnection.cpp',
    'MobileConnectionArray.cpp',
    'MobileConnectionCallback.cpp',
    'MobileConnectionInfo.cpp',
    'MobileNetworkInfo.cpp',
]

IPDL_SOURCES += [
    'ipc/PMobileConnection.ipdl',
    'ipc/PMobileConnectionRequest.ipdl',
    'ipc/PMobileConnectionTypes.ipdlh',
]

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and CONFIG['MOZ_B2G_RIL']:
    XPIDL_SOURCES += [
        'gonk/nsIGonkMobileConnectionService.idl',
    ]
    EXTRA_COMPONENTS += [
        'gonk/MobileConnectionService.js',
        'gonk/MobileConnectionService.manifest',
    ]

FAIL_ON_WARNINGS = True

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'

XPIDL_MODULE = 'dom_mobileconnection'