moz.build 877 B

12345678910111213141516171819202122232425262728293031323334
  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. if CONFIG['MOZ_FOLD_LIBS']:
  6. Library('plds4')
  7. else:
  8. SharedLibrary('plds4')
  9. SOURCES += ['/nsprpub/lib/ds/plvrsion.c']
  10. USE_LIBS += ['nspr4']
  11. # We allow warnings for third-party code that can be updated from upstream.
  12. # TODO: fix NSPR warnings and remove this
  13. ALLOW_COMPILER_WARNINGS = True
  14. DEFINES['_NSPR_BUILD_'] = True
  15. LOCAL_INCLUDES += [
  16. '/config/external/nspr',
  17. '/nsprpub/pr/include',
  18. ]
  19. EXPORTS.nspr += [
  20. '/nsprpub/lib/ds/plarena.h',
  21. '/nsprpub/lib/ds/plarenas.h',
  22. '/nsprpub/lib/ds/plhash.h',
  23. ]
  24. SOURCES += [
  25. '/nsprpub/lib/ds/plarena.c',
  26. '/nsprpub/lib/ds/plhash.c',
  27. ]