It provides back compatibility with older (autotools based) freeglut versions.
Also it simplifies build rules for crossplatform programs: they may be linked
with -lglut regardless of the system and library type (shared/static).
Patch is originally prepared for MXE project (http://mxe.cc/).
Irrespective of "FREEGLUT_REPLACE_GLUT" being set to "No" or being on
Win32 where this variable does not even exist, the .pc file contained
Libs: -L${libdir} -lglut
Instead, emit the correct value.
(cherry picked from commit d06589f55c)
(cherry picked from commit d06589f55c)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1781 7f0cb862-5218-0410-a997-914c9d46530a
Use target_compile_definitions to populate the
INTERFACE_COMPILE_DEFINITIONS property on the freeglut_static target on
windows.
(cherry picked from commit ffc24cfb76)
(cherry picked from commit ffc24cfb76)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1772 7f0cb862-5218-0410-a997-914c9d46530a
Create and install the necessary files so that cmake can find FreeGLUT
in config mode ("find_package(FreeGLUT CONFIG)").
This pushes cmake_minimum_required to 3.0.0.
(cherry picked from commit ba7326ce8d)
(cherry picked from commit ba7326ce8d)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1770 7f0cb862-5218-0410-a997-914c9d46530a
This commit creates a new "wayland" backend, which can be
activated at configure time with "-DFREEGLUT_WAYLAND=ON".
If done so, it will be used instead of X11 (building both
and doing runtime detection may become possible later).
Please note that if you choose to use GL instead of GLES
(by not specifying "-DFREEGLUT_GLES=ON"), then libX11
will still be pulled as an indirect dependency.
Following features are still WIP :
- menus (not implemented, TODO) ;
- client-side decorations (not implemented, required
because Wayland shells do not draw title bars nor
resize grips, TODO) ;
- game mode (code is commented out, depends on WIP
protocols tested upstream, WAIT FOR UPSTREAM) ;
- window visibility states (code is commented out,
depends on xdg-shell protocol, TODO).
Signed-off-by: Manuel Bachmann <tarnyko@tarnyko.net>
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1758 7f0cb862-5218-0410-a997-914c9d46530a
Not building it as part of the demos yet, since it was submitted quite late in the 3.0 release process
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1750 7f0cb862-5218-0410-a997-914c9d46530a
due to a stale cursor cache, when the application (which calls glutSetCursor),
uses glutLeaveMainLoop to close the connection to the X server, and then
re-initializes freeglut and starts over with a new connection.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1749 7f0cb862-5218-0410-a997-914c9d46530a
build. Now, if the definition is missing, we'll just define it arbitrarilly as
255, which should be a safe value. This is just needed for an obscure X11 WM
protocol.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1746 7f0cb862-5218-0410-a997-914c9d46530a
locations first in the list instead of appending them. This gives priority to
our freeglut*.h files instead of the old system-wide installed ones.
- removed the Xxf86vm hack from CMakeLists.txt: it seems like it's not needed
any more in new versions of cmake, and it fails to link on MacOSX.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1745 7f0cb862-5218-0410-a997-914c9d46530a
hardcoding lib for the installation directory of libraries, with the
additional modification of installing the pkg-config files there too.
closing bug #217
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1743 7f0cb862-5218-0410-a997-914c9d46530a