moz.build 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. EXPORTS += [
  6. 'nsNetCID.h',
  7. ]
  8. SOURCES += [
  9. 'nsNetModule.cpp',
  10. ]
  11. include('/ipc/chromium/chromium-config.mozbuild')
  12. FINAL_LIBRARY = 'xul'
  13. LOCAL_INCLUDES += [
  14. '/netwerk/base',
  15. '/netwerk/cache',
  16. '/netwerk/dns',
  17. '/netwerk/mime',
  18. '/netwerk/protocol/about',
  19. '/netwerk/socket',
  20. '/netwerk/streamconv',
  21. '/netwerk/streamconv/converters',
  22. ]
  23. protocols = CONFIG['NECKO_PROTOCOLS']
  24. LOCAL_INCLUDES += sorted([
  25. '/netwerk/protocol/%s' % d for d in protocols if d != 'about'
  26. ])
  27. if CONFIG['OS_ARCH'] == 'WINNT':
  28. LOCAL_INCLUDES += [
  29. '/netwerk/system/win32',
  30. ]
  31. if CONFIG['OS_ARCH'] == 'Linux':
  32. LOCAL_INCLUDES += [
  33. '/netwerk/system/linux',
  34. ]
  35. if CONFIG['NECKO_COOKIES']:
  36. LOCAL_INCLUDES += [
  37. '/netwerk/cookie',
  38. ]
  39. if CONFIG['NECKO_WIFI']:
  40. LOCAL_INCLUDES += [
  41. '/netwerk/wifi',
  42. ]
  43. if CONFIG['MOZ_RTSP']:
  44. LOCAL_INCLUDES += [
  45. '/netwerk/protocol/rtsp',
  46. ]
  47. LOCAL_INCLUDES += [
  48. '!/netwerk/dns',
  49. '/modules/brotli/dec',
  50. ]