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
|
|
|
|
2016-06-17 10:58:36 +03:00
|
|
|
if CONFIG['WIN32_REDIST_DIR'] and CONFIG['COMPILE_ENVIRONMENT']:
|
2016-04-07 19:39:40 +03:00
|
|
|
for f in ['MSVC_C_RUNTIME_DLL', 'MSVC_CXX_RUNTIME_DLL']:
|
|
|
|
FINAL_TARGET_FILES += [
|
|
|
|
'%%%s/%s' % (CONFIG['WIN32_REDIST_DIR'], CONFIG[f])
|
|
|
|
]
|
|
|
|
|
2016-06-17 10:58:36 +03:00
|
|
|
if CONFIG['WIN_UCRT_REDIST_DIR'] and CONFIG['COMPILE_ENVIRONMENT']:
|
2016-04-07 19:39:40 +03:00
|
|
|
for f in ['api-ms-win-*.dll', 'ucrtbase.dll']:
|
|
|
|
FINAL_TARGET_FILES += [
|
|
|
|
'%%%s/%s' % (CONFIG['WIN_UCRT_REDIST_DIR'], f)
|
|
|
|
]
|
2018-05-03 22:53:53 +03:00
|
|
|
|
|
|
|
if CONFIG['LLVM_SYMBOLIZER'] and CONFIG['WIN_DIA_SDK_BIN_DIR']:
|
|
|
|
# On Windows, llvm-symbolizer depends on the MS DIA library.
|
|
|
|
FINAL_TARGET_FILES += [
|
|
|
|
'%%%s/msdia140.dll' % CONFIG['WIN_DIA_SDK_BIN_DIR']
|
|
|
|
]
|
2018-07-31 16:10:07 +03:00
|
|
|
|
|
|
|
if CONFIG['CC_TYPE'] == 'clang-cl':
|
|
|
|
AllowCompilerWarnings() # workaround for bug 1090497
|