moz.build 894 B

12345678910111213141516171819202122232425262728
  1. # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. TEST_DIRS += ['crashinjectdll']
  6. if CONFIG['ENABLE_TESTS']:
  7. Program('crashinject')
  8. SOURCES += [
  9. 'crashinject.cpp',
  10. ]
  11. USE_STATIC_LIBS = True
  12. NO_PGO = True
  13. if CONFIG['WIN32_REDIST_DIR'] and CONFIG['COMPILE_ENVIRONMENT']:
  14. for f in ['MSVC_C_RUNTIME_DLL', 'MSVC_CXX_RUNTIME_DLL']:
  15. FINAL_TARGET_FILES += [
  16. '%%%s/%s' % (CONFIG['WIN32_REDIST_DIR'], CONFIG[f])
  17. ]
  18. if CONFIG['WIN_UCRT_REDIST_DIR'] and CONFIG['COMPILE_ENVIRONMENT']:
  19. for f in ['api-ms-win-*.dll', 'ucrtbase.dll']:
  20. FINAL_TARGET_FILES += [
  21. '%%%s/%s' % (CONFIG['WIN_UCRT_REDIST_DIR'], f)
  22. ]