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/.
|
|
|
|
|
|
|
|
toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
|
|
|
|
|
2014-07-26 06:17:24 +00:00
|
|
|
if toolkit == 'qt':
|
2014-02-21 02:09:02 +00:00
|
|
|
DIRS += ['qt']
|
2013-02-25 20:47:20 +00:00
|
|
|
elif toolkit == 'windows':
|
|
|
|
DIRS += ['windows']
|
2013-07-01 13:43:17 +00:00
|
|
|
elif toolkit == 'cocoa':
|
|
|
|
DIRS += ['mac']
|
2013-02-25 20:47:20 +00:00
|
|
|
elif toolkit == 'android':
|
|
|
|
DIRS += ['android']
|
2013-10-29 08:12:45 +00:00
|
|
|
elif toolkit == 'gonk':
|
2013-02-25 20:47:20 +00:00
|
|
|
DIRS += ['gonk']
|
|
|
|
|
2013-03-12 17:17:46 +00:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIOSFileConstantsService.idl',
|
2015-07-13 02:06:00 +00:00
|
|
|
'nsISystemUpdateProvider.idl',
|
2013-03-12 17:17:46 +00:00
|
|
|
]
|
|
|
|
|
2013-03-12 05:00:00 +00:00
|
|
|
XPIDL_MODULE = 'dom_system'
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'nsDeviceSensors.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'OSFileConstants.h',
|
|
|
|
]
|
|
|
|
|
2013-11-26 16:38:52 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsDeviceSensors.cpp',
|
2013-10-23 23:05:43 +00:00
|
|
|
'OSFileConstants.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
2014-02-26 00:06:01 +00:00
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'NetworkGeolocationProvider.js',
|
|
|
|
'NetworkGeolocationProvider.manifest',
|
2015-07-13 02:06:00 +00:00
|
|
|
'SystemUpdate.manifest',
|
|
|
|
'SystemUpdateManager.js',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'SystemUpdateService.jsm',
|
2014-02-26 00:06:01 +00:00
|
|
|
]
|
2013-06-11 20:38:22 +00:00
|
|
|
|
2013-10-02 17:17:55 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-07-22 23:37:51 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-11 08:04:11 +00:00
|
|
|
# We fire the nsDOMDeviceAcceleration
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/base',
|
|
|
|
'/dom/bindings',
|
|
|
|
'/js/xpconnect/loader',
|
|
|
|
]
|
|
|
|
|
|
|
|
DEFINES['DLL_PREFIX'] = '"%s"' % CONFIG['DLL_PREFIX']
|
|
|
|
DEFINES['DLL_SUFFIX'] = '"%s"' % CONFIG['DLL_SUFFIX']
|
2014-07-26 06:17:24 +00:00
|
|
|
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini']
|
2015-07-13 02:06:00 +00:00
|
|
|
MOCHITEST_MANIFESTS += ['tests/mochitest.ini']
|
2015-09-23 04:39:03 +00:00
|
|
|
|
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wshadow']
|