Vladimír Vondruš
a5941ac3ea
No need to set CMAKE_MODULE_PATH explicitly when crosscompiling anymore.
10 years ago
Vladimír Vondruš
c54818b91b
Updated toolchains submodule.
10 years ago
Vladimír Vondruš
9f9a8baf10
Platform: apparently there was't a single change that worked right away.
...
Ugh.
10 years ago
Vladimír Vondruš
144b0c2b8e
modules: did I mention already that I'm producing only crap today?
10 years ago
Vladimír Vondruš
082ca911ab
Platform: fix building of EglContext with Xcode.
...
The dreaded OBJECT libraries again. Reported the inconvenience here:
http://public.kitware.com/pipermail/cmake/2016-April/063178.html
10 years ago
Vladimír Vondruš
26ba9aed28
modules: work around buggy framework support for OpenGLES on iOS.
10 years ago
Vladimír Vondruš
1d587f5200
modules: find EGL before linking to it.
10 years ago
Vladimír Vondruš
cff718b92c
modules: proper bug link.
10 years ago
Vladimír Vondruš
f0a57a1a86
doc: fix typo.
10 years ago
Vladimír Vondruš
122cdd2282
Simplify BufferGLTest.
10 years ago
Vladimír Vondruš
05903fcad9
Clarify that it is possible to read UnsignedInt from framebuffer in ES3.
10 years ago
Vladimír Vondruš
45439ef9f6
doc: finally mention CMAKE_FIND_ROOT_PATH.
...
A lot of people asked this, not sure why I didn't put this in already.
10 years ago
Vladimír Vondruš
c25c6031e2
modules: and what now!
10 years ago
Vladimír Vondruš
60eab7e4fd
modules: guess what I screwed up this time!
10 years ago
Vladimír Vondruš
4f94c26467
Added TARGET_HEADLESS option.
...
Toggles between using CGL/GLX/WGL (requiring running graphical desktop
environment) or EGL (without display attachment) for command-line
utilities and GL tests. Also exposed to the user through
MAGNUM_TARGET_HEADLESS CMake and preprocessor variables.
10 years ago
Vladimír Vondruš
9a70d06767
Platform: new WindowlessEglApplication.
...
Uses just EGL and no other platform toolkit, meaning that the same code
can be used on all platforms if the drivers support it. Should be
working for OpenGL ES for most drivers, however desktop OpenGL is
supported only on NVidia since version 355.
10 years ago
Vladimír Vondruš
ecebf0fd02
Platform: added new flags to magnum-info.
10 years ago
Vladimír Vondruš
5d52b74edf
modules: updated FindCorrade.cmake.
10 years ago
Vladimír Vondruš
e03f812fef
modules: properly handle implicit required inter-module dependencies.
10 years ago
Vladimír Vondruš
6af6c68d26
modules: updated FindCorrade.cmake.
10 years ago
Vladimír Vondruš
abe2c5bd66
modules: fix root library finding for superprojects.
...
Will this never end?!
10 years ago
Vladimír Vondruš
b5851b552d
modules: fix Application and Context aliases for superprojects.
...
Oh well :(
10 years ago
Vladimír Vondruš
f47a40614d
Properly create Magnum::Magnum aliased target for superprojects.
10 years ago
Vladimír Vondruš
1f0617ac27
modules: updated FindMagnum.cmake.
...
It was not handling the case of both debug and release libraries for
application and contexts properly.
10 years ago
Vladimír Vondruš
e71ccafbc7
package/ci: revert back to separate directory to have SDL2 build cached.
10 years ago
Vladimír Vondruš
2182e43f5e
package/ci: and now let's fix Linux build, again.
...
Also updated to SDL 2.0.4.
10 years ago
Vladimír Vondruš
c943873a42
package/ci: use Homebrew SDL2 package on OSX.
10 years ago
Vladimír Vondruš
d86a525013
package/ci: build (but not run) also GL tests.
...
Should catch a bit more bugs with windowless applications and such.
10 years ago
Vladimír Vondruš
a7acee6516
modules: add forgotten WindowlessWglApplication into the find module.
...
Sorry!
10 years ago
Vladimír Vondruš
84c80c297f
modules: CMake goes crazy when I'm using frameworks as imported targets.
...
And the bug is closed as "wontfix". Dammit.
https://cmake.org/Bug/view.php?id=13765
10 years ago
Vladimír Vondruš
27ac1e4575
Modern CMake usage: don't treat imported targets as files.
10 years ago
Vladimír Vondruš
01ffbe93a9
Modern CMake usage: reworked to use target-specific properties.
...
As with Corrade, this is not exactly backwards compatible, but for
common use case without OBJECT libraries this should not be a problem.
In any case, recreate the build dir and update your copy of all
Find*.cmake modules to avoid weird things happening.
User-facing changes:
* Documentation of all Find*.cmake modules converted to
reStructuredText to follow official CMake guidelines.
* The newfangled way to use the libraries is to link to Magnum::Shaders
instead of adding ${MAGNUM_SHADERS_INCLUDE_DIRS} to include path and
linking to ${MAGNUM_SHADERS_LIBRARIES}.
* The old ${MAGNUM_*_LIBRARIES} are deprecated and now just expand to
Magnum::* target. Use the target directly. These are also enabled
only when building with MAGNUM_BUILD_DEPRECATED.
* The old ${MAGNUM_*_INCLUDE_DIRS} are removed as the Magnum::* targets
cover these too.
Internal changes:
* Global state such as include_directories() was replaced with
target-specific settings.
10 years ago
Vladimír Vondruš
08a2a75c5c
Modern CMake usage: updated FindCorrade.cmake and FindNodeJs.cmake.
10 years ago
Vladimír Vondruš
4a540d5c6c
Modern CMake usage: bump minimal version to 2.8.12.
10 years ago
Vladimír Vondruš
ca887ddebe
Modern CMake usage: use CMake 2.8.12 on Travis CI.
10 years ago
Vladimír Vondruš
21e2ed7577
Math: no need to make the test complicated.
10 years ago
Vladimír Vondruš
c33fddec86
Updated toolchains submodule.
10 years ago
Vladimír Vondruš
e832e46342
modules: updated FindCorrade.cmake.
10 years ago
Vladimír Vondruš
70f7694d5a
Fix building on GLES2/WebGL.
10 years ago
Vladimír Vondruš
3a87c9b948
Properly reset image bindings on destruction.
10 years ago
Vladimír Vondruš
2f97617bb6
Minor cleanup and documentation.
10 years ago
Nicholas "LB" Braden
f9ead4ef83
Fix 'zero as null pointer constant' warning
...
Scanning dependencies of target MagnumWindowlessWglApplication
[ 30%] Building CXX object src/Magnum/Platform/CMakeFiles/MagnumWindowlessWglApplication.dir/WindowlessWglApplication.cpp.obj
C:\Users\LB\Code\Magnum\build\Magnum-prefix\src\Magnum\src\Magnum\Platform\WindowlessWglApplication.cpp: In member function 'bool Magnum::Platform::WindowlessWglApplication::tryCreateContext(const Magnum::Platform::WindowlessWglApplication::Configuration&)':
C:\Users\LB\Code\Magnum\build\Magnum-prefix\src\Magnum\src\Magnum\Platform\WindowlessWglApplication.cpp:124:81: warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]
_renderingContext = wglCreateContextAttribsARB(_deviceContext, 0, attributes);
^
[ 30%] Linking CXX static library libMagnumWindowlessWglApplication.a
[ 30%] Built target MagnumWindowlessWglApplication
10 years ago
dlardi
5975945d29
WGL context library build fixed
10 years ago
Vladimír Vondruš
7949c376c5
Platform: link also all static libraries to Magnum.
...
So we inherit all include directories, options and everything.
10 years ago
Vladimír Vondruš
60772f478e
Use proper CMake variable for Corrade Utility library.
10 years ago
Vladimír Vondruš
8469beec3b
Platform: destroy SDL2 window also if Magnum context creation fails.
...
Not sure why I omitted that.
10 years ago
Vladimír Vondruš
29081acc94
Platform: avoid window blinking with multiple context creation attempts.
...
The window is only shown once we are sure that everything went smoothly.
10 years ago
Vladimír Vondruš
a3b84a4bf3
doc: update Homebrew installation docs.
...
Fucking undocumented moving target. Why is it not possible to install
from a file anymore?! Why make things unnecessarily complicated?!
10 years ago
Vladimír Vondruš
4bcb79c315
Platform: properly handle SDL2 context creation failure on Emscripten.
10 years ago
Vladimír Vondruš
fedf84a871
Platform: remove unneeded flag fiddling in Sdl2Application.
...
The SDL2 documentation explicitly says the following:
SDL_WINDOW_SHOWN is ignored by SDL_CreateWindow(). The SDL_Window is
implicitly shown if SDL_WINDOW_HIDDEN is not set.
10 years ago