summaryrefslogtreecommitdiff
path: root/system/hardware/moz.build
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-02-12 17:47:03 +0000
committerMatt A. Tobin <email@mattatobin.com>2022-02-12 14:23:18 -0600
commitf66babd8b8368ada3e5aa29cdef1c77291ee4ddd (patch)
treee3842e2a6bf19090185f9c475b3846e1bb79ac97 /system/hardware/moz.build
downloadGRE-f66babd8b8368ada3e5aa29cdef1c77291ee4ddd.tar.gz
Create the Goanna Runtime Environment
Diffstat (limited to 'system/hardware/moz.build')
-rw-r--r--system/hardware/moz.build91
1 files changed, 91 insertions, 0 deletions
diff --git a/system/hardware/moz.build b/system/hardware/moz.build
new file mode 100644
index 000000000..1aecdb750
--- /dev/null
+++ b/system/hardware/moz.build
@@ -0,0 +1,91 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+EXPORTS.mozilla += [
+ 'Hal.h',
+ 'HalImpl.h',
+ 'HalSandbox.h',
+ 'HalScreenConfiguration.h',
+ 'HalSensor.h',
+ 'HalTypes.h',
+ 'HalWakeLock.h',
+]
+
+UNIFIED_SOURCES += [
+ 'HalWakeLock.cpp',
+ 'sandbox/SandboxHal.cpp',
+ 'WindowIdentifier.cpp',
+]
+
+# Hal.cpp cannot be built in unified mode because it relies on HalImpl.h.
+SOURCES += [
+ 'Hal.cpp',
+]
+
+if CONFIG['OS_TARGET'] == 'Linux':
+ UNIFIED_SOURCES += [
+ 'fallback/FallbackAlarm.cpp',
+ 'fallback/FallbackScreenConfiguration.cpp',
+ 'fallback/FallbackSensor.cpp',
+ 'linux/LinuxMemory.cpp',
+ 'linux/LinuxPower.cpp',
+ ]
+elif CONFIG['OS_TARGET'] == 'WINNT':
+ UNIFIED_SOURCES += [
+ 'fallback/FallbackAlarm.cpp',
+ 'fallback/FallbackMemory.cpp',
+ 'fallback/FallbackPower.cpp',
+ 'fallback/FallbackScreenConfiguration.cpp',
+ 'windows/WindowsSensor.cpp',
+ ]
+elif CONFIG['OS_TARGET'] in ('OpenBSD', 'NetBSD', 'FreeBSD', 'DragonFly'):
+ UNIFIED_SOURCES += [
+ 'fallback/FallbackAlarm.cpp',
+ 'fallback/FallbackMemory.cpp',
+ 'fallback/FallbackPower.cpp',
+ 'fallback/FallbackScreenConfiguration.cpp',
+ 'fallback/FallbackSensor.cpp',
+ ]
+else:
+ UNIFIED_SOURCES += [
+ 'fallback/FallbackAlarm.cpp',
+ 'fallback/FallbackMemory.cpp',
+ 'fallback/FallbackPower.cpp',
+ 'fallback/FallbackScreenConfiguration.cpp',
+ 'fallback/FallbackSensor.cpp',
+ ]
+
+UNIFIED_SOURCES += [
+ 'fallback/FallbackFactoryReset.cpp',
+ 'fallback/FallbackProcessPriority.cpp',
+ 'fallback/FallbackScreenPower.cpp',
+ 'fallback/FallbackSwitch.cpp',
+ 'fallback/FallbackSystemService.cpp',
+ 'fallback/FallbackThreadPriority.cpp',
+ 'fallback/FallbackTime.cpp',
+ 'fallback/FallbackWakeLocks.cpp',
+]
+
+UNIFIED_SOURCES += [
+ 'fallback/FallbackNetwork.cpp',
+]
+
+IPDL_SOURCES = [
+ 'sandbox/PHal.ipdl',
+]
+
+include('/ipc/chromium/chromium-config.mozbuild')
+
+FINAL_LIBRARY = 'xul'
+
+if CONFIG['MOZ_GAMEPAD']:
+ LOCAL_INCLUDES += [
+ '/dom/base',
+ ]
+
+CFLAGS += CONFIG['GLIB_CFLAGS']
+CFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
+CXXFLAGS += CONFIG['GLIB_CFLAGS']
+CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']