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']
|
|
|
|
|
2013-06-10 12:36:26 +00:00
|
|
|
if toolkit in ('qt', 'gtk2', 'gtk3'):
|
2013-02-25 20:47:20 +00:00
|
|
|
DIRS += ['unix']
|
|
|
|
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']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_B2G_RIL']:
|
|
|
|
DIRS += ['gonk']
|
|
|
|
|
|
|
|
TEST_DIRS += ['tests']
|
2013-03-12 17:17:46 +00:00
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIOSFileConstantsService.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 05:00:00 +00:00
|
|
|
XPIDL_MODULE = 'dom_system'
|
|
|
|
|
2013-03-19 18:47:00 +00:00
|
|
|
MODULE = 'dom'
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'nsDeviceSensors.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'OSFileConstants.h',
|
|
|
|
]
|
|
|
|
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsDeviceSensors.cpp',
|
2013-10-23 23:05:43 +00:00
|
|
|
'OSFileConstants.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
2013-06-11 20:38:22 +00:00
|
|
|
# On Systems that have build in geolocation providers,
|
|
|
|
# we really do not need these.
|
|
|
|
if CONFIG['OS_TARGET'] != 'Android' or CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'NetworkGeolocationProvider.js',
|
|
|
|
'NetworkGeolocationProvider.manifest',
|
|
|
|
]
|
|
|
|
|
2013-08-22 06:55:59 +00:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-08-22 06:56:00 +00:00
|
|
|
LIBXUL_LIBRARY = True
|
|
|
|
|
2013-08-15 13:02:09 +00:00
|
|
|
LIBRARY_NAME = 'domsystem_s'
|
|
|
|
|
2013-10-03 07:11:13 +00:00
|
|
|
EXPORT_LIBRARY = True
|
|
|
|
|