moz.build 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. XPCSHELL_TESTS_MANIFESTS += [
  6. 'test/unit/xpcshell.ini',
  7. 'test/unit_ipc/xpcshell.ini',
  8. ]
  9. XPIDL_SOURCES += [
  10. 'nsIPrefBranch.idl',
  11. 'nsIPrefBranch2.idl',
  12. 'nsIPrefBranchInternal.idl',
  13. 'nsIPrefLocalizedString.idl',
  14. 'nsIPrefService.idl',
  15. 'nsIRelativeFilePref.idl',
  16. ]
  17. XPIDL_MODULE = 'pref'
  18. EXPORTS.mozilla += [
  19. 'Preferences.h',
  20. ]
  21. UNIFIED_SOURCES += [
  22. 'nsPrefBranch.cpp',
  23. 'nsPrefsFactory.cpp',
  24. 'Preferences.cpp',
  25. 'prefread.cpp',
  26. ]
  27. # prefapi.cpp cannot be built in unified mode because it uses plarena.h
  28. SOURCES += [
  29. 'prefapi.cpp',
  30. ]
  31. include('/ipc/chromium/chromium-config.mozbuild')
  32. FINAL_LIBRARY = 'xul'
  33. DEFINES['OS_ARCH'] = CONFIG['OS_ARCH']
  34. DEFINES['MOZ_WIDGET_TOOLKIT'] = CONFIG['MOZ_WIDGET_TOOLKIT']
  35. FINAL_TARGET_PP_FILES += ['goanna.js']