dom/mobilemessage/src/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/mobilemessage/src/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,81 @@
     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 +EXPORTS.mozilla.dom.mobilemessage += [
    1.11 +    'Constants.h',            # Required by almost all cpp files
    1.12 +    'ipc/SmsChild.h',
    1.13 +    'ipc/SmsParent.h',
    1.14 +    'MobileMessageService.h', # Required by nsLayoutModule.cpp
    1.15 +    'SmsServicesFactory.h',   # Required by nsLayoutModule.cpp
    1.16 +    'Types.h',                # Required by IPDL SmsTypes.h
    1.17 +]
    1.18 +
    1.19 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
    1.20 +    SOURCES += [
    1.21 +        'android/MobileMessageDatabaseService.cpp',
    1.22 +        'android/SmsService.cpp',
    1.23 +    ]
    1.24 +elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and CONFIG['MOZ_B2G_RIL']:
    1.25 +    EXTRA_JS_MODULES = [
    1.26 +        'gonk/mms_consts.js',
    1.27 +        'gonk/MmsPduHelper.jsm',
    1.28 +        'gonk/MobileMessageDB.jsm',
    1.29 +        'gonk/wap_consts.js',
    1.30 +        'gonk/WspPduHelper.jsm',
    1.31 +    ]
    1.32 +    EXTRA_COMPONENTS += [
    1.33 +        'gonk/MmsService.js',
    1.34 +        'gonk/MmsService.manifest',
    1.35 +        'gonk/MobileMessageDatabaseService.js',
    1.36 +        'gonk/MobileMessageDatabaseService.manifest',
    1.37 +    ]
    1.38 +    SOURCES += [
    1.39 +        'gonk/SmsService.cpp',
    1.40 +    ]
    1.41 +
    1.42 +EXPORTS.mozilla.dom += [
    1.43 +    'MmsMessage.h',
    1.44 +    'MobileMessageManager.h',
    1.45 +    'SmsFilter.h',
    1.46 +    'SmsMessage.h',
    1.47 +    'SmsSegmentInfo.h',
    1.48 +]
    1.49 +
    1.50 +UNIFIED_SOURCES += [
    1.51 +    'Constants.cpp',
    1.52 +    'ipc/SmsChild.cpp',
    1.53 +    'ipc/SmsIPCService.cpp',
    1.54 +    'ipc/SmsParent.cpp',
    1.55 +    'MmsMessage.cpp',
    1.56 +    'MobileMessageCallback.cpp',
    1.57 +    'MobileMessageCursorCallback.cpp',
    1.58 +    'MobileMessageManager.cpp',
    1.59 +    'MobileMessageService.cpp',
    1.60 +    'MobileMessageThread.cpp',
    1.61 +    'SmsFilter.cpp',
    1.62 +    'SmsMessage.cpp',
    1.63 +    'SmsSegmentInfo.cpp',
    1.64 +    'SmsServicesFactory.cpp',
    1.65 +]
    1.66 +
    1.67 +IPDL_SOURCES += [
    1.68 +    'ipc/PMobileMessageCursor.ipdl',
    1.69 +    'ipc/PSms.ipdl',
    1.70 +    'ipc/PSmsRequest.ipdl',
    1.71 +    'ipc/SmsTypes.ipdlh',
    1.72 +]
    1.73 +
    1.74 +FAIL_ON_WARNINGS = True
    1.75 +
    1.76 +MSVC_ENABLE_PGO = True
    1.77 +
    1.78 +LOCAL_INCLUDES += [
    1.79 +    '/dom/base',
    1.80 +]
    1.81 +
    1.82 +include('/ipc/chromium/chromium-config.mozbuild')
    1.83 +
    1.84 +FINAL_LIBRARY = 'gklayout'

mercurial