michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: EXPORTS.mozilla.dom.mobilemessage += [ michael@0: 'Constants.h', # Required by almost all cpp files michael@0: 'ipc/SmsChild.h', michael@0: 'ipc/SmsParent.h', michael@0: 'MobileMessageService.h', # Required by nsLayoutModule.cpp michael@0: 'SmsServicesFactory.h', # Required by nsLayoutModule.cpp michael@0: 'Types.h', # Required by IPDL SmsTypes.h michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': michael@0: SOURCES += [ michael@0: 'android/MobileMessageDatabaseService.cpp', michael@0: 'android/SmsService.cpp', michael@0: ] michael@0: elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and CONFIG['MOZ_B2G_RIL']: michael@0: EXTRA_JS_MODULES = [ michael@0: 'gonk/mms_consts.js', michael@0: 'gonk/MmsPduHelper.jsm', michael@0: 'gonk/MobileMessageDB.jsm', michael@0: 'gonk/wap_consts.js', michael@0: 'gonk/WspPduHelper.jsm', michael@0: ] michael@0: EXTRA_COMPONENTS += [ michael@0: 'gonk/MmsService.js', michael@0: 'gonk/MmsService.manifest', michael@0: 'gonk/MobileMessageDatabaseService.js', michael@0: 'gonk/MobileMessageDatabaseService.manifest', michael@0: ] michael@0: SOURCES += [ michael@0: 'gonk/SmsService.cpp', michael@0: ] michael@0: michael@0: EXPORTS.mozilla.dom += [ michael@0: 'MmsMessage.h', michael@0: 'MobileMessageManager.h', michael@0: 'SmsFilter.h', michael@0: 'SmsMessage.h', michael@0: 'SmsSegmentInfo.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'Constants.cpp', michael@0: 'ipc/SmsChild.cpp', michael@0: 'ipc/SmsIPCService.cpp', michael@0: 'ipc/SmsParent.cpp', michael@0: 'MmsMessage.cpp', michael@0: 'MobileMessageCallback.cpp', michael@0: 'MobileMessageCursorCallback.cpp', michael@0: 'MobileMessageManager.cpp', michael@0: 'MobileMessageService.cpp', michael@0: 'MobileMessageThread.cpp', michael@0: 'SmsFilter.cpp', michael@0: 'SmsMessage.cpp', michael@0: 'SmsSegmentInfo.cpp', michael@0: 'SmsServicesFactory.cpp', michael@0: ] michael@0: michael@0: IPDL_SOURCES += [ michael@0: 'ipc/PMobileMessageCursor.ipdl', michael@0: 'ipc/PSms.ipdl', michael@0: 'ipc/PSmsRequest.ipdl', michael@0: 'ipc/SmsTypes.ipdlh', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '/dom/base', michael@0: ] michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'gklayout'