moz.build 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.a11y += [
  6. 'Accessible.h',
  7. 'DocAccessible.h',
  8. 'HyperTextAccessible.h',
  9. ]
  10. SOURCES += [
  11. 'Accessible.cpp',
  12. 'ApplicationAccessible.cpp',
  13. 'ARIAGridAccessible.cpp',
  14. 'BaseAccessibles.cpp',
  15. 'DocAccessible.cpp',
  16. 'FormControlAccessible.cpp',
  17. 'HyperTextAccessible.cpp',
  18. 'ImageAccessible.cpp',
  19. 'OuterDocAccessible.cpp',
  20. 'RootAccessible.cpp',
  21. 'TableCellAccessible.cpp',
  22. 'TextLeafAccessible.cpp',
  23. ]
  24. LOCAL_INCLUDES += [
  25. '/accessible/base',
  26. '/accessible/html',
  27. '/accessible/xpcom',
  28. '/accessible/xul',
  29. '/dom/base',
  30. '/layout/generic',
  31. '/layout/xul',
  32. ]
  33. if CONFIG['OS_ARCH'] == 'WINNT':
  34. LOCAL_INCLUDES += [
  35. '/accessible/ipc/win',
  36. ]
  37. else:
  38. LOCAL_INCLUDES += [
  39. '/accessible/ipc/other',
  40. ]
  41. if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
  42. LOCAL_INCLUDES += [
  43. '/accessible/atk',
  44. ]
  45. elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
  46. LOCAL_INCLUDES += [
  47. '/accessible/windows/ia2',
  48. '/accessible/windows/msaa',
  49. ]
  50. else:
  51. LOCAL_INCLUDES += [
  52. '/accessible/other',
  53. ]
  54. FINAL_LIBRARY = 'xul'
  55. include('/ipc/chromium/chromium-config.mozbuild')
  56. if CONFIG['GNU_CXX']:
  57. CXXFLAGS += ['-Wno-error=shadow']