dom/system/moz.build

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:5de47ad72eb4
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/.
6
7 toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
8
9 if toolkit in ('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']
19
20 TEST_DIRS += ['tests']
21
22 XPIDL_SOURCES += [
23 'nsIOSFileConstantsService.idl',
24 ]
25
26 XPIDL_MODULE = 'dom_system'
27
28 EXPORTS += [
29 'nsDeviceSensors.h',
30 ]
31
32 EXPORTS.mozilla += [
33 'OSFileConstants.h',
34 ]
35
36 UNIFIED_SOURCES += [
37 'nsDeviceSensors.cpp',
38 'OSFileConstants.cpp',
39 ]
40
41 EXTRA_COMPONENTS += [
42 'NetworkGeolocationProvider.js',
43 'NetworkGeolocationProvider.manifest',
44 ]
45
46 FAIL_ON_WARNINGS = True
47
48 include('/ipc/chromium/chromium-config.mozbuild')
49
50 FINAL_LIBRARY = 'gklayout'
51 # We fire the nsDOMDeviceAcceleration
52 LOCAL_INCLUDES += [
53 '/dom/base',
54 '/dom/bindings',
55 '/js/xpconnect/loader',
56 ]
57
58 DEFINES['DLL_PREFIX'] = '"%s"' % CONFIG['DLL_PREFIX']
59 DEFINES['DLL_SUFFIX'] = '"%s"' % CONFIG['DLL_SUFFIX']

mercurial