moz.build 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. include('../objs.mozbuild')
  6. UNIFIED_SOURCES += xpcom_gluens_src_cppsrcs
  7. UNIFIED_SOURCES += xpcom_glue_src_cppsrcs
  8. UNIFIED_SOURCES += [
  9. '../GenericModule.cpp',
  10. '../nsStringAPI.cpp',
  11. ]
  12. Library('xpcomglue_staticruntime_s')
  13. SDK_LIBRARY = True
  14. FORCE_STATIC_LIB = True
  15. if CONFIG['_MSC_VER']:
  16. DEFINES['_USE_ANSI_CPP'] = True
  17. # Don't include directives about which CRT to use
  18. CFLAGS += ['-Zl']
  19. CXXFLAGS += ['-Zl']
  20. LOCAL_INCLUDES += [
  21. '../../build',
  22. '../../threads',
  23. ]
  24. # Statically link to the CRT on Windows
  25. USE_STATIC_LIBS = True
  26. # Don't use STL wrappers here (i.e. wrapped <new>); they require mozalloc
  27. DISABLE_STL_WRAPPING = True
  28. # Include fallible for third party code using the xpcom glue
  29. USE_LIBS += [
  30. 'fallible',
  31. ]
  32. # Force to build a static library only
  33. NO_EXPAND_LIBS = True
  34. DIST_INSTALL = True