Replaced platform specific config headers with shared one, updated version strings to include CMake version.

This commit is contained in:
Camilla Berglund 2010-09-17 00:54:11 +02:00
parent e35badcb70
commit 3ca63a0cf3
10 changed files with 7 additions and 16 deletions

View File

@ -118,6 +118,11 @@ add_subdirectory(tests)
#add_subdirectory(docs/doxygen)
#add_subdirectory(docs/manuals)
#--------------------------------------------------------------------
# Create shared configuration header
#--------------------------------------------------------------------
configure_file(${GLFW_SOURCE_DIR}/src/config.h.cmake
${GLFW_BINARY_DIR}/src/config.h @ONLY)
#--------------------------------------------------------------------
# -- Install standard files

View File

@ -1,8 +1,4 @@
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/cocoa_config.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/cocoa_config.h @ONLY)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/libglfw.pc.cmake
${CMAKE_CURRENT_BINARY_DIR}/libglfw.pc @ONLY)

View File

@ -1,4 +0,0 @@
/* Configure build time options of GLFW */
#define _GLFW_VERSION_FULL "@GLFW_VERSION_FULL@"

View File

@ -244,7 +244,6 @@ int _glfwPlatformTerminate(void)
const char* _glfwPlatformGetVersionString(void)
{
// TODO: Bring in CMake version
const char* version = "GLFW " _GLFW_VERSION_FULL " Cocoa";
return version;

View File

@ -44,7 +44,6 @@ typedef void* id;
#endif
#include "../../include/GL/glfw3.h"
#include "cocoa_config.h"
#ifndef GL_VERSION_3_0

View File

@ -56,6 +56,7 @@
// glfw.h)
//------------------------------------------------------------------------
#include "config.h"
#include "platform.h"

View File

@ -189,8 +189,7 @@ int _glfwPlatformTerminate(void)
const char* _glfwPlatformGetVersionString(void)
{
// TODO: Add GLFW version somehow
const char* version = "GLFW "
const char* version = "GLFW " _GLFW_VERSION_FULL
#if defined(__MINGW32__)
" MinGW"
#elif defined(__CYGWIN__)

View File

@ -1,6 +1,3 @@
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/x11_config.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/x11_config.h @ONLY)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/libglfw.pc.cmake

View File

@ -43,7 +43,6 @@
#include <GL/glx.h>
#include "../../include/GL/glfw3.h"
#include "x11_config.h"
// We need declarations for GLX version 1.3 or above even if the server doesn't
// support version 1.3