Support fully headless builds
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
79e74ef909
commit
a00020e597
14 changed files with 175 additions and 61 deletions
|
|
@ -78,20 +78,22 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// OpenGL includes
|
||||
|
||||
#ifdef DISTRHO_OS_MAC
|
||||
# ifdef DGL_USE_OPENGL3
|
||||
# include <OpenGL/gl3.h>
|
||||
# include <OpenGL/gl3ext.h>
|
||||
#ifndef HEADLESS
|
||||
# ifdef DISTRHO_OS_MAC
|
||||
# ifdef DGL_USE_OPENGL3
|
||||
# include <OpenGL/gl3.h>
|
||||
# include <OpenGL/gl3ext.h>
|
||||
# else
|
||||
# include <OpenGL/gl.h>
|
||||
# endif
|
||||
# else
|
||||
# include <OpenGL/gl.h>
|
||||
# endif
|
||||
#else
|
||||
# ifdef DISTRHO_OS_WINDOWS
|
||||
# define GL_GLEXT_PROTOTYPES
|
||||
# endif
|
||||
# ifndef __GLEW_H__
|
||||
# include <GL/gl.h>
|
||||
# include <GL/glext.h>
|
||||
# ifdef DISTRHO_OS_WINDOWS
|
||||
# define GL_GLEXT_PROTOTYPES
|
||||
# endif
|
||||
# ifndef __GLEW_H__
|
||||
# include <GL/gl.h>
|
||||
# include <GL/glext.h>
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue