moz.build 829 B

1234567891011121314151617181920212223242526272829
  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. Library('mfbt_staticruntime')
  6. include('../objs.mozbuild')
  7. UNIFIED_SOURCES += mfbt_src_cppsrcs
  8. DEFINES['IMPL_MFBT'] = True
  9. SOURCES += mfbt_nonunified_src_cppsrcs
  10. USE_STATIC_LIBS = True
  11. DISABLE_STL_WRAPPING = True
  12. # Suppress warnings in third-party LZ4 code.
  13. # TODO: Remove these suppressions after bug 993267 is fixed.
  14. if CONFIG['GNU_CXX']:
  15. SOURCES['/mfbt/Compression.cpp'].flags += ['-Wno-unused-function']
  16. if CONFIG['_MSC_VER']:
  17. # Error 4804 is "'>' : unsafe use of type 'bool' in operation"
  18. SOURCES['/mfbt/Compression.cpp'].flags += ['-wd4804']