| Summary: | CodeWarrior projects updated | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sam Lantinga <slouken> |
| Component: | *don't know* | Assignee: | Anders F Bj <afb> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | CC: | afb, icculus, max |
| Version: | HG 1.2 | ||
| Hardware: | PowerPC | ||
| OS: | Mac OS Classic | ||
| Bug Depends on: | 218, 221, 222, 223 | ||
| Bug Blocks: | |||
| Attachments: |
CWprojects-xml.zip
CWprojects-cw9.zip |
||
|
Description
Sam Lantinga
2006-01-19 07:39:26 UTC
Setting Sam as "QA Contact" on all bugs (even resolved ones) so he'll definitely be in the loop to any further discussion here about SDL. --ryan. *** Bug 14 has been marked as a duplicate of this bug. *** OK, I will try to update the old projects but there are some additions in the new SDL that are not compatible with the old Mac builds such as the "../*" includes. So it's possible that there won't be projects for Classic or Win32, just a Carbon project (for Mac OS 9 / Mac OS X CFM) Adding a Mach-O project to CW could be done. What kind of backwards compatibility is SDL looking at ? (I guess the MPW and Xcode projects are outside this bug) Removing these files: audio/SDL_audiomem.c endian/SDL_endian.c SDL_getenv.c SDL_loadso.c Adding these files: stdlib/SDL_getenv.c loadso/macos/SDL_sysloadso.c Probably some others, before it builds. Also need to change SDL_opengl.h: #if defined(__MACOSX__) #include <OpenGL/gl.h> /* Header File For The OpenGL Library */ #include <OpenGL/glu.h> /* Header File For The GLU Library */ #elif defined(__MACOS__) #include <gl.h> /* Header File For The OpenGL Library */ #include <glu.h> /* Header File For The GLU Library */ #else #include <GL/gl.h> /* Header File For The OpenGL Library */ #include <GL/glu.h> /* Header File For The GLU Library */ #endif Can't activate UNIX paths otherwise, as it doesn't find the GL headers ? Here are the available targets, for each version:
CW5:
- MacOS (PPC)
- Win32 (X86)
CW6:
- Classic (MacOS)
- Carbon
- Win32
CW9:
- CFM (Carbon)
- Mach-O
- Win32
The Mach-O project currently doesn't build,
since the platform headers don't work for it.
("SDL_platform.h" thinks that it is Classic,
seems to only recognize Apple's GCC compilers)
Can you attach the updated projects? The ones at http://www.algonet.se/~afb/libsdl/CWprojects-xml.zip appear to be old. Thanks! Will do... I'd like to get this fixed for SDL 1.2.10 release, if possible. Created attachment 116 [details]
CWprojects-xml.zip
XML-exported projects for CodeWarrior 5 and 6
Rez-exported resource files, for CodeWarrior
Uploaded oldskool projects for Classic and for Carbon/CFM, CW9 project for Mach-O/Carbon.framework not working 100% Trying to submit the necessary code changes separately, for compiling with Carbon/CFM and Win32 with CodeWarrior. Created attachment 121 [details]
CWprojects-cw9.zip
There will be no Win32 targets for CW9/CW10. Instead, the following targets were added: CW9: - CFM (Carbon) - Carbon (Mach-O) - Cocoa (Mach-O) It builds the following Mach-O: - SDLmainCarbon.lib - SDLCarbon.dylib - SDLmainCocoa.lib - SDLCocoa.dylib All linking to libSystem.dylib Seems like all the changes are in Subversion now, so it's soon time for the big "smoke test" of it... Time for another "family portrait", with the new members "Carbon Mach-O" and "Cocoa Mach-O" in addition to the old Maybe I'll take a peek at the MPW and ProjectBuilder too, but I'm not sure if it's worth any effort or not? (that was: the old Mac OS X .pbproj and .xcode projects, and the Makefiles for build Mac OS 9 libraries with MPW) (In reply to comment #14) > Seems like all the changes are in Subversion now, > so it's soon time for the big "smoke test" of it... > > Time for another "family portrait", with the new members > "Carbon Mach-O" and "Cocoa Mach-O" in addition to the old Great. :) Go ahead and attach any new projects, and obsolete the old attachments. Thanks! > Maybe I'll take a peek at the MPW and ProjectBuilder > too, but I'm not sure if it's worth any effort or not? > (that was: the old Mac OS X .pbproj and .xcode projects, > and the Makefiles for build Mac OS 9 libraries with MPW) The MPW Makefiles are all up to date. The Xcode projects are up to date, and build Universal binaries and redistributable packages. The Project Builder files are gone for good. (In reply to comment #15) > The MPW Makefiles are all up to date. The Xcode projects are up to date, and > build Universal binaries and redistributable packages. The Project Builder > files are gone for good. I meant the Xcode 1.5 projects, which also seem "gone for good". In the tarball there was only Xcode 2 projects for Mac OS X 10.4 All this project file version craziness is a good reason (for me) to leave both CodeWarrior and Xcode behind and just use MPW/Make. Thanks! I've updated CWprojects.sea.bin with the CodeWarrior 5 and 6 projects. In addition, I did the following for the CodeWarrior 5 projects: * Updated the version string to 1.2.10 * Removed Win32 targets from CodeWarrior 5 projects (since I don't have Win32 compiler support) * Cleaned up access paths * Removed unnecessary macos_prefix.h * Added all necessary StdCLib headers to Support:MacOS * Added OpenGL 1.2 API headers and libraries to Support:MacOS * Added testdyngl test program * Removed OpenGL stub from all test programs except for testgl (In reply to comment #17) > In addition, I did the following for the CodeWarrior 5 projects: Keeping busy! :-) The Win32 target did require some patching of the SDL sources, so there's a big patch needed in order for that to work anyway... I tested the earlier Win CW builds with Windows 98 (in VPC :-) ), but haven't gotten around to doing so with these new SDL 1.2.10 |