moz.build 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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('/build/gyp.mozbuild')
  6. GYP_DIRS += [
  7. 'nICEr',
  8. 'nrappkit',
  9. ]
  10. # These files cannot be built in unified mode because of name clashes on RCSSTRING
  11. nICEr_non_unified_sources = [
  12. 'nICEr/src/crypto/nr_crypto.c',
  13. 'nICEr/src/ice/ice_candidate.c',
  14. 'nICEr/src/ice/ice_candidate_pair.c',
  15. 'nICEr/src/ice/ice_component.c',
  16. 'nICEr/src/ice/ice_ctx.c',
  17. 'nICEr/src/ice/ice_media_stream.c',
  18. 'nICEr/src/ice/ice_parser.c',
  19. 'nICEr/src/ice/ice_peer_ctx.c',
  20. 'nICEr/src/ice/ice_socket.c',
  21. 'nICEr/src/net/nr_socket.c',
  22. 'nICEr/src/net/transport_addr.c',
  23. 'nICEr/src/net/transport_addr_reg.c',
  24. 'nICEr/src/stun/addrs.c',
  25. 'nICEr/src/stun/nr_socket_turn.c',
  26. 'nICEr/src/stun/stun_build.c',
  27. 'nICEr/src/stun/stun_client_ctx.c',
  28. 'nICEr/src/stun/stun_codec.c',
  29. 'nICEr/src/stun/stun_hint.c',
  30. 'nICEr/src/stun/stun_msg.c',
  31. 'nICEr/src/stun/stun_proc.c',
  32. 'nICEr/src/stun/stun_server_ctx.c',
  33. 'nICEr/src/stun/stun_util.c',
  34. 'nICEr/src/stun/turn_client_ctx.c',
  35. 'nICEr/src/util/cb_args.c',
  36. 'nICEr/src/util/ice_util.c',
  37. ]
  38. # This file cannot be built in unified mode because it breaks Linux ASAN builds
  39. nICEr_non_unified_sources += [
  40. 'nICEr/src/util/mbslen.c',
  41. ]
  42. nrappkit_non_unified_sources = [
  43. 'nrappkit/src/log/r_log.c',
  44. 'nrappkit/src/util/byteorder.c',
  45. 'nrappkit/src/util/hex.c',
  46. 'nrappkit/src/util/libekr/debug.c',
  47. 'nrappkit/src/util/libekr/r_assoc.c',
  48. 'nrappkit/src/util/libekr/r_crc32.c',
  49. 'nrappkit/src/util/libekr/r_data.c',
  50. 'nrappkit/src/util/libekr/r_errors.c',
  51. 'nrappkit/src/util/libekr/r_list.c',
  52. 'nrappkit/src/util/libekr/r_memory.c',
  53. 'nrappkit/src/util/libekr/r_replace.c',
  54. 'nrappkit/src/util/libekr/r_time.c',
  55. 'nrappkit/src/util/p_buf.c',
  56. 'nrappkit/src/util/util.c',
  57. ]
  58. GYP_DIRS['nICEr'].input = 'nICEr/nicer.gyp'
  59. GYP_DIRS['nICEr'].variables = gyp_vars
  60. # We allow warnings for third-party code that can be updated from upstream.
  61. GYP_DIRS['nICEr'].sandbox_vars['ALLOW_COMPILER_WARNINGS'] = True
  62. GYP_DIRS['nICEr'].sandbox_vars['FINAL_LIBRARY'] = 'webrtc'
  63. GYP_DIRS['nICEr'].non_unified_sources += nICEr_non_unified_sources
  64. GYP_DIRS['nrappkit'].input = 'nrappkit/nrappkit.gyp'
  65. GYP_DIRS['nrappkit'].variables = gyp_vars
  66. # We allow warnings for third-party code that can be updated from upstream.
  67. GYP_DIRS['nrappkit'].sandbox_vars['ALLOW_COMPILER_WARNINGS'] = True
  68. GYP_DIRS['nrappkit'].sandbox_vars['FINAL_LIBRARY'] = 'webrtc'
  69. GYP_DIRS['nrappkit'].non_unified_sources += nrappkit_non_unified_sources