Backed out changeset bcbab342eed8 (bug 1889658) for causing wpt reftest failures...
[gecko.git] / toolkit / library / build / moz.build
blobdf0afaab842c1c7b5f3821246b6fd45217e88acc
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/.
7 USE_LIBS += [
8     "static:xul",
11 # This library is entirely composed of Rust code, and needs to come after
12 # all the C++ code so any possible C++ -> Rust calls can be resolved.
13 USE_LIBS += ["gkrust"]
15 Libxul("xul-real")
17 if CONFIG["COMPILE_ENVIRONMENT"]:
18     if CONFIG["MOZ_WIDGET_TOOLKIT"] in ("cocoa", "uikit"):
19         full_libname = SHARED_LIBRARY_NAME
20     else:
21         full_libname = "%s%s%s" % (
22             CONFIG["DLL_PREFIX"],
23             SHARED_LIBRARY_NAME,
24             CONFIG["DLL_SUFFIX"],
25         )
26     GeneratedFile(
27         "dependentlibs.list",
28         "dependentlibs.list.gtest",
29         script="dependentlibs.py",
30         entry_point="gen_list",
31         inputs=["!%s" % full_libname],
32     )
33     FINAL_TARGET_FILES += ["!dependentlibs.list", "!dependentlibs.list.gtest"]
35 # Generate GDB pretty printer-autoload files only on Linux. OSX's GDB is
36 # too old to support Python pretty-printers; if this changes, we could
37 # make this 'ifdef __GNUC__'.
38 if CONFIG["OS_ARCH"] == "Linux":
39     # Create a GDB Python auto-load file alongside the libxul shared library
40     # in the build directory.
41     DEFINES["topsrcdir"] = TOPSRCDIR
42     OBJDIR_FILES.toolkit.library.build += ["../libxul.so-gdb.py"]