moz.build 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. DIRS += [
  6. 'mdns',
  7. ]
  8. XPIDL_SOURCES += [
  9. 'nsIDNSListener.idl',
  10. 'nsIDNSRecord.idl',
  11. 'nsIDNSService.idl',
  12. 'nsIEffectiveTLDService.idl',
  13. 'nsIIDNService.idl',
  14. 'nsPIDNSService.idl',
  15. ]
  16. XPIDL_MODULE = 'necko_dns'
  17. EXPORTS.mozilla.net += [
  18. 'ChildDNSService.h',
  19. 'DNS.h',
  20. 'DNSListenerProxy.h',
  21. 'DNSRequestChild.h',
  22. 'DNSRequestParent.h',
  23. 'PDNSParams.h',
  24. ]
  25. SOURCES += [
  26. 'ChildDNSService.cpp',
  27. 'DNS.cpp',
  28. 'DNSListenerProxy.cpp',
  29. 'DNSRequestChild.cpp',
  30. 'DNSRequestParent.cpp',
  31. 'GetAddrInfo.cpp',
  32. 'nsDNSService2.cpp',
  33. 'nsEffectiveTLDService.cpp',
  34. 'nsHostResolver.cpp',
  35. 'nsIDNService.cpp',
  36. 'punycode.c',
  37. ]
  38. IPDL_SOURCES = [
  39. 'PDNSRequest.ipdl',
  40. 'PDNSRequestParams.ipdlh',
  41. ]
  42. include('/ipc/chromium/chromium-config.mozbuild')
  43. FINAL_LIBRARY = 'xul'
  44. GENERATED_FILES = [
  45. 'etld_data.inc',
  46. ]
  47. etld_data = GENERATED_FILES['etld_data.inc']
  48. etld_data.script = 'prepare_tlds.py'
  49. etld_data.inputs = ['effective_tld_names.dat']
  50. # need to include etld_data.inc
  51. LOCAL_INCLUDES += [
  52. '/netwerk/base',
  53. ]
  54. USE_LIBS += ['icu']
  55. if CONFIG['GNU_CXX']:
  56. CXXFLAGS += ['-Wno-error=shadow']