2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:20 +00:00
|
|
|
# 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/.
|
|
|
|
|
2014-08-27 17:13:36 +00:00
|
|
|
DIRS += ['interfaces']
|
2013-04-29 18:49:00 +00:00
|
|
|
|
2014-07-26 06:17:24 +00:00
|
|
|
MOCHITEST_MANIFESTS += ['tests/mochitest/mochitest.ini']
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell/xpcshell.ini']
|
2014-08-27 17:13:36 +00:00
|
|
|
|
|
|
|
EXPORTS.mozilla.dom.mobilemessage += [
|
|
|
|
'Constants.h', # Required by almost all cpp files
|
|
|
|
'ipc/SmsChild.h',
|
|
|
|
'ipc/SmsParent.h',
|
|
|
|
'Types.h', # Required by IPDL SmsTypes.h
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
SOURCES += [
|
|
|
|
'android/MobileMessageDatabaseService.cpp',
|
2015-10-06 22:40:38 +00:00
|
|
|
'android/SmsManager.cpp',
|
2014-08-27 17:13:36 +00:00
|
|
|
'android/SmsService.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and CONFIG['MOZ_B2G_RIL']:
|
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'gonk/mms_consts.js',
|
|
|
|
'gonk/MmsPduHelper.jsm',
|
|
|
|
'gonk/MobileMessageDB.jsm',
|
2014-11-26 12:02:54 +00:00
|
|
|
'gonk/SmsSegmentHelper.jsm',
|
2014-08-27 17:13:36 +00:00
|
|
|
'gonk/wap_consts.js',
|
|
|
|
'gonk/WspPduHelper.jsm',
|
|
|
|
]
|
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'gonk/MmsService.js',
|
|
|
|
'gonk/MmsService.manifest',
|
|
|
|
'gonk/MobileMessageDatabaseService.js',
|
|
|
|
'gonk/MobileMessageDatabaseService.manifest',
|
|
|
|
]
|
2015-02-26 21:51:20 +00:00
|
|
|
if not CONFIG['DISABLE_MOZ_RIL_GEOLOC']:
|
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'gonk/SmsService.js',
|
|
|
|
'gonk/SmsService.manifest',
|
|
|
|
]
|
2014-08-27 17:13:36 +00:00
|
|
|
|
|
|
|
EXPORTS.mozilla.dom += [
|
|
|
|
'DOMMobileMessageError.h',
|
|
|
|
'MmsMessage.h',
|
|
|
|
'MobileMessageManager.h',
|
2015-10-06 22:40:38 +00:00
|
|
|
'MobileMessageThread.h',
|
2014-08-27 17:13:36 +00:00
|
|
|
'SmsMessage.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
2015-04-29 02:42:58 +00:00
|
|
|
'Assertions.cpp',
|
2014-08-27 17:13:36 +00:00
|
|
|
'Constants.cpp',
|
|
|
|
'DeletedMessageInfo.cpp',
|
|
|
|
'DOMMobileMessageError.cpp',
|
|
|
|
'ipc/SmsChild.cpp',
|
|
|
|
'ipc/SmsIPCService.cpp',
|
|
|
|
'ipc/SmsParent.cpp',
|
2015-10-19 11:54:06 +00:00
|
|
|
'MmsMessage.cpp',
|
2015-10-19 11:46:08 +00:00
|
|
|
'MmsMessageInternal.cpp',
|
2014-08-27 17:13:36 +00:00
|
|
|
'MobileMessageCallback.cpp',
|
|
|
|
'MobileMessageCursorCallback.cpp',
|
|
|
|
'MobileMessageManager.cpp',
|
|
|
|
'MobileMessageService.cpp',
|
2015-10-19 11:54:06 +00:00
|
|
|
'MobileMessageThread.cpp',
|
2015-10-19 11:46:08 +00:00
|
|
|
'MobileMessageThreadInternal.cpp',
|
2015-10-19 11:54:06 +00:00
|
|
|
'SmsMessage.cpp',
|
2015-10-19 11:46:08 +00:00
|
|
|
'SmsMessageInternal.cpp',
|
2014-08-27 17:13:36 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
IPDL_SOURCES += [
|
|
|
|
'ipc/PMobileMessageCursor.ipdl',
|
|
|
|
'ipc/PSms.ipdl',
|
|
|
|
'ipc/PSmsRequest.ipdl',
|
|
|
|
'ipc/SmsTypes.ipdlh',
|
|
|
|
]
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/base',
|
2015-10-06 22:40:38 +00:00
|
|
|
'/widget/android',
|
2014-08-27 17:13:36 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|