1 # -*- Mode: python; 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/.
8 BUG_COMPONENT = ('Core', 'Hardware Abstraction Layer (HAL)')
14 'HalScreenConfiguration.h',
20 EXPORTS.mozilla.fallback += [
21 'fallback/FallbackScreenConfiguration.h',
26 'sandbox/SandboxHal.cpp',
27 'WindowIdentifier.cpp',
30 # Hal.cpp cannot be built in unified mode because it relies on HalImpl.h.
35 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
40 'android/AndroidSensor.cpp',
42 # AndroidHal.cpp cannot be built in unified mode because it relies on HalImpl.h.
44 'android/AndroidHal.cpp',
46 elif CONFIG['OS_TARGET'] == 'Linux':
48 'fallback/FallbackScreenConfiguration.cpp',
49 'fallback/FallbackSensor.cpp',
50 'fallback/FallbackVibration.cpp',
52 if CONFIG['MOZ_ENABLE_DBUS']:
54 'linux/UPowerClient.cpp',
58 'fallback/FallbackBattery.cpp',
60 elif CONFIG['OS_TARGET'] == 'WINNT':
62 'fallback/FallbackScreenConfiguration.cpp',
63 'fallback/FallbackVibration.cpp',
64 'windows/WindowsSensor.cpp',
66 # WindowsBattery.cpp cannot be built in unified mode because it relies on HalImpl.h.
68 'windows/WindowsBattery.cpp',
70 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
72 'cocoa/CocoaBattery.cpp',
73 'fallback/FallbackScreenConfiguration.cpp',
74 'fallback/FallbackVibration.cpp',
76 elif CONFIG['OS_TARGET'] in ('OpenBSD', 'NetBSD', 'FreeBSD', 'DragonFly'):
78 'fallback/FallbackScreenConfiguration.cpp',
79 'fallback/FallbackSensor.cpp',
80 'fallback/FallbackVibration.cpp',
82 if CONFIG['MOZ_ENABLE_DBUS']:
84 'linux/UPowerClient.cpp',
88 'fallback/FallbackBattery.cpp',
92 'fallback/FallbackBattery.cpp',
93 'fallback/FallbackScreenConfiguration.cpp',
94 'fallback/FallbackSensor.cpp',
95 'fallback/FallbackVibration.cpp',
98 # Fallbacks for backends no longer implemented.
100 'fallback/FallbackDiskSpaceWatcher.cpp',
101 'fallback/FallbackProcessPriority.cpp',
102 'fallback/FallbackSwitch.cpp',
103 'fallback/FallbackThreadPriority.cpp',
106 # Fallbacks for backends implemented on Android only.
107 if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
109 'fallback/FallbackNetwork.cpp',
112 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
114 'cocoa/CocoaSensor.mm',
122 include('/ipc/chromium/chromium-config.mozbuild')
124 FINAL_LIBRARY = 'xul'
130 CFLAGS += CONFIG['GLIB_CFLAGS']
131 CFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
132 CXXFLAGS += CONFIG['GLIB_CFLAGS']
133 CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']