moz.build 830 B

1234567891011121314151617181920212223242526272829303132333435
  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. NO_VISIBILITY_FLAGS = True
  6. if CONFIG['WRAP_STL_INCLUDES']:
  7. DEFINES['_HAS_EXCEPTIONS'] = 0
  8. if CONFIG['MOZ_MSVC_STL_WRAP_RAISE']:
  9. SOURCES += [
  10. '../msvc_raise_wrappers.cpp',
  11. ]
  12. UNIFIED_SOURCES += [
  13. '../mozalloc.cpp',
  14. '../mozalloc_abort.cpp',
  15. '../mozalloc_oom.cpp',
  16. ]
  17. # Keep this file separate to avoid #include'ing windows.h everywhere.
  18. SOURCES += [
  19. '../winheap.cpp',
  20. ]
  21. LOCAL_INCLUDES += ['!/xpcom']
  22. DISABLE_STL_WRAPPING = True
  23. DEFINES['IMPL_MFBT'] = True
  24. USE_STATIC_LIBS = True
  25. Library('mozalloc_staticruntime')