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 += ["ipcclientcerts-static"]
9 # On Linux (but not when building for Android), this needs to use the C++
10 # version to avoid linking against the wrong libc symbols.
11 # On Android, this needs to use the C version to avoid multiple definitions
12 # of symbols caused by their presence in libgcc and ipcclientcerts-static.
13 if CONFIG["OS_ARCH"] == "Linux" and CONFIG["OS_TARGET"] != "Android":
22 OS_LIBS += CONFIG["DL_LIBS"]
24 if CONFIG["OS_TARGET"] == "Android":
27 if CONFIG["OS_ARCH"] == "WINNT":
37 # Version string comparison is generally wrong, but by the time it would
38 # actually matter, either bug 1489995 would be fixed, or the build would
39 # require version >= 1.78.
40 if CONFIG["RUSTC_VERSION"] and CONFIG["RUSTC_VERSION"] >= "1.78.0":
45 SharedLibrary("ipcclientcerts")
48 SYMBOLS_FILE = "ipcclientcerts.symbols"