moz.build 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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('plc4')
  7. else:
  8. SharedLibrary('plc4')
  9. SOURCES += ['/nsprpub/lib/libc/src/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. ]
  18. EXPORTS.nspr += [
  19. '/nsprpub/lib/libc/include/plbase64.h',
  20. '/nsprpub/lib/libc/include/plerror.h',
  21. '/nsprpub/lib/libc/include/plgetopt.h',
  22. '/nsprpub/lib/libc/include/plstr.h',
  23. ]
  24. SOURCES += [
  25. '/nsprpub/lib/libc/src/base64.c',
  26. '/nsprpub/lib/libc/src/plerror.c',
  27. '/nsprpub/lib/libc/src/plgetopt.c',
  28. '/nsprpub/lib/libc/src/strcase.c',
  29. '/nsprpub/lib/libc/src/strcat.c',
  30. '/nsprpub/lib/libc/src/strchr.c',
  31. '/nsprpub/lib/libc/src/strcmp.c',
  32. '/nsprpub/lib/libc/src/strcpy.c',
  33. '/nsprpub/lib/libc/src/strdup.c',
  34. '/nsprpub/lib/libc/src/strlen.c',
  35. '/nsprpub/lib/libc/src/strpbrk.c',
  36. '/nsprpub/lib/libc/src/strstr.c',
  37. '/nsprpub/lib/libc/src/strtok.c',
  38. ]