moz.build 939 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. TEST_DIRS += ['gtest']
  6. XPIDL_SOURCES += [
  7. 'nsISemanticUnitScanner.idl',
  8. ]
  9. XPIDL_MODULE = 'lwbrk'
  10. EXPORTS += [
  11. 'nsILineBreaker.h',
  12. 'nsIWordBreaker.h',
  13. 'nsLWBrkCIID.h',
  14. ]
  15. UNIFIED_SOURCES += [
  16. 'nsJISx4051LineBreaker.cpp',
  17. 'nsSampleWordBreaker.cpp',
  18. 'nsSemanticUnitScanner.cpp',
  19. ]
  20. if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
  21. SOURCES += [
  22. 'nsPangoBreaker.cpp',
  23. ]
  24. CXXFLAGS += CONFIG['MOZ_PANGO_CFLAGS']
  25. elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
  26. SOURCES += [
  27. 'nsUniscribeBreaker.cpp',
  28. ]
  29. else:
  30. SOURCES += [
  31. 'nsRuleBreaker.cpp',
  32. ]
  33. SOURCES += [
  34. 'rulebrk.c',
  35. ]
  36. FINAL_LIBRARY = 'xul'