The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
3.7KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-7 by Raw Material Software ltd.
  5. ------------------------------------------------------------------------------
  6. JUCE can be redistributed and/or modified under the terms of the
  7. GNU General Public License, as published by the Free Software Foundation;
  8. either version 2 of the License, or (at your option) any later version.
  9. JUCE is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with JUCE; if not, visit www.gnu.org/licenses or write to the
  15. Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  16. Boston, MA 02111-1307 USA
  17. ------------------------------------------------------------------------------
  18. If you'd like to release a closed-source product which uses JUCE, commercial
  19. licenses are also available: visit www.rawmaterialsoftware.com/juce for
  20. more information.
  21. ==============================================================================
  22. */
  23. #ifndef __JUCE_LINUX_NATIVEINCLUDES_JUCEHEADER__
  24. #define __JUCE_LINUX_NATIVEINCLUDES_JUCEHEADER__
  25. /*
  26. This file wraps together all the linux-specific headers, so
  27. that we can include them all just once, and compile all our
  28. platform-specific stuff in one big lump, keeping it out of the
  29. way of the rest of the codebase.
  30. */
  31. #include "../../../src/juce_core/basics/juce_StandardHeader.h"
  32. #include <sched.h>
  33. #include <pthread.h>
  34. #include <sys/time.h>
  35. #include <errno.h>
  36. #include <sys/stat.h>
  37. #include <sys/dir.h>
  38. #include <sys/ptrace.h>
  39. #include <sys/vfs.h>
  40. #include <sys/wait.h>
  41. #include <fnmatch.h>
  42. #include <utime.h>
  43. #include <pwd.h>
  44. #include <fcntl.h>
  45. #include <dlfcn.h>
  46. #include <netdb.h>
  47. #include <arpa/inet.h>
  48. #include <netinet/in.h>
  49. #include <sys/types.h>
  50. #include <sys/ioctl.h>
  51. #include <sys/socket.h>
  52. #include <linux/if.h>
  53. #include <sys/sysinfo.h>
  54. #include <sys/file.h>
  55. #include <signal.h>
  56. /* Got a build error here? You'll need to install the freetype library...
  57. The name of the package to install is "libfreetype6-dev".
  58. */
  59. #include <ft2build.h>
  60. #include FT_FREETYPE_H
  61. #include <X11/Xlib.h>
  62. #include <X11/Xatom.h>
  63. #include <X11/Xresource.h>
  64. #include <X11/Xutil.h>
  65. #include <X11/Xmd.h>
  66. #include <X11/keysym.h>
  67. #include <X11/cursorfont.h>
  68. #if JUCE_USE_XINERAMA
  69. /* If you're trying to use Xinerama, you'll need to install the "libxinerama-dev" package.. */
  70. #include <X11/extensions/Xinerama.h>
  71. #endif
  72. #if JUCE_USE_XSHM
  73. #include <X11/extensions/XShm.h>
  74. #include <sys/shm.h>
  75. #include <sys/ipc.h>
  76. #endif
  77. #if JUCE_OPENGL
  78. /* Got an include error here?
  79. If you want to install OpenGL support, the packages to get are "mesa-common-dev"
  80. and "freeglut3-dev".
  81. Alternatively, you can turn off the JUCE_OPENGL flag in juce_Config.h if you
  82. want to disable it.
  83. */
  84. #include <GL/glx.h>
  85. #endif
  86. #undef KeyPress
  87. #if JUCE_ALSA
  88. /* Got an include error here? If so, you've either not got ALSA installed, or you've
  89. not got your paths set up correctly to find its header files.
  90. The package you need to install to get ASLA support is "libasound2-dev".
  91. If you don't have the ALSA library and don't want to build Juce with audio support,
  92. just disable the JUCE_ALSA flag in juce_Config.h
  93. */
  94. #include <alsa/asoundlib.h>
  95. #endif
  96. #undef SIZEOF
  97. #endif // __JUCE_LINUX_NATIVEINCLUDES_JUCEHEADER__