2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 21:19:09 +00:00
|
|
|
# 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/.
|
|
|
|
|
2020-10-26 18:34:53 +00:00
|
|
|
|
2016-09-01 22:08:16 +00:00
|
|
|
@template
|
|
|
|
def Libxul_defines():
|
|
|
|
LIBRARY_DEFINES["MOZILLA_INTERNAL_API"] = True
|
|
|
|
LIBRARY_DEFINES["IMPL_LIBXUL"] = True
|
|
|
|
if not CONFIG["JS_SHARED_LIBRARY"]:
|
|
|
|
LIBRARY_DEFINES["STATIC_EXPORTABLE_JS_API"] = True
|
2020-10-26 18:34:53 +00:00
|
|
|
|
2016-09-01 22:08:16 +00:00
|
|
|
|
2014-09-04 00:04:45 +00:00
|
|
|
@template
|
2018-08-10 19:07:29 +00:00
|
|
|
def Libxul(name, output_category=None):
|
2015-06-10 15:10:40 +00:00
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] in ("cocoa", "uikit"):
|
2014-09-04 00:04:45 +00:00
|
|
|
# This is going to be a framework named "XUL", not an ordinary library named
|
|
|
|
# "libxul.dylib"
|
2018-08-10 19:07:29 +00:00
|
|
|
GeckoFramework(name, output_category=output_category, linkage=None)
|
2014-09-04 00:04:45 +00:00
|
|
|
SHARED_LIBRARY_NAME = "XUL"
|
|
|
|
else:
|
2018-08-10 19:07:29 +00:00
|
|
|
GeckoSharedLibrary(name, output_category=output_category, linkage=None)
|
2014-09-04 00:04:45 +00:00
|
|
|
SHARED_LIBRARY_NAME = "xul"
|
|
|
|
|
|
|
|
DELAYLOAD_DLLS += [
|
2021-09-20 10:09:00 +00:00
|
|
|
"avrt.dll",
|
2014-09-04 00:04:45 +00:00
|
|
|
"comdlg32.dll",
|
2019-08-15 18:47:45 +00:00
|
|
|
"credui.dll",
|
2021-02-25 15:10:57 +00:00
|
|
|
"d3d11.dll",
|
|
|
|
"D3DCompiler_47.dll",
|
2021-09-20 10:09:00 +00:00
|
|
|
"dhcpcsvc.dll",
|
|
|
|
"dnsapi.dll",
|
|
|
|
"dwmapi.dll",
|
2021-02-25 15:10:57 +00:00
|
|
|
"dxgi.dll",
|
2021-09-20 10:09:00 +00:00
|
|
|
"gdi32.dll",
|
2018-06-20 14:24:50 +00:00
|
|
|
"hid.dll",
|
2021-09-20 10:09:00 +00:00
|
|
|
"imm32.dll",
|
|
|
|
"iphlpapi.dll",
|
|
|
|
"msi.dll",
|
2018-06-20 14:24:50 +00:00
|
|
|
"msimg32.dll",
|
2016-05-11 11:05:25 +00:00
|
|
|
"netapi32.dll",
|
2021-09-20 10:09:00 +00:00
|
|
|
"ole32.dll",
|
|
|
|
"oleaut32.dll",
|
2014-09-04 00:04:45 +00:00
|
|
|
"secur32.dll",
|
2021-09-20 10:09:00 +00:00
|
|
|
"setupapi.dll",
|
|
|
|
"shell32.dll",
|
|
|
|
"shlwapi.dll",
|
2019-08-19 22:10:32 +00:00
|
|
|
"urlmon.dll",
|
2021-09-20 10:09:00 +00:00
|
|
|
"user32.dll",
|
|
|
|
"userenv.dll",
|
|
|
|
"usp10.dll",
|
|
|
|
"uxtheme.dll",
|
2014-09-04 00:04:45 +00:00
|
|
|
"wininet.dll",
|
|
|
|
"winspool.drv",
|
2021-09-20 10:09:00 +00:00
|
|
|
"wtsapi32.dll",
|
2014-09-04 00:04:45 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG["ACCESSIBILITY"]:
|
|
|
|
DELAYLOAD_DLLS += ["oleacc.dll"]
|
|
|
|
|
|
|
|
if CONFIG["MOZ_WEBRTC"]:
|
|
|
|
DELAYLOAD_DLLS += ["msdmo.dll"]
|
|
|
|
|
2015-06-16 18:51:29 +00:00
|
|
|
if CONFIG["OS_ARCH"] == "WINNT":
|
|
|
|
DELAYLOAD_DLLS += [
|
|
|
|
"api-ms-win-core-winrt-l1-1-0.dll",
|
|
|
|
"api-ms-win-core-winrt-string-l1-1-0.dll",
|
|
|
|
]
|
|
|
|
|
2016-11-14 09:14:29 +00:00
|
|
|
if CONFIG["OS_ARCH"] == "WINNT" and CONFIG["ACCESSIBILITY"]:
|
|
|
|
LOCAL_INCLUDES += ["!/accessible/interfaces/gecko/"]
|
|
|
|
|
2019-04-05 18:14:16 +00:00
|
|
|
if CONFIG["OS_ARCH"] == "WINNT":
|
2014-09-04 00:04:45 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
"/widget/windows",
|
|
|
|
"/xpcom/base",
|
|
|
|
]
|
2019-09-09 17:44:47 +00:00
|
|
|
RCINCLUDE = "/toolkit/library/xulrunner.rc"
|
2014-09-04 00:04:45 +00:00
|
|
|
|
2019-05-31 17:13:34 +00:00
|
|
|
# Show a breakdown of linker time. (Too verbose for local builds.)
|
|
|
|
if CONFIG["CC_TYPE"] == "clang-cl" and not CONFIG["DEVELOPER_OPTIONS"]:
|
|
|
|
LDFLAGS += ["-time"]
|
|
|
|
|
2016-09-01 22:08:16 +00:00
|
|
|
Libxul_defines()
|
2014-09-05 04:38:54 +00:00
|
|
|
|
2015-12-01 02:56:42 +00:00
|
|
|
if CONFIG["MOZ_NEEDS_LIBATOMIC"]:
|
|
|
|
OS_LIBS += ["atomic"]
|
2014-09-05 04:38:54 +00:00
|
|
|
|
2019-01-22 17:13:33 +00:00
|
|
|
# TouchBar-related classes are only available in the 10.12.2 SDK and later.
|
|
|
|
# We need to weak link these classes until we've upgraded our SDK to at
|
|
|
|
# least 10.12.2.
|
2017-06-18 13:39:14 +00:00
|
|
|
# We're also linking against libresolv to solve bug 1367932.
|
2017-05-09 18:36:13 +00:00
|
|
|
if CONFIG["OS_ARCH"] == "Darwin":
|
2019-01-22 17:13:33 +00:00
|
|
|
LDFLAGS += ["-Wl,-U,_OBJC_CLASS_$_NSTouchBar"]
|
|
|
|
LDFLAGS += ["-Wl,-U,_OBJC_CLASS_$_NSSharingServicePickerTouchBarItem"]
|
|
|
|
LDFLAGS += ["-Wl,-U,_OBJC_METACLASS_$_NSTouchBar"]
|
|
|
|
LDFLAGS += ["-Wl,-U,_OBJC_CLASS_$_NSCustomTouchBarItem"]
|
2019-10-09 17:55:15 +00:00
|
|
|
LDFLAGS += ["-Wl,-U,_OBJC_CLASS_$_NSPopoverTouchBarItem"]
|
2018-07-17 14:27:46 +00:00
|
|
|
LDFLAGS += ["-lresolv"]
|
2020-10-26 18:34:53 +00:00
|
|
|
|
2019-02-14 21:45:27 +00:00
|
|
|
if CONFIG["MOZ_DEBUG_SYMBOLS"] and CONFIG["CC_TYPE"] == "clang-cl":
|
2018-03-14 18:07:15 +00:00
|
|
|
LDFLAGS += ["-NATVIS:%s/toolkit/library/gecko.natvis" % TOPSRCDIR]
|
2019-01-15 13:56:07 +00:00
|
|
|
if CONFIG["RUSTC_NATVIS_LDFLAGS"]:
|
|
|
|
LDFLAGS += CONFIG["RUSTC_NATVIS_LDFLAGS"]
|
2020-10-26 18:34:53 +00:00
|
|
|
|
2019-08-16 21:44:10 +00:00
|
|
|
if CONFIG["OS_ARCH"] == "Linux" and CONFIG["OS_TARGET"] != "Android":
|
2019-10-07 21:15:19 +00:00
|
|
|
GeneratedFile(
|
|
|
|
"symverscript",
|
|
|
|
script="/build/gen_symverscript.py",
|
|
|
|
inputs=["../symverscript.in"],
|
|
|
|
flags=["xul%s" % CONFIG["MOZILLA_SYMBOLVERSION"]],
|
|
|
|
)
|
2019-08-16 21:44:10 +00:00
|
|
|
SYMBOLS_FILE = "!symverscript"
|
|
|
|
|
|
|
|
|
|
|
|
# The real libxul definition is in ./build/moz.build, but we define a
|
|
|
|
# xul library here such that # FINAL_LIBRARY = 'xul' refers to here, which
|
|
|
|
# is then linked to both build/libxul and gtest/libxul.
|
|
|
|
Library("xul")
|
2014-07-23 04:33:09 +00:00
|
|
|
|
|
|
|
STATIC_LIBRARY_NAME = "xul_s"
|
|
|
|
|
2019-08-16 21:44:10 +00:00
|
|
|
# Use a FINAL_LIBRARY for Libxul_defines to propagate from there. They wouldn't
|
|
|
|
# propagate from here.
|
|
|
|
FINAL_LIBRARY = "xul-real"
|
|
|
|
|
2013-04-23 21:54:15 +00:00
|
|
|
if CONFIG["OS_ARCH"] == "WINNT":
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
"nsDllMain.cpp",
|
|
|
|
]
|
2013-06-17 19:21:01 +00:00
|
|
|
|
2014-02-10 14:03:53 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
"/config",
|
|
|
|
# need widget/windows for resource.h (included from widget.rc)
|
|
|
|
"/widget/windows",
|
|
|
|
]
|
|
|
|
|
2017-12-07 21:09:15 +00:00
|
|
|
if CONFIG["OS_ARCH"] == "WINNT" and CONFIG["CC_TYPE"] not in ("clang", "gcc"):
|
2014-02-10 14:03:53 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
"/xpcom/base",
|
|
|
|
]
|
|
|
|
|
2019-08-16 21:44:10 +00:00
|
|
|
DIRS += [
|
|
|
|
"build",
|
|
|
|
"gtest",
|
|
|
|
]
|
2014-07-23 04:33:09 +00:00
|
|
|
|
2016-08-22 11:53:38 +00:00
|
|
|
if CONFIG["OS_ARCH"] == "WINNT":
|
|
|
|
DIRS += ["dummydll"]
|
|
|
|
|
2014-07-23 04:33:09 +00:00
|
|
|
# js needs to come after xul for now, because it is an archive and its content
|
|
|
|
# is discarded when it comes first.
|
|
|
|
USE_LIBS += [
|
|
|
|
"js",
|
|
|
|
]
|
|
|
|
|
|
|
|
USE_LIBS += [
|
2015-07-02 04:11:46 +00:00
|
|
|
"lgpllibs",
|
2014-08-07 05:21:03 +00:00
|
|
|
"nspr",
|
|
|
|
"nss",
|
2016-10-06 07:23:38 +00:00
|
|
|
"psshparser",
|
2014-08-07 05:21:03 +00:00
|
|
|
"sqlite",
|
|
|
|
"zlib",
|
2014-07-23 04:33:09 +00:00
|
|
|
]
|
|
|
|
|
2019-08-21 12:25:42 +00:00
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
|
2021-04-22 13:56:57 +00:00
|
|
|
# The mozgtk library is a workaround that makes Gtk+ use libwayland-client
|
|
|
|
# instead of mozwayland. The reason it works is that by being a dependency
|
|
|
|
# of libxul, mozgtk appears in dependentlibs.list, preceding mozwayland
|
|
|
|
# (which is important and guaranteed by the USE_LIBS order in this file).
|
|
|
|
# That, in turn, makes firefox dlopen() mozgtk before mozwayland, which
|
|
|
|
# will trigger the loading of the Gtk+ libraries (mozgtk depending on them).
|
|
|
|
# Those libraries, if they depend on libwayland-client, will use the symbols
|
|
|
|
# from libwayland-client because mozwayland is not loaded yet.
|
|
|
|
# When eventually libxul is loaded after both mozgtk and mozwayland, it will
|
|
|
|
# get symbols from libwayland-client too.
|
|
|
|
# In the case where Gtk+ doesn't have wayland support, libwayland-client is
|
|
|
|
# not loaded, and libxul ends up using the mozwayland symbols.
|
|
|
|
USE_LIBS += [
|
|
|
|
"mozgtk",
|
|
|
|
]
|
2021-04-20 01:57:03 +00:00
|
|
|
OS_LIBS += CONFIG["MOZ_GTK3_LIBS"]
|
2014-07-23 04:33:09 +00:00
|
|
|
|
2017-10-18 12:34:27 +00:00
|
|
|
if CONFIG["MOZ_WAYLAND"]:
|
|
|
|
USE_LIBS += [
|
|
|
|
"mozwayland",
|
|
|
|
]
|
|
|
|
|
2014-07-23 04:33:09 +00:00
|
|
|
if CONFIG["MOZ_JPROF"]:
|
|
|
|
USE_LIBS += [
|
|
|
|
"jprof",
|
|
|
|
]
|
|
|
|
|
2019-08-21 12:25:42 +00:00
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk" or CONFIG["MOZ_TREE_FREETYPE"]:
|
2014-08-07 05:21:03 +00:00
|
|
|
USE_LIBS += [
|
|
|
|
"freetype",
|
|
|
|
]
|
2014-07-24 15:55:33 +00:00
|
|
|
|
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
|
|
|
|
CXXFLAGS += CONFIG["TK_CFLAGS"]
|
2014-08-05 22:25:33 +00:00
|
|
|
|
|
|
|
if CONFIG["MOZ_WEBRTC"]:
|
|
|
|
if CONFIG["OS_TARGET"] == "WINNT":
|
|
|
|
OS_LIBS += [
|
|
|
|
"secur32",
|
|
|
|
"iphlpapi",
|
|
|
|
"strmiids",
|
|
|
|
"dmoguids",
|
|
|
|
"wmcodecdspuuid",
|
|
|
|
"amstrmid",
|
|
|
|
"msdmo",
|
|
|
|
"wininet",
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
|
|
|
|
OS_LIBS += [
|
|
|
|
"-framework OpenGL",
|
|
|
|
"-framework SystemConfiguration",
|
2016-05-19 14:48:55 +00:00
|
|
|
"-framework AVFoundation",
|
|
|
|
"-framework CoreMedia",
|
2014-08-05 22:25:33 +00:00
|
|
|
"-framework IOKit",
|
|
|
|
"-F%s" % CONFIG["MACOS_PRIVATE_FRAMEWORKS_DIR"],
|
|
|
|
"-framework CoreUI",
|
2015-04-30 19:41:21 +00:00
|
|
|
"-framework CoreSymbolication",
|
2014-08-05 22:25:33 +00:00
|
|
|
"cups",
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG["MOZ_WMF"]:
|
|
|
|
OS_LIBS += [
|
|
|
|
"mfuuid",
|
|
|
|
"wmcodecdspuuid",
|
|
|
|
"strmiids",
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG["OS_ARCH"] == "FreeBSD":
|
|
|
|
OS_LIBS += [
|
|
|
|
"util",
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG["OS_ARCH"] == "WINNT":
|
|
|
|
OS_LIBS += [
|
2016-04-23 08:55:50 +00:00
|
|
|
"crypt32",
|
2014-08-05 22:25:33 +00:00
|
|
|
"shell32",
|
2019-04-15 17:56:43 +00:00
|
|
|
"ntdll",
|
2014-08-05 22:25:33 +00:00
|
|
|
"ole32",
|
|
|
|
"version",
|
|
|
|
"winspool",
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG["OS_ARCH"] == "Linux" and CONFIG["OS_TARGET"] != "Android":
|
|
|
|
OS_LIBS += [
|
|
|
|
"rt",
|
|
|
|
]
|
|
|
|
|
2017-11-03 00:16:11 +00:00
|
|
|
if CONFIG["MOZ_ANDROID_GOOGLE_VR"]:
|
|
|
|
OS_LIBS += [
|
|
|
|
"-L%s" % CONFIG["MOZ_ANDROID_GOOGLE_VR_LIBS"],
|
|
|
|
"-lgvr",
|
|
|
|
]
|
|
|
|
|
2016-02-01 15:49:34 +00:00
|
|
|
if CONFIG["MOZ_SYSTEM_JPEG"]:
|
2014-08-05 22:25:33 +00:00
|
|
|
OS_LIBS += CONFIG["MOZ_JPEG_LIBS"]
|
|
|
|
|
2016-02-01 15:49:34 +00:00
|
|
|
if CONFIG["MOZ_SYSTEM_PNG"]:
|
2014-08-05 22:25:33 +00:00
|
|
|
OS_LIBS += CONFIG["MOZ_PNG_LIBS"]
|
|
|
|
|
2018-10-03 21:40:47 +00:00
|
|
|
if CONFIG["MOZ_SYSTEM_WEBP"]:
|
|
|
|
OS_LIBS += CONFIG["MOZ_WEBP_LIBS"]
|
|
|
|
|
2016-02-01 15:49:34 +00:00
|
|
|
if CONFIG["MOZ_SYSTEM_LIBEVENT"]:
|
2014-08-05 22:25:33 +00:00
|
|
|
OS_LIBS += CONFIG["MOZ_LIBEVENT_LIBS"]
|
|
|
|
|
2016-02-01 15:49:34 +00:00
|
|
|
if CONFIG["MOZ_SYSTEM_LIBVPX"]:
|
2014-08-05 22:25:33 +00:00
|
|
|
OS_LIBS += CONFIG["MOZ_LIBVPX_LIBS"]
|
|
|
|
|
|
|
|
if not CONFIG["MOZ_TREE_PIXMAN"]:
|
|
|
|
OS_LIBS += CONFIG["MOZ_PIXMAN_LIBS"]
|
|
|
|
|
|
|
|
if CONFIG["HAVE_CLOCK_MONOTONIC"]:
|
|
|
|
OS_LIBS += CONFIG["REALTIME_LIBS"]
|
|
|
|
|
|
|
|
OS_LIBS += CONFIG["ICONV_LIBS"]
|
|
|
|
|
2015-06-10 15:10:40 +00:00
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] in ("cocoa", "uikit"):
|
2014-08-05 22:25:33 +00:00
|
|
|
OS_LIBS += CONFIG["TK_LIBS"]
|
|
|
|
|
2019-11-15 06:33:19 +00:00
|
|
|
if CONFIG["OS_ARCH"] == "OpenBSD":
|
|
|
|
OS_LIBS += [
|
|
|
|
"sndio",
|
|
|
|
]
|
|
|
|
|
2014-08-05 22:25:33 +00:00
|
|
|
if CONFIG["MOZ_ENABLE_DBUS"]:
|
|
|
|
OS_LIBS += CONFIG["MOZ_DBUS_GLIB_LIBS"]
|
2020-10-26 18:34:53 +00:00
|
|
|
|
2019-08-21 12:25:42 +00:00
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
|
|
|
|
OS_LIBS += [l for l in CONFIG["TK_LIBS"] if l not in ("-lgtk-3", "-lgdk-3")]
|
2021-07-30 11:39:39 +00:00
|
|
|
OS_LIBS += CONFIG["MOZ_X11_LIBS"]
|
2014-08-05 22:25:33 +00:00
|
|
|
OS_LIBS += CONFIG["MOZ_PANGO_LIBS"]
|
|
|
|
|
|
|
|
if CONFIG["MOZ_ENABLE_LIBPROXY"]:
|
|
|
|
OS_LIBS += CONFIG["MOZ_LIBPROXY_LIBS"]
|
|
|
|
|
|
|
|
if CONFIG["OS_ARCH"] == "FreeBSD":
|
|
|
|
OS_LIBS += [
|
|
|
|
"util",
|
|
|
|
]
|
|
|
|
|
2019-11-14 04:59:56 +00:00
|
|
|
if CONFIG["OS_ARCH"] == "Darwin":
|
|
|
|
OS_LIBS += [
|
|
|
|
# Link to Metal as required by the Metal gfx-hal backend
|
2019-11-28 15:56:54 +00:00
|
|
|
"-weak_framework Metal",
|
2020-12-21 18:10:30 +00:00
|
|
|
"-weak_framework MediaPlayer",
|
2019-11-14 04:59:56 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
2014-08-05 22:25:33 +00:00
|
|
|
if CONFIG["OS_ARCH"] == "WINNT":
|
|
|
|
OS_LIBS += [
|
|
|
|
"shell32",
|
|
|
|
"ole32",
|
|
|
|
"version",
|
|
|
|
"winspool",
|
|
|
|
"comdlg32",
|
|
|
|
"imm32",
|
|
|
|
"msimg32",
|
2016-05-11 11:05:25 +00:00
|
|
|
"netapi32",
|
2014-08-05 22:25:33 +00:00
|
|
|
"shlwapi",
|
|
|
|
"ws2_32",
|
2020-02-14 11:40:57 +00:00
|
|
|
"dnsapi",
|
2017-02-10 03:06:23 +00:00
|
|
|
"dwmapi",
|
2014-08-05 22:25:33 +00:00
|
|
|
"iphlpapi",
|
|
|
|
"uxtheme",
|
|
|
|
"setupapi",
|
|
|
|
"secur32",
|
|
|
|
"sensorsapi",
|
|
|
|
"portabledeviceguids",
|
|
|
|
"wininet",
|
|
|
|
"wintrust",
|
|
|
|
"wtsapi32",
|
2015-07-29 10:27:22 +00:00
|
|
|
"locationapi",
|
|
|
|
"sapi",
|
2017-02-03 19:38:17 +00:00
|
|
|
"dxguid",
|
2018-08-30 20:17:15 +00:00
|
|
|
"dhcpcsvc",
|
2019-11-14 04:59:56 +00:00
|
|
|
# gfx-rs supports D3D11 and D3D12, but we are not linking to them implicitly
|
|
|
|
# "d3d11", # should be explicitly linked by gfx-backend-d3d11
|
|
|
|
#'d3d12', # should be explicitly linked by d3d12-rs
|
|
|
|
"d3dcompiler",
|
2014-08-05 22:25:33 +00:00
|
|
|
]
|
2018-10-03 08:57:23 +00:00
|
|
|
|
2019-02-14 21:45:27 +00:00
|
|
|
if CONFIG["CC_TYPE"] == "clang-cl":
|
2018-10-03 08:57:23 +00:00
|
|
|
OS_LIBS += [
|
|
|
|
"runtimeobject",
|
|
|
|
]
|
|
|
|
|
2014-08-05 22:25:33 +00:00
|
|
|
if CONFIG["ACCESSIBILITY"]:
|
|
|
|
OS_LIBS += [
|
|
|
|
"oleacc",
|
|
|
|
]
|
|
|
|
|
2019-11-14 04:59:56 +00:00
|
|
|
# Prevent winapi-rs from statically linking
|
|
|
|
LIBRARY_DEFINES["WINAPI_NO_BUNDLED_LIBRARIES"] = True
|
|
|
|
|
2014-08-05 22:25:33 +00:00
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
|
|
|
|
OS_LIBS += [
|
|
|
|
"usp10",
|
|
|
|
"oleaut32",
|
|
|
|
]
|
2014-08-07 05:21:03 +00:00
|
|
|
|
2019-06-06 04:35:02 +00:00
|
|
|
# The buildid is refreshed on every (incremental) build. But we want to avoid
|
|
|
|
# rebuilding libxul every time, so instead of having a source file that
|
|
|
|
# #include's buildid.h, which would have a dependency on it, and that would
|
|
|
|
# thus trigger make to rebuild everything, we generate a source with the
|
|
|
|
# buildid hard coded in it. Then we make that source file depend on all the
|
|
|
|
# objects files that constitute libxul, so that if any of the files linked into
|
|
|
|
# libxul is rebuilt, we refresh the buildid and link it into libxul.
|
2020-08-18 17:07:50 +00:00
|
|
|
|
|
|
|
if CONFIG["COMPILE_ENVIRONMENT"]:
|
|
|
|
SOURCES += ["!buildid.cpp"]
|
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] in ("cocoa", "uikit"):
|
|
|
|
libxul_list = "XUL"
|
|
|
|
else:
|
|
|
|
libxul_list = "%sxul_%s" % (
|
|
|
|
CONFIG["DLL_PREFIX"],
|
|
|
|
CONFIG["DLL_SUFFIX"].lstrip(".").replace(".", "_"),
|
|
|
|
)
|
|
|
|
GeneratedFile(
|
|
|
|
"buildid.cpp", script="gen_buildid.py", inputs=["!build/%s.list" % libxul_list]
|
|
|
|
)
|