Bumping manifests a=b2g-bump
[gecko.git] / dom / system / moz.build
blob17effdcd45c4a95e520f58ce93c4253f4650b759
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
9 if toolkit == 'qt':
10     DIRS += ['qt']
11 elif toolkit == 'windows':
12     DIRS += ['windows']
13 elif toolkit == 'cocoa':
14     DIRS += ['mac']
15 elif toolkit == 'android':
16     DIRS += ['android']
17 elif toolkit == 'gonk':
18     DIRS += ['gonk']
20 XPIDL_SOURCES += [
21     'nsIOSFileConstantsService.idl',
22     'nsISystemUpdateProvider.idl',
25 XPIDL_MODULE = 'dom_system'
27 EXPORTS += [
28     'nsDeviceSensors.h',
31 EXPORTS.mozilla += [
32     'OSFileConstants.h',
35 UNIFIED_SOURCES += [
36     'nsDeviceSensors.cpp',
37     'OSFileConstants.cpp',
40 EXTRA_COMPONENTS += [
41     'NetworkGeolocationProvider.js',
42     'NetworkGeolocationProvider.manifest',
43     'SystemUpdate.manifest',
44     'SystemUpdateManager.js',
47 EXTRA_JS_MODULES += [
48     'SystemUpdateService.jsm',
51 FAIL_ON_WARNINGS = True
53 include('/ipc/chromium/chromium-config.mozbuild')
55 FINAL_LIBRARY = 'xul'
56 # We fire the nsDOMDeviceAcceleration
57 LOCAL_INCLUDES += [
58     '/dom/base',
59     '/dom/bindings',
60     '/js/xpconnect/loader',
63 DEFINES['DLL_PREFIX'] = '"%s"' % CONFIG['DLL_PREFIX']
64 DEFINES['DLL_SUFFIX'] = '"%s"' % CONFIG['DLL_SUFFIX']
66 MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini']
67 MOCHITEST_MANIFESTS += ['tests/mochitest.ini']