This repository has been archived by the owner on Mar 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into multi-monitor
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
Showing
82 changed files
with
4,084 additions
and
6,521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
12 changes: 5 additions & 7 deletions
12
CMake/linux-mingw32msvc.cmake → CMake/linux-i586-mingw32msvc.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.