Skip to content

Commit 5f4696c

Browse files
authored
Updating documentation for the 3.2.0 release
* Simplified and updated the mingw release archive * Simplified and updated the msvc release archive * Updated the Xcode release archive * Updated the Android release archive
1 parent 2c7b7d1 commit 5f4696c

File tree

18 files changed

+249
-158
lines changed

18 files changed

+249
-158
lines changed

.github/workflows/release.yml

+8
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ jobs:
7777
shell: bash
7878
run: |
7979
${{ steps.tar.outputs.path }}/build-scripts/test-versioning.sh
80+
- name: 'Install Linux dependencies'
81+
run: |
82+
sudo apt-get update -y
83+
sudo apt-get install -y \
84+
gnome-desktop-testing libasound2-dev libpulse-dev libaudio-dev libjack-dev libsndio-dev \
85+
libusb-1.0-0-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev \
86+
libxss-dev libwayland-dev libxkbcommon-dev libdrm-dev libgbm-dev libgl1-mesa-dev libgles2-mesa-dev \
87+
libegl1-mesa-dev libdbus-1-dev libibus-1.0-dev libudev-dev fcitx-libs-dev
8088
- name: 'CMake (configure + build + tests + examples)'
8189
run: |
8290
cmake -S ${{ steps.tar.outputs.path }} -B /tmp/build -DSDL_TEST_LIBRARY=TRUE -DSDL_TESTS=TRUE -DSDL_EXAMPLES=TRUE

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3330,8 +3330,8 @@ endif()
33303330
set_source_files_properties(src/dynapi/SDL_dynapi.c PROPERTIES SKIP_PRECOMPILE_HEADERS 1)
33313331

33323332
set(SDL_FRAMEWORK_RESOURCES
3333-
Xcode/SDL/pkg-support/resources/ReadMe.txt
33343333
LICENSE.txt
3334+
README.md
33353335
)
33363336
if(SDL_FRAMEWORK)
33373337
sdl_sources(${SDL_FRAMEWORK_RESOURCES})

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Simple DirectMedia Layer (SDL for short) is a cross-platform library
33
designed to make it easy to write multi-media software, such as games
44
and emulators.
55

6-
You can find the latest release and additional documentation at:
6+
You can find the latest release and additional information at:
77
https://www.libsdl.org/
88

99
Installation instructions and a quick introduction is available in

WhatsNew.txt

+3-22
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,13 @@
22
This is a list of major changes in SDL's version history.
33

44
---------------------------------------------------------------------------
5-
3.1.0:
5+
3.2.0:
66
---------------------------------------------------------------------------
77

8-
This is a preview release of the new SDL 3.0 API.
9-
10-
The ABI hasn't been locked down yet, but it's fairly stable and feedback is welcome!
11-
128
Check out [migration guide](docs/README-migration.md) for details on API changes since SDL 2.0, and tips on transitioning your code from SDL2 code to SDL3.
139

1410
There have been too many changes to list them all, but here are some of the highlights:
15-
* The API has been significantly reworked to be easier to use and more consistent
16-
* The 2D rendering API now has support for more advanced colorspaces and HDR rendering
17-
* The 2D rendering API now has a Vulkan backend
18-
* An example of hardware accelerated video playback using ffmpeg has been added in test/testffmpeg.c
19-
* The shaped window API has been replaced with transparent windows
20-
* Time and date functions have been added in SDL_time.h
21-
* Support for webcam video recording has been added in SDL_camera.h
22-
* Support for handling pens and tablets has been added in SDL_pen.h
23-
* Support for file open and save dialogs has been added in SDL_dialog.h
24-
* Cross-platform functions for working with files and directories are available in SDL_filesystem.h
25-
* A cross-platform abstraction for working with user and game data has been added in SDL_storage.h
26-
* Handling of main() has been moved to a header library and an optional callback-based program flow is available
27-
* Support for simple object properties has been added in SDL_properties.h. These properties are available on many SDL objects, and can be used for more advanced functionality.
28-
29-
Please let us know about issues and feedback at: https://github.com/libsdl-org/SDL/issues
3011

31-
The development team is focused on code, moving towards the final release, and we would love volunteers to help improve the documentation. Please send e-mail to slouken@libsdl.org if you'd like to help out!
12+
https://wiki.libsdl.org/SDL3/NewFeatures
3213

33-
Finally, a giant thank you to all the people who have contributed code and feedback to the SDL 3.0 improvements!
14+
Thank you to all the people who have contributed code and feedback to the SDL 3.0 release!

Xcode/SDL/SDL.xcodeproj/project.pbxproj

+7-9
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@
7979
A7381E961D8B69D600B177DD /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7381E951D8B69D600B177DD /* CoreAudio.framework */; platformFilters = (ios, maccatalyst, macos, tvos, ); settings = {ATTRIBUTES = (Required, ); }; };
8080
A7381E971D8B6A0300B177DD /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7381E931D8B69C300B177DD /* AudioToolbox.framework */; platformFilters = (ios, maccatalyst, macos, tvos, ); };
8181
A75FDB5823E39E6100529352 /* hidapi.h in Headers */ = {isa = PBXBuildFile; fileRef = A75FDB5723E39E6100529352 /* hidapi.h */; };
82-
A75FDBB723E4CBC700529352 /* License.txt in Resources */ = {isa = PBXBuildFile; fileRef = 00794D3F09D0C461003FC8A1 /* License.txt */; };
83-
A75FDBB823E4CBC700529352 /* ReadMe.txt in Resources */ = {isa = PBXBuildFile; fileRef = F59C710300D5CB5801000001 /* ReadMe.txt */; };
8482
A75FDBC523EA380300529352 /* SDL_hidapi_rumble.h in Headers */ = {isa = PBXBuildFile; fileRef = A75FDBC323EA380300529352 /* SDL_hidapi_rumble.h */; };
8583
A75FDBCE23EA380300529352 /* SDL_hidapi_rumble.c in Sources */ = {isa = PBXBuildFile; fileRef = A75FDBC423EA380300529352 /* SDL_hidapi_rumble.c */; };
8684
A79745702B2E9D39009D224A /* SDL_hidapi_steamdeck.c in Sources */ = {isa = PBXBuildFile; fileRef = A797456F2B2E9D39009D224A /* SDL_hidapi_steamdeck.c */; };
@@ -584,7 +582,6 @@
584582
0073179D0858DECD00B2BC32 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
585583
0073179F0858DECD00B2BC32 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; };
586584
007317C10858E15000B2BC32 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = System/Library/Frameworks/Carbon.framework; sourceTree = SDKROOT; };
587-
00794D3F09D0C461003FC8A1 /* License.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = License.txt; sourceTree = "<group>"; };
588585
00CFA89C106B4BA100758660 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ForceFeedback.framework; path = System/Library/Frameworks/ForceFeedback.framework; sourceTree = SDKROOT; };
589586
00D0D08310675DD9004B05EF /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; };
590587
1485C32F2BBA4A0C0063985B /* UniformTypeIdentifiers.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UniformTypeIdentifiers.framework; path = System/Library/Frameworks/UniformTypeIdentifiers.framework; sourceTree = SDKROOT; };
@@ -941,6 +938,9 @@
941938
F36C342F2C0F876500991150 /* SDL_offscreenvulkan.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_offscreenvulkan.h; sourceTree = "<group>"; };
942939
F36C34302C0F876500991150 /* SDL_offscreenvulkan.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_offscreenvulkan.c; sourceTree = "<group>"; };
943940
F36C7AD0294BA009004D61C3 /* SDL_runapp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_runapp.c; sourceTree = "<group>"; };
941+
F373DA172D3889EE002158FA /* INSTALL.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = INSTALL.md; sourceTree = "<group>"; };
942+
F373DA182D388A1E002158FA /* LICENSE.txt */ = {isa = PBXFileReference; lastKnownFileType = text; name = LICENSE.txt; path = ../../../../LICENSE.txt; sourceTree = "<group>"; };
943+
F373DA192D388A1E002158FA /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../../../../README.md; sourceTree = "<group>"; };
944944
F376F6182559B29300CFC0BC /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk/System/Library/Frameworks/OpenGLES.framework; sourceTree = DEVELOPER_DIR; };
945945
F376F61A2559B2AF00CFC0BC /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/iOSSupport/System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
946946
F376F6312559B31D00CFC0BC /* GameController.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameController.framework; path = System/iOSSupport/System/Library/Frameworks/GameController.framework; sourceTree = SDKROOT; };
@@ -1091,7 +1091,6 @@
10911091
F3FA5A1C2B59ACE000FEAD97 /* yuv_rgb_common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = yuv_rgb_common.h; sourceTree = "<group>"; };
10921092
F3FD042C2C9B755700824C4C /* SDL_hidapi_nintendo.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SDL_hidapi_nintendo.h; sourceTree = "<group>"; };
10931093
F3FD042D2C9B755700824C4C /* SDL_hidapi_steam_hori.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = SDL_hidapi_steam_hori.c; sourceTree = "<group>"; };
1094-
F59C710300D5CB5801000001 /* ReadMe.txt */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = ReadMe.txt; sourceTree = "<group>"; };
10951094
F59C710600D5CB5801000001 /* SDL.info */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = SDL.info; sourceTree = "<group>"; };
10961095
F5A2EF3900C6A39A01000001 /* BUGS.txt */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; name = BUGS.txt; path = ../../BUGS.txt; sourceTree = SOURCE_ROOT; };
10971096
FA73671C19A540EF004122E4 /* CoreVideo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreVideo.framework; path = System/Library/Frameworks/CoreVideo.framework; sourceTree = SDKROOT; };
@@ -2410,8 +2409,9 @@
24102409
isa = PBXGroup;
24112410
children = (
24122411
F37A8E1928405AA100C38E95 /* CMake */,
2413-
00794D3F09D0C461003FC8A1 /* License.txt */,
2414-
F59C710300D5CB5801000001 /* ReadMe.txt */,
2412+
F373DA182D388A1E002158FA /* LICENSE.txt */,
2413+
F373DA192D388A1E002158FA /* README.md */,
2414+
F373DA172D3889EE002158FA /* INSTALL.md */,
24152415
);
24162416
path = resources;
24172417
sourceTree = "<group>";
@@ -2755,8 +2755,6 @@
27552755
buildActionMask = 2147483647;
27562756
files = (
27572757
F37A8E1A28405AA100C38E95 /* CMake in Resources */,
2758-
A75FDBB823E4CBC700529352 /* ReadMe.txt in Resources */,
2759-
A75FDBB723E4CBC700529352 /* License.txt in Resources */,
27602758
);
27612759
runOnlyForDeploymentPostprocessing = 0;
27622760
};
@@ -2779,7 +2777,7 @@
27792777
);
27802778
runOnlyForDeploymentPostprocessing = 0;
27812779
shellPath = /bin/sh;
2782-
shellScript = "set -ex\n\nmkdir -p build/dmg-tmp/share/cmake/SDL3\ncp -a build/SDL3.xcframework build/dmg-tmp/\n\ncp pkg-support/resources/License.txt build/dmg-tmp\ncp pkg-support/resources/ReadMe.txt build/dmg-tmp\ncp pkg-support/share/cmake/SDL3/SDL3Config.cmake build/dmg-tmp/share/cmake/SDL3\ncp pkg-support/share/cmake/SDL3/SDL3ConfigVersion.cmake build/dmg-tmp/share/cmake/SDL3\n\n# remove the .DS_Store files if any (we may want to provide one in the future for fancy .dmgs)\nfind build/dmg-tmp -name .DS_Store -exec rm -f \"{}\" \\;\n\n# for fancy .dmg\nmkdir -p build/dmg-tmp/.logo\ncp pkg-support/resources/SDL_DS_Store build/dmg-tmp/.DS_Store\ncp pkg-support/sdl_logo.pdf build/dmg-tmp/.logo\n\n# create the dmg\nhdiutil create -ov -fs HFS+ -volname SDL3 -srcfolder build/dmg-tmp build/SDL3.dmg\n\n# clean up\nrm -rf build/dmg-tmp\n";
2780+
shellScript = "set -ex\n\nmkdir -p build/dmg-tmp/share/cmake/SDL3\ncp -a build/SDL3.xcframework build/dmg-tmp/\n\ncp ../../LICENSE.txt build/dmg-tmp\ncp ../../README.md build/dmg-tmp\ncp pkg-support/resources/INSTALL.md build/dmg-tmp\ncp pkg-support/share/cmake/SDL3/SDL3Config.cmake build/dmg-tmp/share/cmake/SDL3\ncp pkg-support/share/cmake/SDL3/SDL3ConfigVersion.cmake build/dmg-tmp/share/cmake/SDL3\n\n# remove the .DS_Store files if any (we may want to provide one in the future for fancy .dmgs)\nfind build/dmg-tmp -name .DS_Store -exec rm -f \"{}\" \\;\n\n# for fancy .dmg\nmkdir -p build/dmg-tmp/.logo\ncp pkg-support/resources/SDL_DS_Store build/dmg-tmp/.DS_Store\ncp pkg-support/sdl_logo.pdf build/dmg-tmp/.logo\n\n# create the dmg\nhdiutil create -ov -fs HFS+ -volname SDL3 -srcfolder build/dmg-tmp build/SDL3.dmg\n\n# clean up\nrm -rf build/dmg-tmp\n";
27832781
};
27842782
F3B38CF0296F63D1005DA6D3 /* ShellScript */ = {
27852783
isa = PBXShellScriptBuildPhase;
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
# Using this package
3+
4+
This package contains SDL built for Xcode, and includes support for macOS, iOS and tvOS.
5+
6+
To use this package, drag SDL3.xcframework into your project.
7+
8+
# Documentation
9+
10+
An API reference, tutorials, and additional documentation is available at:
11+
12+
https://wiki.libsdl.org/SDL3
13+
14+
# Example code
15+
16+
There are simple example programs available at:
17+
18+
https://examples.libsdl.org/SDL3
19+
20+
# Discussions
21+
22+
## Discord
23+
24+
You can join the official Discord server at:
25+
26+
https://discord.com/invite/BwpFGBWsv8
27+
28+
## Forums/mailing lists
29+
30+
You can join SDL development discussions at:
31+
32+
https://discourse.libsdl.org/
33+
34+
Once you sign up, you can use the forum through the website or as a mailing list from your email client.
35+
36+
## Announcement list
37+
38+
You can sign up for the low traffic announcement list at:
39+
40+
https://www.libsdl.org/mailing-list.php
41+

Xcode/SDL/pkg-support/resources/License.txt

-19
This file was deleted.

Xcode/SDL/pkg-support/resources/ReadMe.txt

-44
This file was deleted.
0 Bytes
Binary file not shown.

build-scripts/build-release.py

+11-2
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,8 @@ def _detect_android_api(self, android_home: str) -> typing.Optional[int]:
891891
platform_versions = []
892892
for platform_dir in platform_dirs:
893893
logger.debug("Found Android Platform SDK: %s", platform_dir)
894+
if not (platform_dir / "android.jar").is_file():
895+
continue
894896
if m:= re_platform.match(platform_dir.name):
895897
platform_versions.append(int(m.group(1)))
896898
platform_versions.sort()
@@ -1248,6 +1250,10 @@ def _build_msvc_cmake(self, arch_platform: VsArchPlatformConfig, dep_roots: list
12481250
platform_context = self.get_context(extra_context=arch_platform.extra_context())
12491251

12501252
build_type = "Release"
1253+
extra_context = {
1254+
"ARCH": arch_platform.arch,
1255+
"PLATFORM": arch_platform.platform,
1256+
}
12511257

12521258
built_paths = set(install_path / configure_text(f, context=platform_context) for file_mapping in (self.release_info["msvc"]["cmake"]["files-lib"], self.release_info["msvc"]["cmake"]["files-devel"]) for files_list in file_mapping.values() for f in files_list)
12531259
logger.info("CMake builds these files, to be included in the package: %s", built_paths)
@@ -1298,7 +1304,7 @@ def _build_msvc_cmake(self, arch_platform: VsArchPlatformConfig, dep_roots: list
12981304
logger.info("Collecting files...")
12991305
archive_file_tree = ArchiveFileTree()
13001306
archive_file_tree.add_file_mapping(arc_dir="", file_mapping=self.release_info["msvc"]["cmake"]["files-lib"], file_mapping_root=install_path, context=platform_context, time=self.arc_time)
1301-
archive_file_tree.add_file_mapping(arc_dir="", file_mapping=self.release_info["msvc"]["files-lib"], file_mapping_root=self.root, context=self.get_context(), time=self.arc_time)
1307+
archive_file_tree.add_file_mapping(arc_dir="", file_mapping=self.release_info["msvc"]["files-lib"], file_mapping_root=self.root, context=self.get_context(extra_context=extra_context), time=self.arc_time)
13021308

13031309
logger.info("Creating %s", zip_path)
13041310
with Archiver(zip_path=zip_path) as archiver:
@@ -1489,8 +1495,11 @@ def main(argv=None) -> int:
14891495
if args.android_api is None:
14901496
with section_printer.group("Detect Android APIS"):
14911497
args.android_api = releaser._detect_android_api(android_home=args.android_home)
1492-
if args.android_api is None or not (Path(args.android_home) / f"platforms/android-{args.android_api}").is_dir():
1498+
if args.android_api is None:
14931499
parser.error("Invalid --android-api, and/or could not be detected")
1500+
android_api_path = Path(args.android_home) / f"platforms/android-{args.android_api}"
1501+
if not android_api_path.is_dir():
1502+
parser.error(f"Android API directory does not exist ({android_api_path})")
14941503
with section_printer.group("Android arguments"):
14951504
print(f"android_home = {args.android_home}")
14961505
print(f"android_ndk_home = {args.android_ndk_home}")

0 commit comments

Comments
 (0)