README.BeOS
author Ozkan Sezer <sezeroz@gmail.com>
Fri, 22 Jun 2018 21:03:40 +0300
branchSDL-1.2
changeset 12026 67f391c74aee
parent 1371 e2641c13bf33
permissions -rw-r--r--
SDLMain.m: replace CPS* stuff with activateIgnoringOtherApps (bug #4114)

CPS stuff are deprecated and emit warnings at runtime, e.g.:

warning: CPSGetCurrentProcess(): This call is deprecated and should not be called anymore
warning: CPSSetForegroundOperationState() (as above)
warning: capture_display; Captured mirror master 0x350000c1 (unit 1) on behalf of slave 0x042716c0 (unit 0)

http://lists.libsdl.org/pipermail/sdl-libsdl.org/2006-April/055749.html
suggests doing something like:

ProcessSerialNumber psn = { 0, kCurrentProcess};
TransformProcessType (&psn, kProcessTransformToForegroundApplication);
SetFrontProcess (&psn);

And SetFrontProcess() is deprecated in 10.9. Processes.h suggests
[[NSApplication sharedApplication] activateIgnoringOtherApps: YES]
to make one's own application frontmost.
slouken@1371
     1
slouken@1371
     2
SDL on BeOS R5
slouken@1371
     3
==============
slouken@1371
     4
slouken@1371
     5
You can build SDL on BeOS like any other GNU style package.
slouken@1371
     6
e.g. ./configure && make && make install
slouken@1371
     7
By default it is installed in /boot/develop/tools/gnupro/{bin,lib,etc.}
slouken@1371
     8
slouken@1371
     9
Once you install SDL, you need to copy libSDL.so to /boot/home/config/lib,
slouken@1371
    10
so it can be found by the dynamic linker.
slouken@1371
    11
slouken@1371
    12
Enjoy!
slouken@1371
    13
	Sam Lantinga				(slouken@libsdl.org)