diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-01-17 00:44:07 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-01-17 00:44:07 +0000 |
| commit | eb8207ff1bde8a1e092e60d4b2c15336c78e3a40 (patch) | |
| tree | b1c9db0aa00c0245e8d5a01c09b305ef83185f92 /src/config_lib.h | |
| parent | 3235168654b225ce256ae4b54324d68b563b9413 (diff) | |
Trying to create a more detaild way to configure the library, added runtime information, added an OpenGL graphics driver that renders a button on top of an OpenGL window (see test/cube).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11006 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/config_lib.h')
| -rw-r--r-- | src/config_lib.h | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/src/config_lib.h b/src/config_lib.h new file mode 100644 index 000000000..6e5c8738b --- /dev/null +++ b/src/config_lib.h @@ -0,0 +1,92 @@ +/* + * "$Id$" + * + * Configuration file for the Fast Light Tool Kit (FLTK). + * + * Copyright 1998-2011 by Bill Spitzak and others. + */ + +#ifndef FL_CONFIG_LIB_H +#define FL_CONFIG_LIB_H + +#include <config.h> + + +// find the right graphics configuration +#if !defined(FL_CFG_GFX_XLIB) && !defined(FL_CFG_GFX_QUARTZ) && !defined(FL_CFG_GFX_GDI) + +#ifdef __APPLE__ +# define FL_CFG_GFX_QUARTZ +# ifdef HAVE_GL +# define FL_CFG_GFX_OPENGL +# endif +#elif defined(WIN32) +# define FL_CFG_GFX_GDI +# ifdef HAVE_GL +# define FL_CFG_GFX_OPENGL +# endif +#elif defined(FL_PORTING) +# pragma message "FL_PORTING: please choose a core graphics library +#else // X11 +# define FL_CFG_GFX_XLIB +# ifdef HAVE_GL +# define FL_CFG_GFX_OPENGL +# endif +#endif + +#endif + + +// find the right printer driver configuration +#if !defined(FL_CFG_PRN_PS) && !defined(FL_CFG_PRN_QUARTZ) && !defined(FL_CFG_PRN_WIN32) + +#ifdef __APPLE__ +# define FL_CFG_PRN_QUARTZ +#elif defined(WIN32) +# define FL_CFG_WIN_WIN32 +#elif defined(FL_PORTING) +# pragma message "FL_PORTING: please choose a graphics driver library +#else // X11 +# define FL_CFG_GFX_PS +#endif + +#endif + + +// find the right window manager configuration +#if !defined(FL_CFG_WIN_X11) && !defined(FL_CFG_WIN_COCOA) && !defined(FL_CFG_WIN_WIN32) + +#ifdef __APPLE__ +# define FL_CFG_WIN_COCOA +#elif defined(WIN32) +# define FL_CFG_WIN_WIN32 +#elif defined(FL_PORTING) +# pragma message "FL_PORTING: please choose a window management library +#else // X11 +# define FL_CFG_GFX_X11 +#endif + +#endif + + +// find the right system configuration +#if !defined(FL_CFG_SYS_POSIX) && !defined(FL_CFG_SYS_WIN32) + +#ifdef __APPLE__ +# define FL_CFG_SYS_POSIX +#elif defined(WIN32) +# define FL_CFG_SYS_WIN32 +#elif defined(FL_PORTING) +# pragma message "FL_PORTING: please choose a system library +#else // X11 +# define FL_CFG_SYS_POSIX +#endif + +#endif + + +#endif + +/* + * End of "$Id$". + */ |
