moz.build 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. if CONFIG['OS_ARCH'] == 'WINNT':
  6. DIRS += ['win']
  7. LOCAL_INCLUDES += [
  8. '/accessible/ipc/win',
  9. '/accessible/windows/ia2',
  10. '/accessible/windows/msaa',
  11. ]
  12. else:
  13. DIRS += ['other']
  14. LOCAL_INCLUDES += [
  15. '/accessible/ipc/other',
  16. ]
  17. if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
  18. LOCAL_INCLUDES += [
  19. '/accessible/atk',
  20. ]
  21. else:
  22. LOCAL_INCLUDES += [
  23. '/accessible/other',
  24. ]
  25. EXPORTS.mozilla.a11y += [
  26. 'IPCTypes.h',
  27. ]
  28. if CONFIG['GNU_CXX']:
  29. CXXFLAGS += ['-Wno-error=shadow']
  30. if CONFIG['ACCESSIBILITY']:
  31. EXPORTS.mozilla.a11y += [
  32. 'DocAccessibleChildBase.h',
  33. 'DocAccessibleParent.h',
  34. 'ProxyAccessibleBase.h',
  35. 'ProxyAccessibleShared.h',
  36. ]
  37. SOURCES += [
  38. 'DocAccessibleChildBase.cpp',
  39. 'DocAccessibleParent.cpp',
  40. 'ProxyAccessibleBase.cpp',
  41. ]
  42. LOCAL_INCLUDES += [
  43. '/accessible/base',
  44. '/accessible/generic',
  45. '/accessible/xpcom',
  46. ]
  47. include('/ipc/chromium/chromium-config.mozbuild')
  48. FINAL_LIBRARY = 'xul'