dom/system/moz.build

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
michael@0 8
michael@0 9 if toolkit in ('qt'):
michael@0 10 DIRS += ['qt']
michael@0 11 elif toolkit == 'windows':
michael@0 12 DIRS += ['windows']
michael@0 13 elif toolkit == 'cocoa':
michael@0 14 DIRS += ['mac']
michael@0 15 elif toolkit == 'android':
michael@0 16 DIRS += ['android']
michael@0 17 elif toolkit == 'gonk':
michael@0 18 DIRS += ['gonk']
michael@0 19
michael@0 20 TEST_DIRS += ['tests']
michael@0 21
michael@0 22 XPIDL_SOURCES += [
michael@0 23 'nsIOSFileConstantsService.idl',
michael@0 24 ]
michael@0 25
michael@0 26 XPIDL_MODULE = 'dom_system'
michael@0 27
michael@0 28 EXPORTS += [
michael@0 29 'nsDeviceSensors.h',
michael@0 30 ]
michael@0 31
michael@0 32 EXPORTS.mozilla += [
michael@0 33 'OSFileConstants.h',
michael@0 34 ]
michael@0 35
michael@0 36 UNIFIED_SOURCES += [
michael@0 37 'nsDeviceSensors.cpp',
michael@0 38 'OSFileConstants.cpp',
michael@0 39 ]
michael@0 40
michael@0 41 EXTRA_COMPONENTS += [
michael@0 42 'NetworkGeolocationProvider.js',
michael@0 43 'NetworkGeolocationProvider.manifest',
michael@0 44 ]
michael@0 45
michael@0 46 FAIL_ON_WARNINGS = True
michael@0 47
michael@0 48 include('/ipc/chromium/chromium-config.mozbuild')
michael@0 49
michael@0 50 FINAL_LIBRARY = 'gklayout'
michael@0 51 # We fire the nsDOMDeviceAcceleration
michael@0 52 LOCAL_INCLUDES += [
michael@0 53 '/dom/base',
michael@0 54 '/dom/bindings',
michael@0 55 '/js/xpconnect/loader',
michael@0 56 ]
michael@0 57
michael@0 58 DEFINES['DLL_PREFIX'] = '"%s"' % CONFIG['DLL_PREFIX']
michael@0 59 DEFINES['DLL_SUFFIX'] = '"%s"' % CONFIG['DLL_SUFFIX']

mercurial