ViewVC logotype

Contents of /trunk/3rdparty/SDL-1.3.0-5387/README.Porting

Parent Directory Parent Directory | Revision Log Revision Log

Revision 401 - (show annotations) (download)
Fri Feb 25 17:31:09 2011 UTC (9 years, 11 months ago) by william
File size: 1822 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4358 local: v0.9.7.313-latest) in ./trunk
1 * Porting To A New Platform
3 The first thing you have to do when porting to a new platform, is look at
4 include/SDL_platform.h and create an entry there for your operating system.
5 The standard format is __PLATFORM__, where PLATFORM is the name of the OS.
6 Ideally SDL_platform.h will be able to auto-detect the system it's building
7 on based on C preprocessor symbols.
9 There are two basic ways of building SDL at the moment:
11 1. The "UNIX" way: ./configure; make; make install
13 If you have a GNUish system, then you might try this. Edit configure.in,
14 take a look at the large section labelled:
15 "Set up the configuration based on the target platform!"
16 Add a section for your platform, and then re-run autogen.sh and build!
18 2. Using an IDE:
20 If you're using an IDE or other non-configure build system, you'll probably
21 want to create a custom SDL_config.h for your platform. Edit SDL_config.h,
22 add a section for your platform, and create a custom SDL_config_{platform}.h,
23 based on SDL_config.h.minimal and SDL_config.h.in
25 Add the top level include directory to the header search path, and then add
26 the following sources to the project:
27 src/*.c
28 src/audio/*.c
29 src/cdrom/*.c
30 src/cpuinfo/*.c
31 src/events/*.c
32 src/file/*.c
33 src/joystick/*.c
34 src/stdlib/*.c
35 src/thread/*.c
36 src/timer/*.c
37 src/video/*.c
38 src/audio/disk/*.c
39 src/audio/dummy/*.c
40 src/video/dummy/*.c
41 src/joystick/dummy/*.c
42 src/cdrom/dummy/*.c
43 src/thread/generic/*.c
44 src/timer/dummy/*.c
45 src/loadso/dummy/*.c
48 Once you have a working library without any drivers, you can go back to each
49 of the major subsystems and start implementing drivers for your platform.
51 If you have any questions, don't hesitate to ask on the SDL mailing list:
52 http://www.libsdl.org/mailing-list.php
54 Enjoy!
55 Sam Lantinga (slouken@libsdl.org)

  ViewVC Help
Powered by ViewVC 1.1.22