moz.build (1077B)
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 USE_LIBS += ["builtins-static"] 8 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 builtins-static. 13 14 if CONFIG["OS_ARCH"] == "Linux" and CONFIG["OS_TARGET"] != "Android": 15 SOURCES += [ 16 "stub.cpp", 17 ] 18 else: 19 SOURCES += [ 20 "stub.c", 21 ] 22 23 if CONFIG["OS_TARGET"] == "Android": 24 OS_LIBS += ["m"] 25 26 if CONFIG["OS_ARCH"] == "WINNT": 27 OS_LIBS += [ 28 "advapi32", 29 "bcrypt", 30 "ntdll", 31 "synchronization", 32 "userenv", 33 "ws2_32", 34 ] 35 36 SharedLibrary("nssckbi") 37 38 NoVisibilityFlags() 39 SYMBOLS_FILE = "builtins.symbols"