michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: toolkit = CONFIG['MOZ_WIDGET_TOOLKIT'] michael@0: michael@0: if toolkit in ('qt'): michael@0: DIRS += ['qt'] michael@0: elif toolkit == 'windows': michael@0: DIRS += ['windows'] michael@0: elif toolkit == 'cocoa': michael@0: DIRS += ['mac'] michael@0: elif toolkit == 'android': michael@0: DIRS += ['android'] michael@0: elif toolkit == 'gonk': michael@0: DIRS += ['gonk'] michael@0: michael@0: TEST_DIRS += ['tests'] michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsIOSFileConstantsService.idl', michael@0: ] michael@0: michael@0: XPIDL_MODULE = 'dom_system' michael@0: michael@0: EXPORTS += [ michael@0: 'nsDeviceSensors.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla += [ michael@0: 'OSFileConstants.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsDeviceSensors.cpp', michael@0: 'OSFileConstants.cpp', michael@0: ] michael@0: michael@0: EXTRA_COMPONENTS += [ michael@0: 'NetworkGeolocationProvider.js', michael@0: 'NetworkGeolocationProvider.manifest', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'gklayout' michael@0: # We fire the nsDOMDeviceAcceleration michael@0: LOCAL_INCLUDES += [ michael@0: '/dom/base', michael@0: '/dom/bindings', michael@0: '/js/xpconnect/loader', michael@0: ] michael@0: michael@0: DEFINES['DLL_PREFIX'] = '"%s"' % CONFIG['DLL_PREFIX'] michael@0: DEFINES['DLL_SUFFIX'] = '"%s"' % CONFIG['DLL_SUFFIX']