Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' into multi-monitor
Browse files Browse the repository at this point in the history
Conflicts:
	.gitignore
	examples/CMakeLists.txt
	include/GL/glfw3.h
	src/CMakeLists.txt
	src/internal.h
	src/win32_platform.h
	src/win32_window.c
	src/x11_fullscreen.c
	src/x11_platform.h
	tests/listmodes.c
  • Loading branch information
elmindreda committed Jul 5, 2012
2 parents fb46537 + 34c93a5 commit c06f838
Show file tree
Hide file tree
Showing 82 changed files with 4,084 additions and 6,521 deletions.
33 changes: 18 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
*.a
.DS_Store
CMakeCache.txt
CMakeFiles
cmake_install.cmake
cmake_uninstall.cmake
.DS_Store
src/config.h
src/libglfw.pc
src/libglfw.so
src/libglfw.a
src/libglfw.dylib
src/libglfw.lib
src/libglfwdll.lib
src/libglfw.dll
docs/Doxyfile
examples/*.app
examples/*.exe
examples/boing
examples/gears
examples/heightmap
examples/splitview
examples/triangle
examples/wave
examples/*.app
examples/*.exe
src/config.h
src/glfw.dll
src/glfw.lib
src/glfwdll.lib
src/libglfw.a
src/libglfw.dll
src/libglfw.dylib
src/libglfw.lib
src/libglfw.pc
src/libglfw.so
src/libglfwdll.lib
tests/*.app
tests/*.exe
tests/accuracy
tests/defaults
tests/dynamic
Expand All @@ -30,12 +35,10 @@ tests/gamma
tests/glfwinfo
tests/iconify
tests/joysticks
tests/listmodes
tests/peter
tests/reopen
tests/sharing
tests/tearing
tests/title
tests/version
tests/windows
tests/*.app
tests/*.exe
88 changes: 0 additions & 88 deletions CMake/CheckX11Extensions.cmake

This file was deleted.

23 changes: 16 additions & 7 deletions CMake/README.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
This folder contains a collection of toolchains definition in order to
support cross compilation. The naming scheme is the following:
This directory contains a collection of toolchain definitions for cross
compilation, currently limited to compiling Win32 binaries on Linux.

The toolchain file naming scheme is as follows:

host-system-compiler.cmake

to use this at the time you run the initial cmake command use the
following parameter
-DCMAKE_TOOLCHAIN_FILE=./toolchains/XXX-XXX-XXX.cmake
which maps to file in this folder.
To use these files you add a special parameter when configuring the source tree:

cmake -DCMAKE_TOOLCHAIN_FILE=<toolchain-file> .

For example, to use the Debian GNU/Linux MinGW package, run CMake like this:

cmake -DCMAKE_TOOLCHAIN_FILE=CMake/linux-i586-mingw32msvc.cmake .

For more details see this article:

http://www.paraview.org/Wiki/CMake_Cross_Compiling

For more details see: http://www.paraview.org/Wiki/CMake_Cross_Compiling
13 changes: 13 additions & 0 deletions CMake/cygwin-i686-w64-mingw32.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Define the environment for cross compiling from Linux to Win32
SET(CMAKE_SYSTEM_NAME Windows) # Target system name
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER "i686-w64-mingw32-gcc")
SET(CMAKE_CXX_COMPILER "i686-w64-mingw32-g++")
SET(CMAKE_RC_COMPILER "i686-w64-mingw32-windres")
SET(CMAKE_RANLIB "i686-w64-mingw32-ranlib")

# Configure the behaviour of the find commands
SET(CMAKE_FIND_ROOT_PATH "/usr/i686-w64-mingw32")
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
13 changes: 13 additions & 0 deletions CMake/cygwin-x86_64-w64-mingw32.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Define the environment for cross compiling from Linux to Win32
SET(CMAKE_SYSTEM_NAME Windows) # Target system name
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER "x86_64-w64-mingw32-gcc")
SET(CMAKE_CXX_COMPILER "x86_64-w64-mingw32-g++")
SET(CMAKE_RC_COMPILER "x86_64-w64-mingw32-windres")
SET(CMAKE_RANLIB "x86_64-w64-mingw32-ranlib")

# Configure the behaviour of the find commands
SET(CMAKE_FIND_ROOT_PATH "/usr/x86_64-w64-mingw32")
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
13 changes: 13 additions & 0 deletions CMake/linux-amd64-mingw32msvc.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Define the environment for cross compiling from Linux to Win64
SET(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER "amd64-mingw32msvc-gcc")
SET(CMAKE_CXX_COMPILER "amd64-mingw32msvc-g++")
SET(CMAKE_RC_COMPILER "amd64-mingw32msvc-windres")
SET(CMAKE_RANLIB "amd64-mingw32msvc-ranlib")

# Configure the behaviour of the find commands
SET(CMAKE_FIND_ROOT_PATH "/usr/amd64-mingw32msvc")
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# Define the cross compilation environment for cross compiling from linux
# to win32 it is to be used when debian cross compilation toolchain is
# available.
SET(CMAKE_SYSTEM_NAME Windows) # Target system name
SET(CMAKE_SYSTEM_VERSION 1) # Not really used.
# Define the environment for cross compiling from Linux to Win32
SET(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER "i586-mingw32msvc-gcc")
SET(CMAKE_CXX_COMPILER "i586-mingw32msvc-g++")
SET(CMAKE_RC_COMPILER "i586-mingw32msvc-windres")
SET(CMAKE_RANLIB "i586-mingw32msvc-ranlib")


#Configure the behaviour of the find commands
# Configure the behaviour of the find commands
SET(CMAKE_FIND_ROOT_PATH "/usr/i586-mingw32msvc")
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
Expand Down
4 changes: 2 additions & 2 deletions CMake/linux-i686-pc-mingw32.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Define the cross compilation environment for cross compiling from linux
# to win32
# Define the environment for cross compiling from Linux to Win32
SET(CMAKE_SYSTEM_NAME Windows) # Target system name
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER "i686-pc-mingw32-gcc")
SET(CMAKE_CXX_COMPILER "i686-pc-mingw32-g++")
SET(CMAKE_RC_COMPILER "i686-pc-mingw32-windres")
SET(CMAKE_RANLIB "i686-pc-mingw32-ranlib")

#Configure the behaviour of the find commands
Expand Down
Loading

0 comments on commit c06f838

Please sign in to comment.