mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-23 01:44:22 +00:00
140 lines
4.3 KiB
C
140 lines
4.3 KiB
C
/*
|
|
==============================================================================
|
|
|
|
This file is part of the JUCE library - "Jules' Utility Class Extensions"
|
|
Copyright 2004-10 by Raw Material Software Ltd.
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
JUCE can be redistributed and/or modified under the terms of the GNU General
|
|
Public License (Version 2), as published by the Free Software Foundation.
|
|
A copy of the license is included in the JUCE distribution, or can be found
|
|
online at www.gnu.org/licenses.
|
|
|
|
JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
To release a closed-source product which uses JUCE, commercial licenses are
|
|
available: visit www.rawmaterialsoftware.com/juce for more information.
|
|
|
|
==============================================================================
|
|
*/
|
|
|
|
#ifndef __JUCE_LINUX_NATIVEINCLUDES_JUCEHEADER__
|
|
#define __JUCE_LINUX_NATIVEINCLUDES_JUCEHEADER__
|
|
|
|
/*
|
|
This file wraps together all the linux-specific headers, so
|
|
that we can include them all just once, and compile all our
|
|
platform-specific stuff in one big lump, keeping it out of the
|
|
way of the rest of the codebase.
|
|
*/
|
|
|
|
#include "../../../src/core/juce_StandardHeader.h"
|
|
|
|
#include <sched.h>
|
|
#include <pthread.h>
|
|
#include <sys/time.h>
|
|
#include <errno.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/dir.h>
|
|
#include <sys/ptrace.h>
|
|
#include <sys/vfs.h>
|
|
#include <sys/wait.h>
|
|
#include <fnmatch.h>
|
|
#include <utime.h>
|
|
#include <pwd.h>
|
|
#include <fcntl.h>
|
|
#include <dlfcn.h>
|
|
#include <netdb.h>
|
|
#include <arpa/inet.h>
|
|
#include <netinet/in.h>
|
|
#include <sys/types.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/socket.h>
|
|
#include <net/if.h>
|
|
#include <sys/sysinfo.h>
|
|
#include <sys/file.h>
|
|
#include <signal.h>
|
|
|
|
/* Got a build error here? You'll need to install the freetype library...
|
|
The name of the package to install is "libfreetype6-dev".
|
|
*/
|
|
#include <ft2build.h>
|
|
#include FT_FREETYPE_H
|
|
|
|
#include <X11/Xlib.h>
|
|
#include <X11/Xatom.h>
|
|
#include <X11/Xresource.h>
|
|
#include <X11/Xutil.h>
|
|
#include <X11/Xmd.h>
|
|
#include <X11/keysym.h>
|
|
#include <X11/cursorfont.h>
|
|
|
|
#if JUCE_USE_XINERAMA
|
|
/* If you're trying to use Xinerama, you'll need to install the "libxinerama-dev" package.. */
|
|
#include <X11/extensions/Xinerama.h>
|
|
#endif
|
|
|
|
#if JUCE_USE_XSHM
|
|
#include <X11/extensions/XShm.h>
|
|
#include <sys/shm.h>
|
|
#include <sys/ipc.h>
|
|
#endif
|
|
|
|
#if JUCE_USE_XRENDER
|
|
// If you're missing these headers, try installing the libxrender-dev and libxcomposite-dev
|
|
#include <X11/extensions/Xrender.h>
|
|
#include <X11/extensions/Xcomposite.h>
|
|
#endif
|
|
|
|
#if JUCE_USE_XCURSOR
|
|
// If you're missing this header, try installing the libxcursor-dev package
|
|
#include <X11/Xcursor/Xcursor.h>
|
|
#endif
|
|
|
|
#if JUCE_OPENGL
|
|
/* Got an include error here?
|
|
|
|
If you want to install OpenGL support, the packages to get are "mesa-common-dev"
|
|
and "freeglut3-dev".
|
|
|
|
Alternatively, you can turn off the JUCE_OPENGL flag in juce_Config.h if you
|
|
want to disable it.
|
|
*/
|
|
#include <GL/glx.h>
|
|
#endif
|
|
|
|
#undef KeyPress
|
|
|
|
#if JUCE_ALSA
|
|
/* Got an include error here? If so, you've either not got ALSA installed, or you've
|
|
not got your paths set up correctly to find its header files.
|
|
|
|
The package you need to install to get ASLA support is "libasound2-dev".
|
|
|
|
If you don't have the ALSA library and don't want to build Juce with audio support,
|
|
just disable the JUCE_ALSA flag in juce_Config.h
|
|
*/
|
|
#include <alsa/asoundlib.h>
|
|
#endif
|
|
|
|
#if JUCE_JACK
|
|
/* Got an include error here? If so, you've either not got jack-audio-connection-kit
|
|
installed, or you've not got your paths set up correctly to find its header files.
|
|
|
|
The package you need to install to get JACK support is "libjack-dev".
|
|
|
|
If you don't have the jack-audio-connection-kit library and don't want to build
|
|
Juce with low latency audio support, just disable the JUCE_JACK flag in juce_Config.h
|
|
*/
|
|
#include <jack/jack.h>
|
|
//#include <jack/transport.h>
|
|
#endif
|
|
|
|
#undef SIZEOF
|
|
|
|
#endif // __JUCE_LINUX_NATIVEINCLUDES_JUCEHEADER__
|