2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:18 +04:00
|
|
|
# vim: set filetype=python:
|
2012-05-21 15:12:37 +04:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
1998-08-20 00:42:14 +04:00
|
|
|
|
2013-02-26 00:47:18 +04:00
|
|
|
TEST_DIRS += ["crashinjectdll"]
|
|
|
|
|
2013-05-01 22:05:40 +04:00
|
|
|
if CONFIG["ENABLE_TESTS"]:
|
2014-09-03 09:10:54 +04:00
|
|
|
Program("crashinject")
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
"crashinject.cpp",
|
|
|
|
]
|
2014-02-11 18:12:33 +04:00
|
|
|
USE_STATIC_LIBS = True
|
2013-12-09 08:39:26 +04:00
|
|
|
|
|
|
|
NO_PGO = True
|
2016-04-07 19:39:40 +03:00
|
|
|
|
2021-05-04 23:45:43 +03:00
|
|
|
# See comment about *-windows-gnu targets in config/makefiles/rust.mk
|
|
|
|
if CONFIG["CC_TYPE"] == "clang":
|
|
|
|
GeneratedFile(
|
|
|
|
"libgcc.a",
|
|
|
|
"libgcc_eh.a",
|
|
|
|
"libpthread.a",
|
|
|
|
script="dummy_libs.py",
|
|
|
|
flags=["libgcc_eh.a", "libpthread.a"],
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2016-06-17 10:58:36 +03:00
|
|
|
if CONFIG["WIN32_REDIST_DIR"] and CONFIG["COMPILE_ENVIRONMENT"]:
|
2023-05-12 00:30:15 +03:00
|
|
|
for f in ["MSVC_C_RUNTIME_DLL", "MSVC_C_RUNTIME_1_DLL", "MSVC_CXX_RUNTIME_DLL"]:
|
|
|
|
if CONFIG[f]:
|
|
|
|
FINAL_TARGET_FILES += ["%%%s/%s" % (CONFIG["WIN32_REDIST_DIR"], CONFIG[f])]
|