moz.build 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. # export required interfaces, even if --disable-cookies has been given
  6. XPIDL_SOURCES += [
  7. 'nsICookie.idl',
  8. 'nsICookie2.idl',
  9. 'nsICookieManager.idl',
  10. 'nsICookieManager2.idl',
  11. 'nsICookiePermission.idl',
  12. 'nsICookieService.idl',
  13. ]
  14. XPIDL_MODULE = 'necko_cookie'
  15. if CONFIG['NECKO_COOKIES']:
  16. EXPORTS.mozilla.net = [
  17. 'CookieServiceChild.h',
  18. 'CookieServiceParent.h',
  19. ]
  20. SOURCES += [
  21. 'CookieServiceChild.cpp',
  22. 'CookieServiceParent.cpp',
  23. 'nsCookie.cpp',
  24. 'nsCookieService.cpp',
  25. ]
  26. LOCAL_INCLUDES += [
  27. '/intl/uconv',
  28. ]
  29. XPCSHELL_TESTS_MANIFESTS += [
  30. 'test/unit/xpcshell.ini',
  31. 'test/unit_ipc/xpcshell.ini',
  32. ]
  33. BROWSER_CHROME_MANIFESTS += [
  34. 'test/browser/browser.ini',
  35. ]
  36. IPDL_SOURCES = [
  37. 'PCookieService.ipdl',
  38. ]
  39. include('/ipc/chromium/chromium-config.mozbuild')
  40. FINAL_LIBRARY = 'xul'
  41. if CONFIG['GNU_CXX']:
  42. CXXFLAGS += ['-Wno-error=shadow']