moz.build 925 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. EXTRA_COMPONENTS += [
  6. 'NotificationStorage.js',
  7. 'NotificationStorage.manifest',
  8. ]
  9. EXTRA_JS_MODULES += ['NotificationDB.jsm']
  10. EXPORTS.mozilla.dom += [
  11. 'DesktopNotification.h',
  12. 'Notification.h',
  13. 'NotificationEvent.h',
  14. ]
  15. SOURCES += [
  16. 'DesktopNotification.cpp',
  17. 'Notification.cpp',
  18. 'NotificationEvent.cpp',
  19. ]
  20. include('/ipc/chromium/chromium-config.mozbuild')
  21. FINAL_LIBRARY = 'xul'
  22. LOCAL_INCLUDES += [
  23. '/dom/base',
  24. '/dom/ipc',
  25. '/dom/workers',
  26. ]
  27. BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini']
  28. XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
  29. if CONFIG['GNU_CXX']:
  30. CXXFLAGS += ['-Wno-error=shadow']