moz.build 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 += [
  6. 'D3DMessageUtils.h',
  7. 'GfxMessageUtils.h'
  8. ]
  9. EXPORTS.mozilla.gfx += [
  10. 'GPUChild.h',
  11. 'GPUParent.h',
  12. 'GPUProcessHost.h',
  13. 'GPUProcessImpl.h',
  14. 'GPUProcessListener.h',
  15. 'GPUProcessManager.h',
  16. 'SharedDIB.h',
  17. 'VsyncBridgeChild.h',
  18. 'VsyncBridgeParent.h',
  19. 'VsyncIOThreadHolder.h',
  20. ]
  21. EXPORTS.mozilla.layers += [
  22. 'CompositorSession.h',
  23. 'InProcessCompositorSession.h',
  24. 'RemoteCompositorSession.h',
  25. ]
  26. EXPORTS.mozilla.widget += [
  27. 'CompositorWidgetVsyncObserver.h',
  28. ]
  29. if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
  30. EXPORTS.mozilla.gfx += [
  31. 'SharedDIBSurface.h',
  32. 'SharedDIBWin.h',
  33. ]
  34. SOURCES += [
  35. 'SharedDIBSurface.cpp',
  36. 'SharedDIBWin.cpp',
  37. ]
  38. SOURCES += [
  39. 'CompositorSession.cpp',
  40. 'CompositorWidgetVsyncObserver.cpp',
  41. 'D3DMessageUtils.cpp',
  42. 'GPUChild.cpp',
  43. 'GPUProcessHost.cpp',
  44. 'GPUProcessImpl.cpp',
  45. 'GPUProcessManager.cpp',
  46. 'InProcessCompositorSession.cpp',
  47. 'RemoteCompositorSession.cpp',
  48. 'SharedDIB.cpp',
  49. 'VsyncBridgeChild.cpp',
  50. 'VsyncBridgeParent.cpp',
  51. 'VsyncIOThreadHolder.cpp',
  52. ]
  53. SOURCES += [
  54. 'GPUParent.cpp',
  55. ]
  56. IPDL_SOURCES = [
  57. 'GraphicsMessages.ipdlh',
  58. 'PGPU.ipdl',
  59. 'PVsyncBridge.ipdl',
  60. ]
  61. LOCAL_INCLUDES += [
  62. '/dom/ipc',
  63. '/xpcom/threads',
  64. ]
  65. include('/ipc/chromium/chromium-config.mozbuild')
  66. FINAL_LIBRARY = 'xul'
  67. CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
  68. CXXFLAGS += CONFIG['TK_CFLAGS']