moz.build 1.1 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. EXPORTS.mozilla.dom += [
  6. 'EncodingUtils.h',
  7. 'FallbackEncoding.h',
  8. 'TextDecoder.h',
  9. 'TextEncoder.h',
  10. ]
  11. SOURCES += [
  12. 'EncodingUtils.cpp',
  13. 'FallbackEncoding.cpp',
  14. 'TextDecoder.cpp',
  15. 'TextEncoder.cpp',
  16. ]
  17. FINAL_LIBRARY = 'xul'
  18. LOCAL_INCLUDES += ['/intl/locale']
  19. props2arrays = '/intl/locale/props2arrays.py'
  20. prefixes = (
  21. 'domainsfallbacks',
  22. 'encodingsgroups',
  23. 'labelsencodings',
  24. 'localesfallbacks',
  25. 'nonparticipatingdomains',
  26. )
  27. for prefix in prefixes:
  28. input_file = prefix + '.properties'
  29. header = prefix + '.properties.h'
  30. GENERATED_FILES += [header]
  31. props = GENERATED_FILES[header]
  32. props.script = props2arrays
  33. props.inputs = [input_file]
  34. MOCHITEST_MANIFESTS += [
  35. 'test/mochitest.ini',
  36. ]
  37. MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
  38. XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']