chkconf.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. * Name: wx/gtk/chkconf.h
  3. * Purpose: wxGTK-specific settings consistency checks
  4. * Author: Vadim Zeitlin
  5. * Created: 2007-07-19 (extracted from wx/chkconf.h)
  6. * Copyright: (c) 2000-2007 Vadim Zeitlin <vadim@wxwidgets.org>
  7. * Licence: wxWindows licence
  8. */
  9. #ifndef __WXUNIVERSAL__
  10. # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
  11. # ifdef wxABORT_ON_CONFIG_ERROR
  12. # error "MDI requires wxUSE_MENUS in wxGTK"
  13. # else
  14. # undef wxUSE_MENUS
  15. # define wxUSE_MENUS 1
  16. # endif
  17. # endif
  18. #endif /* !__WXUNIVERSAL__ */
  19. #if wxUSE_JOYSTICK
  20. # if !wxUSE_THREADS
  21. # ifdef wxABORT_ON_CONFIG_ERROR
  22. # error "wxJoystick requires threads in wxGTK"
  23. # else
  24. # undef wxUSE_JOYSTICK
  25. # define wxUSE_JOYSTICK 0
  26. # endif
  27. # endif
  28. #endif /* wxUSE_JOYSTICK */
  29. #if wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
  30. # undef wxUSE_POSTSCRIPT
  31. # define wxUSE_POSTSCRIPT 1
  32. #endif
  33. #if wxUSE_OWNER_DRAWN
  34. # undef wxUSE_OWNER_DRAWN
  35. # define wxUSE_OWNER_DRAWN 0
  36. #endif
  37. #if wxUSE_METAFILE
  38. # undef wxUSE_METAFILE
  39. # define wxUSE_METAFILE 0
  40. #endif
  41. #if wxUSE_ENH_METAFILE
  42. # undef wxUSE_ENH_METAFILE
  43. # define wxUSE_ENH_METAFILE 0
  44. #endif
  45. #ifndef __UNIX__
  46. # undef wxUSE_WEBVIEW
  47. # define wxUSE_WEBVIEW 0
  48. # undef wxUSE_WEBVIEW_WEBKIT
  49. # define wxUSE_WEBVIEW_WEBKIT 0
  50. # undef wxUSE_MEDIACTRL
  51. # define wxUSE_MEDIACTRL 0
  52. /*
  53. We could use GDK_WINDOWING_X11 for those but this would require
  54. including gdk/gdk.h and we don't want to do it from here, so assume
  55. we're not using X11 if we're not under Unix.
  56. */
  57. # undef wxUSE_UIACTIONSIMULATOR
  58. # define wxUSE_UIACTIONSIMULATOR 0
  59. # undef wxUSE_GLCANVAS
  60. # define wxUSE_GLCANVAS 0
  61. #endif /* __UNIX__ */
  62. /*
  63. We always need Cairo with wxGTK, enable it if necessary (this can only
  64. happen under Windows).
  65. */
  66. #ifdef __WINDOWS__
  67. #if !wxUSE_CAIRO
  68. # undef wxUSE_CAIRO
  69. # define wxUSE_CAIRO 1
  70. #endif
  71. #endif /* __WINDOWS__ */
  72. #ifdef __WXGTK3__
  73. #if !wxUSE_GRAPHICS_CONTEXT
  74. #ifdef wxABORT_ON_CONFIG_ERROR
  75. #error "GTK+ 3 support requires wxGraphicsContext"
  76. #else
  77. #undef wxUSE_GRAPHICS_CONTEXT
  78. #define wxUSE_GRAPHICS_CONTEXT 1
  79. #endif
  80. #endif
  81. #endif