Backout 2ea2669b53c3, Bug 917642 - [Helix] Please update the helix blobs
[gecko.git] / dom / system / moz.build
blob8eaabb305fa44903b28fbd861e0455dac2daafe2
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 in ('qt', 'gtk2', 'gtk3'):
10     DIRS += ['unix']
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 TEST_DIRS += ['tests']
22 XPIDL_SOURCES += [
23     'nsIOSFileConstantsService.idl',
26 XPIDL_MODULE = 'dom_system'
28 MODULE = 'dom'
30 EXPORTS += [
31     'nsDeviceSensors.h',
34 EXPORTS.mozilla += [
35     'OSFileConstants.h',
38 SOURCES += [
39     'nsDeviceSensors.cpp',
40     'OSFileConstants.cpp',
43 # On Systems that have build in geolocation providers,
44 # we really do not need these.
45 if CONFIG['OS_TARGET'] != 'Android' or CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
46     EXTRA_COMPONENTS += [
47         'NetworkGeolocationProvider.js',
48         'NetworkGeolocationProvider.manifest',
49     ]
51 FAIL_ON_WARNINGS = True
53 LIBXUL_LIBRARY = True
55 LIBRARY_NAME = 'domsystem_s'
57 EXPORT_LIBRARY = True
59 include('/ipc/chromium/chromium-config.mozbuild')