mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1298280 - Don't compile WebSMS backend in dom part by default. r=fabrice
MozReview-Commit-ID: Afh6YJ9f3y8
This commit is contained in:
parent
0bfc5e193f
commit
eb64d6a65a
@ -36,7 +36,7 @@
|
||||
// Service instantiation
|
||||
#include "ipc/SmsIPCService.h"
|
||||
#include "MobileMessageService.h"
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
#if defined(MOZ_WIDGET_ANDROID) && defined(MOZ_WEBSMS_BACKEND)
|
||||
#include "android/MobileMessageDatabaseService.h"
|
||||
#include "android/SmsService.h"
|
||||
#elif defined(MOZ_WIDGET_GONK) && defined(MOZ_B2G_RIL)
|
||||
@ -853,7 +853,7 @@ NS_CreateSmsService()
|
||||
if (XRE_IsContentProcess()) {
|
||||
smsService = SmsIPCService::GetSingleton();
|
||||
} else {
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
#if defined(MOZ_WIDGET_ANDROID) && defined(MOZ_WEBSMS_BACKEND)
|
||||
smsService = new SmsService();
|
||||
#elif defined(MOZ_WIDGET_GONK) && defined(MOZ_B2G_RIL)
|
||||
smsService = do_GetService(GONK_SMSSERVICE_CONTRACTID);
|
||||
@ -870,7 +870,7 @@ NS_CreateMobileMessageDatabaseService()
|
||||
if (XRE_IsContentProcess()) {
|
||||
mobileMessageDBService = SmsIPCService::GetSingleton();
|
||||
} else {
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
#if defined(MOZ_WIDGET_ANDROID) && defined(MOZ_WEBSMS_BACKEND)
|
||||
mobileMessageDBService = new MobileMessageDatabaseService();
|
||||
#elif defined(MOZ_WIDGET_GONK) && defined(MOZ_B2G_RIL)
|
||||
mobileMessageDBService =
|
||||
|
@ -16,7 +16,7 @@ EXPORTS.mozilla.dom.mobilemessage += [
|
||||
'Types.h', # Required by IPDL SmsTypes.h
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android' and CONFIG['MOZ_WEBSMS_BACKEND']:
|
||||
SOURCES += [
|
||||
'android/MobileMessageDatabaseService.cpp',
|
||||
'android/SmsManager.cpp',
|
||||
|
Loading…
Reference in New Issue
Block a user