dom/system/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/system/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,59 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
    1.11 +
    1.12 +if toolkit in ('qt'):
    1.13 +    DIRS += ['qt']
    1.14 +elif toolkit == 'windows':
    1.15 +    DIRS += ['windows']
    1.16 +elif toolkit == 'cocoa':
    1.17 +    DIRS += ['mac']
    1.18 +elif toolkit == 'android':
    1.19 +    DIRS += ['android']
    1.20 +elif toolkit == 'gonk':
    1.21 +    DIRS += ['gonk']
    1.22 +
    1.23 +TEST_DIRS += ['tests']
    1.24 +
    1.25 +XPIDL_SOURCES += [
    1.26 +    'nsIOSFileConstantsService.idl',
    1.27 +]
    1.28 +
    1.29 +XPIDL_MODULE = 'dom_system'
    1.30 +
    1.31 +EXPORTS += [
    1.32 +    'nsDeviceSensors.h',
    1.33 +]
    1.34 +
    1.35 +EXPORTS.mozilla += [
    1.36 +    'OSFileConstants.h',
    1.37 +]
    1.38 +
    1.39 +UNIFIED_SOURCES += [
    1.40 +    'nsDeviceSensors.cpp',
    1.41 +    'OSFileConstants.cpp',
    1.42 +]
    1.43 +
    1.44 +EXTRA_COMPONENTS += [
    1.45 +    'NetworkGeolocationProvider.js',
    1.46 +    'NetworkGeolocationProvider.manifest',
    1.47 +]
    1.48 +
    1.49 +FAIL_ON_WARNINGS = True
    1.50 +
    1.51 +include('/ipc/chromium/chromium-config.mozbuild')
    1.52 +
    1.53 +FINAL_LIBRARY = 'gklayout'
    1.54 +# We fire the nsDOMDeviceAcceleration
    1.55 +LOCAL_INCLUDES += [
    1.56 +    '/dom/base',
    1.57 +    '/dom/bindings',
    1.58 +    '/js/xpconnect/loader',
    1.59 +]
    1.60 +
    1.61 +DEFINES['DLL_PREFIX'] = '"%s"' % CONFIG['DLL_PREFIX']
    1.62 +DEFINES['DLL_SUFFIX'] = '"%s"' % CONFIG['DLL_SUFFIX']

mercurial