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'):
11 elif toolkit == 'windows':
13 elif toolkit == 'cocoa':
15 elif toolkit == 'android':
17 elif toolkit == 'gonk':
20 TEST_DIRS += ['tests']
23 'nsIOSFileConstantsService.idl',
26 XPIDL_MODULE = 'dom_system'
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':
47 'NetworkGeolocationProvider.js',
48 'NetworkGeolocationProvider.manifest',
51 FAIL_ON_WARNINGS = True
55 LIBRARY_NAME = 'domsystem_s'
59 include('/ipc/chromium/chromium-config.mozbuild')