moz.build (1082B)
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 TEST_DIRS += ["crashinjectdll"] 8 9 if CONFIG["ENABLE_TESTS"]: 10 Program("crashinject") 11 SOURCES += [ 12 "crashinject.cpp", 13 ] 14 USE_STATIC_MSVCRT = True 15 16 NO_PGO = True 17 18 # See comment about *-windows-gnu targets in config/makefiles/rust.mk 19 if CONFIG["CC_TYPE"] == "clang": 20 GeneratedFile( 21 "libgcc.a", 22 "libgcc_eh.a", 23 "libpthread.a", 24 script="dummy_libs.py", 25 flags=["libgcc_eh.a", "libpthread.a"], 26 ) 27 28 29 if CONFIG["WIN32_REDIST_DIR"] and CONFIG["COMPILE_ENVIRONMENT"]: 30 for f in [ 31 "MSVC_C_RUNTIME_DLL", 32 "MSVC_C_RUNTIME_1_DLL", 33 "MSVC_CXX_RUNTIME_DLL", 34 "MSVC_CXX_RUNTIME_ATOMIC_WAIT_DLL", 35 ]: 36 if CONFIG[f]: 37 FINAL_TARGET_FILES += ["%%%s/%s" % (CONFIG["WIN32_REDIST_DIR"], CONFIG[f])]