Sam Lantinga
8e4a39b41c
Rename the xcFramework target to SDL.xcframework so it's clear when being embedded in other projects
2023-01-12 13:23:49 -08:00
Sam Lantinga
5f39dd8a2f
Always run xcFramework and disk image creation builds when requested
2023-01-12 13:08:33 -08:00
Sam Lantinga
050507c333
Fail the xcFramework build if the archive didn't succeed
2023-01-11 16:48:55 -08:00
Sam Lantinga
d0aaf74ec0
Added an xcframework target to cover all supported Apple platforms
...
This is also used to create the release disk image
2023-01-11 14:41:30 -08:00
Sam Lantinga
dc280c17a0
Moved SDL_intrin.h back into the public headers for application use
2023-01-10 15:50:35 -08:00
Sam Lantinga
fde78d12f2
Updated copyright for 2023
2023-01-09 09:41:41 -08:00
Sam Lantinga
1d956c2817
Rename SDL2 tests for SDL3
2023-01-03 11:54:35 -08:00
Anonymous Maarten
7150d6b05a
cmake: add SDL3 to include path
...
This reverts parts of 9f2ca87
2022-12-29 09:01:56 -08:00
Sam Lantinga
659abc721a
SDL API renaming: SDL_gamecontroller.h
...
SDL_gamecontroller.h has been renamed SDL_gamepad.h, and all APIs have been renamed to match.
Fixes https://github.com/libsdl-org/SDL/issues/6885
2022-12-27 09:47:24 -08:00
Ryan C. Gordon
3197632347
include: Renamed begin_code.h and close_code.h to have SDL_ prefixes.
...
Fixes #6864 .
2022-12-22 11:39:26 -05:00
Sam Lantinga
de871dc5f7
Sorted headers in Xcode project
...
This lets us more easily see when one is missing
2022-12-19 09:55:53 -08:00
Sam Lantinga
0d172ccb40
Fixed marking SDL headers as public in the Xcode project
...
Fixes https://github.com/libsdl-org/SDL/issues/6851
2022-12-19 09:45:43 -08:00
Sam Lantinga
5a45d2e58b
Updated Xcode project for SDL_main as a header-only library
2022-12-15 10:53:44 -08:00
Daniel Gibson
c3bf253b09
Remove SDL3_main from build systems, remove most of src/main/*
...
XCode is still missing, and src/main/winrt/SDL3-WinRTResource*
still need to find a new home
2022-12-15 08:01:01 -08:00
Ryan C. Gordon
a76053352c
gesture: Removed the gesture API from SDL3.
...
Fixes #6758 .
2022-12-13 14:54:37 -05:00
Sasha Szpakowski
b3b94cf36b
Fix xcode project after opengles renderer removal
2022-11-30 17:25:43 -08:00
Sam Lantinga
c5790359fd
Added precompiled header support for Visual Studio and Xcode ( #6710 )
...
Fixes https://github.com/libsdl-org/SDL/issues/6704
2022-11-29 18:34:15 -08:00
Sam Lantinga
c2432f8d0d
Rename SDLmain to SDL_main and SDLtest to SDL_test for consistency with other SDL libraries
2022-11-28 10:57:59 -08:00
Sam Lantinga
0a48abc860
Switch header convention from `#include "SDL.h"` to `#include <SDL3/SDLh>`
...
I ran this script in the include directory:
```sh
sed -i '' -e 's,#include "\(SDL.*\)",#include <SDL3/\1>,' *.h
```
I ran this script in the src directory:
```sh
for i in ../include/SDL3/SDL*.h
do hdr=$(basename $i)
if [ x"$(echo $hdr | egrep 'SDL_main|SDL_name|SDL_test|SDL_syswm|SDL_opengl|SDL_egl|SDL_vulkan')" != x ]; then
find . -type f -exec sed -i '' -e 's,#include "\('$hdr'\)",#include <SDL3/\1>,' {} \;
else
find . -type f -exec sed -i '' -e '/#include "'$hdr'"/d' {} \;
fi
done
```
Fixes https://github.com/libsdl-org/SDL/issues/6575
2022-11-26 22:15:18 -08:00
Sam Lantinga
63f307fe1f
Remove SDL_config.h from the public headers
...
The SDL headers are no longer dependent on the build configuration.
Fixes https://github.com/libsdl-org/SDL/issues/6643 and https://github.com/libsdl-org/SDL/issues/6641
2022-11-26 04:48:36 -08:00
Sam Lantinga
6786dc481d
Xcode expects SUPPORTED_PLATFORMS to be "macosx" (thanks @MaddTheSane!)
2022-11-25 17:16:34 -08:00
Sam Lantinga
cc1f9eb983
Use Apple's nomenclature for macOS and iOS
...
Fixes https://github.com/libsdl-org/SDL/issues/6621
2022-11-25 16:00:06 -08:00
Sam Lantinga
2c4159b99a
First pass at changing SDL 2.0 to SDL 3.0
2022-11-21 20:28:58 -08:00
Sam Lantinga
0bfeed061b
Updated to version 2.26.0 for release
2022-11-21 16:15:58 -08:00
Sam Lantinga
78ea6af2cd
Updated to version 2.25.1 for release candidate
2022-11-17 09:01:35 -08:00
Anonymous Maarten
e6c4db8160
The SDL2::SDL2 target in SDL2.framework needs to see the SDL2 include folder
...
SDL.h includes other files through SDL2/SDL_xxx.h
2022-11-15 19:22:47 +01:00
Sam Lantinga
0dfc829a6b
Added simple BLE Steam Controller support on all platforms
...
This is still disabled by default via the hint SDL_HINT_JOYSTICK_HIDAPI_STEAM
2022-11-10 19:17:04 -08:00
Anonymous Maarten
cbb1cf0c93
cmake+xcode: only create SDL2::SDL2main target when it does not exist again
2022-10-04 21:15:09 +02:00
Sam Lantinga
13c443f224
Removed obsolete search path setting
2022-09-28 01:10:10 -07:00
Sam Lantinga
26997bc153
Removed unused framework entries from the Xcode project
2022-09-28 00:52:39 -07:00
Sam Lantinga
229315b014
Updated SDL Xcode test project to build for iOS and tvOS
...
Tested with Xcode 14.0.1
2022-09-28 00:06:06 -07:00
Sam Lantinga
3a6b4835f8
Updated macOS Xcode test programs
2022-09-27 22:28:50 -07:00
Sam Lantinga
8fc133ac2c
Updated Xcode project with new offscreen video driver files
2022-09-16 08:18:42 -07:00
Ozkan Sezer
911524da45
fix DYLIB version inconsistencies and test failures after #6188 .
2022-09-06 03:15:02 +03:00
tjpadula
a0f143fc93
Add build target to Xcode project to create an xcframework for iOS ( #6188 )
2022-09-05 13:10:15 -07:00
Sam Lantinga
4e98ba612b
Set DYLIB_COMPATIBILITY_VERSION to DYLIB_CURRENT_VERSION to match autotools
...
Autotools sets both versions to the same value, so Xcode and CMake need to match for the libraries to be compatible between the different builds.
See these for details:
https://github.com/libsdl-org/sdl12-compat/pull/207
https://github.com/libsdl-org/SDL/issues/2934
https://stackoverflow.com/questions/67055770/usage-of-current-version-and-compatibility-version-on-macos
2022-09-05 08:28:06 -07:00
Sam Lantinga
397672edfe
Added SDL_hidapi_wii.c to the Xcode project
2022-09-01 15:31:03 -07:00
Anonymous Maarten
dc2ef31c29
cmake: create SDL2::SDL2main target in Apple framework official release
2022-08-24 06:20:28 -07:00
Sam Lantinga
6ac6accd33
Added SDL_hidapi_ps3.c to the Xcode project
2022-08-23 23:05:11 -07:00
Sam Lantinga
6e9c14e550
Updated to version 2.25.0 for development
2022-08-19 09:38:42 -07:00
Sam Lantinga
8c9beb0c87
Updated to version Updated to version 2.24.0 for release
2022-08-19 08:44:09 -07:00
Sam Lantinga
f1416ef2ba
Updated to version 2.23.2 for release candidate
2022-08-12 20:27:22 -07:00
Sam Lantinga
c2db429f93
Added SDL_crc16.c to the Xcode project
2022-08-11 13:20:17 -07:00
Sam Lantinga
2909f63743
Revert "Enable bitcode by default for iOS and tvOS builds"
...
This reverts commit 59963473ef
.
This fixes https://github.com/libsdl-org/SDL/issues/6015
Starting with Xcode 14, bitcode is no longer required for watchOS and tvOS applications, and the App Store no longer accepts bitcode submissions from Xcode 14.
Xcode no longer builds bitcode by default and generates a warning message if a project explicitly enables bitcode: “Building with bitcode is deprecated. Please update your project and/or target settings to disable bitcode.” The capability to build with bitcode will be removed in a future Xcode release. IPAs that contain bitcode will have the bitcode stripped before being submitted to the App Store. Debug symbols for past bitcode submissions remain available for download. (86118779)
2022-08-06 23:28:39 -07:00
Sam Lantinga
181877ebeb
Added SDL_hidapi_combined.c to the Xcode project
2022-07-28 21:54:34 -07:00
Anonymous Maarten
5da85376b9
stdlib: move all mslibc functions to SDL_mslibc.c
...
This allows disabling LTO on them by only specifying a single file.
2022-07-27 09:07:56 -07:00
Sam Lantinga
f789bc7d5f
Updated minimum OS targets on Apple platforms to match supported platforms using Xcode 13
2022-07-26 11:36:01 -07:00
Sam Lantinga
59963473ef
Enable bitcode by default for iOS and tvOS builds
2022-07-22 10:58:32 -07:00
Sam Lantinga
e3916993e2
Added SDL_utils.c to the Xcode project
2022-07-17 08:47:06 -07:00
Cameron Gutman
6e712d2440
joystick: Add HIDAPI driver for NVIDIA SHIELD 2017 controller
...
Basic input already works using the OS HID driver, but this enables
force feedback and battery state reporting.
2022-07-10 10:53:26 -07:00