tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

moz.build (1193B)


      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/.
      6 
      7 FINAL_TARGET = "_tests/xpcshell/security/manager/ssl/tests/unit/test_trust_anchors"
      8 
      9 USE_LIBS += ["test-trust-anchors-static"]
     10 
     11 # On Linux (but not when building for Android), this needs to use the C++
     12 # version to avoid linking against the wrong libc symbols.
     13 # On Android, this needs to use the C version to avoid multiple definitions
     14 # of symbols caused by their presence in libgcc and trust-anchors-static.
     15 
     16 if CONFIG["OS_ARCH"] == "Linux" and CONFIG["OS_TARGET"] != "Android":
     17     SOURCES += [
     18         "stub.cpp",
     19     ]
     20 else:
     21     SOURCES += [
     22         "stub.c",
     23     ]
     24 
     25 if CONFIG["OS_TARGET"] == "Android":
     26     OS_LIBS += ["m"]
     27 
     28 if CONFIG["OS_ARCH"] == "WINNT":
     29     OS_LIBS += [
     30         "advapi32",
     31         "bcrypt",
     32         "ntdll",
     33         "synchronization",
     34         "userenv",
     35         "ws2_32",
     36     ]
     37 
     38 SharedLibrary("test_trust_anchors")
     39 
     40 NoVisibilityFlags()
     41 SYMBOLS_FILE = "trust-anchors.symbols"