Ozkan Sezer
5b18ae29b7
improvements to libdecor support in cmake
...
this makes it consistent with wayland support, and makes cmake side
in line with autotools' libdecor support.
2021-08-03 14:01:02 +03:00
Ozkan Sezer
a15ec36547
attempt to fix cmake builds with libdecor
2021-08-03 11:33:50 +03:00
Ryan C. Gordon
c308453952
cmake: Use CMAKE_INSTALL_FULL_* for libdir,bindir,etc.
...
This makes sure sdl2.pc gets the full paths, matching what the
configure script will generate.
Fixes #4569 .
2021-08-03 02:49:08 -04:00
Ozkan Sezer
d373af044b
CMakeLists.txt: update DYLIB_CURRENT_VERSION too 2.0.16 for release
2021-08-01 01:39:20 +03:00
Sam Lantinga
cb1fd30e9a
Updated to version 2.0.16 for release
2021-07-31 13:28:54 -07:00
Sam Lantinga
1a9253f752
Removed unused IOS_DYLIB definition
2021-07-31 12:37:28 -07:00
Christian Rauch
9e6fcbe72c
wayland: client-side decoration
2021-07-25 14:54:12 -07:00
Joel Linn
20eea021c6
Windows: set HAVE_IMMINTRIN_H for AVX intrinsics
2021-07-24 15:39:17 -04:00
Ryan C. Gordon
6956f4aa19
cmake: use CMAKE_INSTALL_LIBDIR instead of hardcoding "lib", etc.
...
These came from HaikuPorts, specifically this patchset:
462947dd4f/media-libs/libsdl2/patches/libsdl2-2.0.14.patchset
This is just the part that is _not_ Haiku-specific. I wanted this in a
separate commit though, since I'm not really a CMake expert; if this causes
problems and we need to bisect to it, we won't be confused about it being a
Haiku issue when we get here.
Fixes #4092 .
(and probably others.)
2021-07-24 11:06:40 -04:00
Ryan C. Gordon
403afdb558
cmake: Haiku fixes.
...
These came from HaikuPorts, specifically this patchset:
462947dd4f/media-libs/libsdl2/patches/libsdl2-2.0.14.patchset
This is just the Haiku-specific bits; the more general parts about install
dirs will be split into a different commit here.
Reference issue #4092 .
2021-07-24 11:02:27 -04:00
Ozkan Sezer
5ac81c75fe
fixed typo in previous commit
2021-07-10 10:05:40 +03:00
Ozkan Sezer
a809d62605
cmake: set SDL_JOYSTICK_RAWINPUT for windows builds
...
Fixes: https://github.com/libsdl-org/SDL/issues/4412
2021-07-10 10:01:40 +03:00
h5p9sl
e52733af8d
Use CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR
...
This allows for building with cmake's add_subdirectory() function.
2021-07-09 16:11:40 -07:00
Daniel Gibson
e2234ee97c
CMake: Fix SOVERSION/SONAME of non-release versions
...
When building SDL2 from git with CMake, you got libSDL2-2.0.so.1
instead of .0 (as it's the case when building with autotools).
This was caused by using LT_REVISION instead of LT_MAJOR for SOVERSION.
fixes #4310
2021-07-08 14:55:33 -07:00
Ozkan Sezer
be41cf2dfe
CMake: don't blacklist TARGET_OS_SIMULATOR for Metal configuration
...
7fa5e95b62
enabled it.
2021-07-08 21:20:02 +03:00
Croydon
3433f3c4cc
CMake: Small improvement for MinGW
...
This is currently a small patch we have in our Conan package for SDL 4dc894cc2c/recipes/sdl2/all/conanfile.py (L184)
Introduced in 9fb93a6044
2021-07-07 16:55:17 -07:00
Ivan Epifanov
6460151c84
Vita: add missing stub
2021-07-01 15:14:49 -07:00
Ivan Epifanov
2465444fba
Add missing dependencies
2021-06-14 11:53:19 -07:00
Ivan Epifanov
bbdd08e0b2
Build without PIB support by default and add flag to enable it
2021-06-11 13:21:07 -04:00
Nicolas Caramelli
6a2af48ad7
CMake: Generic check for desktop GL and EGL on Linux systems
2021-06-01 16:50:28 -07:00
Cacodemon345
ded023870d
Make CMake script more accurate to autoconf script
...
DBus, IBus and inotify is now able to be used outside Linux like in configure.
KMSDRM input is now working on FreeBSD with CMake compilation.
2021-06-01 15:34:52 -07:00
Ivan Epifanov
ca969eb2be
Remove gles2 vita render
2021-04-24 14:13:09 -07:00
Sylvain
d4e96e1153
Android: enable audio driver OpenSLES when building with CMake
2021-04-16 09:44:07 +02:00
Sylvain
02b1ebc9e0
Android: add openslES and AAudio compilation to CMakeLists
2021-04-15 21:13:17 +02:00
Ozkan Sezer
69203851dc
rename PKG_CONFIG_LIBS_PRIV to PKGCONFIG_LIBS_PRIV
...
i.e.: do not steal PKG_CONFIG namespace.
2021-04-14 21:40:50 +03:00
okuoku
401f485490
cmake: Weak link with CoreHaptics
...
Add link to CoreHaptics so we can compile against latest iOS SDKs.
2021-04-13 16:04:04 -07:00
Kyle Schaefer
dbedaeceb3
Adding checks to see if any ASAN flags are set, if so then we set(HAVE_ASAN ON) so the infomartion output will properly list ASAN as on.
2021-04-13 16:03:37 -07:00
Kyle Schaefer
70bd205bb1
Adding messages to output CMAKE_C_FLAGS_DEBUG and CMAKE_CXX_FLAGS_DEBUG, this way when using Debug builds you can see which debug flags are set
2021-04-13 16:03:37 -07:00
Kyle Schaefer
320666044e
Moving ASAN macros and calls to macros above the information output section so we can display ASAN information properly.
2021-04-13 16:03:37 -07:00
okuoku
732cc8ed5b
cmake: Fix UWP DLL build by removing /NODEFAUTLIB
...
On UWP, we need default C runtime for C++ sources.
2021-04-09 22:28:51 -07:00
Vladislav Dmitrievich Turbanov
50db4a59b8
* Support for intrinsics in MSW + Clang scenario.
...
Utility polyfill is provided, removed the no-longer-needed
conditionals.
2021-04-09 22:28:07 -07:00
okuoku
7b8c750954
CMake: Enable WASAPI on WinRT
...
WASAPI backend on WinRT was implemented with 2.0.8
351d6d4784
but CMake source here was written for 2.0.7 in vcpkg
e6c65b93b1
2021-04-04 09:20:04 -04:00
Ryan C. Gordon
a81fe27271
configure/cmake: Hook up Emscripten threads (disabled by default).
...
Fixes #3795 .
2021-04-04 00:16:30 -04:00
vanfanel
e213f37a45
[KMSDRM] Enable full OpenGL detection (MESA/libglvnd) on both the make and cmake buildsystems.
2021-03-15 18:47:22 -07:00
Ivan Epifanov
e58a955e68
Deprecate dolcesdk
2021-03-08 09:07:12 -08:00
Ivan Epifanov
4708c6bb96
Remove pkg-config prefix hack
2021-03-08 09:07:12 -08:00
uyjulian
b52e9459ba
Add support for open URL
2021-03-08 09:07:12 -08:00
Ivan Epifanov
a43f488920
Don't search for pthread
2021-03-08 09:07:12 -08:00
Ivan Epifanov
54134fddd5
Use Clib mem funcs
2021-03-08 09:07:12 -08:00
Ivan Epifanov
e928b92f1a
CMake support
2021-03-08 09:07:12 -08:00
Ozkan Sezer
34ecd71e80
CMake: don't add -Wl,--no-undefined to LDFLAGS for clang+windows cases
...
from a patchset by Vladislav Dmitrievich Turbanov:
https://github.com/libsdl-org/SDL/pull/4062
2021-03-04 18:44:04 +03:00
Ozkan Sezer
3880174a9f
CMake: set OPT_DEF_LIBC to ON for clang case, too.
...
from a patchset by Vladislav Dmitrievich Turbanov:
https://github.com/libsdl-org/SDL/pull/4062
2021-03-04 18:40:56 +03:00
Ozkan Sezer
05cc9e3764
CMake: move GCC check after CLANG, so that CLANG is properly recognized
...
from a patchset by Vladislav Dmitrievich Turbanov:
https://github.com/libsdl-org/SDL/pull/4062
2021-03-04 18:40:50 +03:00
Ozkan Sezer
0a68322170
add missing PIPEWIRE defines to SDL_config.h.in
...
also specify 'audio' in Pipepire configuration enable messages.
2021-03-01 15:11:50 +03:00
Frank Praznik
2f0b99a774
audio: Add Pipewire playback/capture sink
2021-02-28 19:40:09 -08:00
Joshua Saxby
fe6f62e6ce
Add ALIAS targets to all installed SDL2 targets
...
This provides a linking interface that matches the one available when `find_package()` is used, by aliasing all of SDL's public targets into the SDL2:: namespace. Thus, dependees link to the same-named targets regardless of how SDL was acquired.
This approach permits the use of wrappers around CMake's FetchContent API such as https://github.com/cpm-cmake/CPM.cmake
2021-02-13 11:43:35 -08:00
Christian Rauch
2170c7bfde
make AddressSanitizer optional and disabled by default
2021-02-10 10:22:20 -05:00
Christian Rauch
5045d299a6
enable AddressSanitizer only for GCC 5 onwards (bug #5533 )
2021-02-10 10:22:20 -05:00
Christian Rauch
066960c207
add '-shared-libasan' to debug flags (bug #5533 )
2021-02-10 10:22:20 -05:00
Ozkan Sezer
bb9e049d1d
minor updates to libc function checks
2021-02-10 10:22:19 -05:00