- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo_config.hpp

00001 /*************************************************************************** 00002 LibUFO - UI For OpenGL 00003 copyright : (C) 2001-2005 by Johannes Schmidt 00004 email : schmidtjf at users.sourceforge.net 00005 ------------------- 00006 00007 file : include/ufo/config/ufo_config.hpp 00008 begin : Sat Jan 26 2002 00009 $Id: ufo_config.hpp,v 1.16 2005/09/30 12:41:40 schmidtjf Exp $ 00010 ***************************************************************************/ 00011 00012 /*************************************************************************** 00013 * This library is free software; you can redistribute it and/or * 00014 * modify it under the terms of the GNU Lesser General Public * 00015 * License as published by the Free Software Foundation; either * 00016 * version 2.1 of the License, or (at your option) any later version. * 00017 * * 00018 * This library is distributed in the hope that it will be useful, * 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00021 * Lesser General Public License for more details. * 00022 * * 00023 * You should have received a copy of the GNU Lesser General Public * 00024 * License along with this library; if not, write to the Free Software * 00025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 00026 ***************************************************************************/ 00027 00028 #ifndef UFO_CONFIG_HPP 00029 #define UFO_CONFIG_HPP 00030 00031 #if defined (_WIN32) && !defined (WIN32) 00032 #define WIN32 00033 #endif 00034 00035 #if defined HAVE_CONFIG_H 00036 // this is our auto configured config header 00037 #include "ufo_config_gnu.hpp" 00038 #elif defined(WIN32) && defined(_MSC_VER) 00039 // use msvc header for win 32 targets without configure 00040 #include "ufo_config_msvc.hpp" 00041 #else 00042 // last resort 00043 #include "ufo_config_gnu.hpp" 00044 #endif 00045 00046 #undef PACKAGE 00047 #undef VERSION 00048 00049 // Some stuff needed for Win32 00050 #ifdef WIN32 00051 #define WIN32_LEAN_AND_MEAN 00052 #define VC_EXTRALEAN 00053 #include <windows.h> 00054 #endif // WIN32 00055 00056 #ifndef _UFO_EXPORT_RULE 00057 # ifdef WIN32 00058 # define _UFO_EXPORT_RULE __declspec(dllexport) 00059 # define _UFO_IMPORT_RULE __declspec(dllimport) 00060 # endif 00061 #endif 00062 00063 #ifndef _UFO_EXPORT_RULE 00064 #define _UFO_EXPORT_RULE 00065 #define _UFO_IMPORT_RULE 00066 #endif 00067 00068 #if defined(UFO_BUILDING_DLL) || (UFO_EXPORTS) 00069 # define UFO_EXPORT _UFO_EXPORT_RULE 00070 #elif defined(UFO_USING_DLL) 00071 # define UFO_EXPORT _UFO_IMPORT_RULE 00072 #else 00073 // use import rule as default 00074 # define UFO_EXPORT _UFO_IMPORT_RULE 00075 #endif 00076 00077 // debug macros 00078 #if !defined(UFO_DEBUG) && defined DEBUG 00079 #define UFO_DEBUG 00080 #endif 00081 00082 // ufo internal run time type information 00083 #define UFO_RTTI 00084 00085 // 00086 // OS specific defines 00087 00088 #if defined(WIN32) 00089 #define UFO_OS_WIN32 00090 #elif defined __BEOS__ 00091 #define UFO_OS_BEOS 00092 #elif defined macintosh 00093 #define UFO_OS_MAC 00094 #else 00095 00096 #define UFO_OS_UNIX 00097 #endif 00098 00099 00100 // taken from libSDL 00101 // defines the graphic target 00102 #if (defined(unix) || defined(__unix__) || defined(_AIX) || defined(__OpenBSD__)) && \ 00103 (!defined(UFO_DISABLE_X11) && !defined(__CYGWIN32__) && !defined(ENABLE_NANOX)) && \ 00104 !defined(UFO_TARGET_X11) 00105 #define UFO_GFX_X11 00106 #elif defined(WIN32) && !defined(UFO_GFX_WIN32) 00107 #define UFO_GFX_WIN32 00108 #endif 00109 00110 00111 #endif // UFO_CONFIG_HPP

The libUFO Project - written by Johannes Schmidt