summaryrefslogtreecommitdiffstats
path: root/ipc/chromium/chromium-config.mozbuild
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /ipc/chromium/chromium-config.mozbuild
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ipc/chromium/chromium-config.mozbuild')
-rw-r--r--ipc/chromium/chromium-config.mozbuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/ipc/chromium/chromium-config.mozbuild b/ipc/chromium/chromium-config.mozbuild
new file mode 100644
index 0000000000..968eb017f6
--- /dev/null
+++ b/ipc/chromium/chromium-config.mozbuild
@@ -0,0 +1,60 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# 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/.
+
+LOCAL_INCLUDES += [
+ '!/ipc/ipdl/_ipdlheaders',
+ '/ipc/chromium/src',
+]
+
+if CONFIG['OS_ARCH'] == 'WINNT':
+ OS_LIBS += [
+ 'shell32',
+ 'dbghelp',
+ ]
+
+ DEFINES['UNICODE'] = True
+ DEFINES['_UNICODE'] = True
+ DEFINES['_CRT_RAND_S'] = True
+ DEFINES['CERT_CHAIN_PARA_HAS_EXTRA_FIELDS'] = True
+ DEFINES['_SECURE_ATL'] = True
+ DEFINES['CHROMIUM_BUILD'] = True
+ DEFINES['U_STATIC_IMPLEMENTATION'] = True
+ DEFINES['OS_WIN'] = 1
+ DEFINES['WIN32'] = True
+ DEFINES['_WIN32'] = True
+ DEFINES['_WINDOWS'] = True
+ DEFINES['WIN32_LEAN_AND_MEAN'] = True
+
+ if CONFIG['CC_TYPE'] == 'clang-cl':
+ DEFINES['COMPILER_MSVC'] = True
+
+else:
+ DEFINES['OS_POSIX'] = 1
+
+ if CONFIG['OS_ARCH'] == 'Darwin':
+ DEFINES['OS_MACOSX'] = 1
+
+ elif CONFIG['OS_ARCH'] == 'SunOS':
+ DEFINES['OS_SOLARIS'] = 1
+
+ elif CONFIG['OS_ARCH'] == 'DragonFly':
+ DEFINES['OS_DRAGONFLY'] = 1
+ DEFINES['OS_BSD'] = 1
+
+ elif CONFIG['OS_ARCH'] == 'FreeBSD' or CONFIG['OS_ARCH'] == 'GNU_kFreeBSD':
+ DEFINES['OS_FREEBSD'] = 1
+ DEFINES['OS_BSD'] = 1
+
+ elif CONFIG['OS_ARCH'] == 'NetBSD':
+ DEFINES['OS_NETBSD'] = 1
+ DEFINES['OS_BSD'] = 1
+
+ elif CONFIG['OS_ARCH'] == 'OpenBSD':
+ DEFINES['OS_OPENBSD'] = 1
+ DEFINES['OS_BSD'] = 1
+
+ else:
+ DEFINES['OS_LINUX'] = 1