Commit Graph

188 Commits

Author SHA1 Message Date
Sam Lantinga
f4c4c1e5d8 Fixed building new joystick code on Mac OS X 2012-11-26 21:55:59 -08:00
Sam Lantinga
23950f0183 Added hotplug joystick support and simplified game controller API, courtesy of Alfred Reynolds 2012-11-26 16:37:54 -08:00
Sam Lantinga
d3db855b77 Added Cocoa messagebox implementation to the OSX Xcode project 2012-10-30 12:37:57 -07:00
Sam Lantinga
e91fdd5b30 Turned off the install flag for the static library because we don't want it getting into application distribution packages.
Added SDL_x11messagebox.c to the static library target
2012-10-27 02:54:10 -07:00
Sam Lantinga
7c80d3d457 Added new message box API to Xcode projects 2012-10-24 00:13:50 -07:00
Sam Lantinga
6df7eadc37 Added patchlevel to version number 2012-10-19 21:19:30 -07:00
Sam Lantinga
d74045da2a tree fc1a744f184c
parent 88580fa6c549
author Edward Rudd <urkle@outoforder.cc> 1350500791 14400
committer Edward Rudd <urkle@outoforder.cc> 1350500791 14400
revision 6592
branch default

use different rpath so SDL2.framework will live in the bundle's Framework folder
2012-10-19 21:18:06 -07:00
Sam Lantinga
396cc73864 tree 451ddf291d85
parent 7925f0f43dc4
author Edward Rudd <urkle@outoforder.cc> 1350500747 14400
committer Edward Rudd <urkle@outoforder.cc> 1350500747 14400
revision 6591
branch default

A few fixes to the SDL framework plist

- correct version number
- remove CFBundleExecutable
- correct CFBundleIdentifier
2012-10-19 21:17:58 -07:00
Sam Lantinga
12f7e857fb Fixed copying headers to the Framework 2012-10-02 23:23:44 -07:00
Sam Lantinga
ffabd91859 Added SDL_system.h to the various projects 2012-06-23 06:46:06 -04:00
Sam Lantinga
3da89b1dd0 Updated Mac OS X and iOS projects 2012-06-21 10:41:25 -04:00
Sam Lantinga
5277741dcd Updated Android Makefile for SDL2 2012-01-30 20:09:50 -05:00
Sam Lantinga
254cf2c53c Removed old compat files from Visual Studio and Xcode projects 2012-01-22 22:09:29 -05:00
Sam Lantinga
c484f884c5 Updated to SDL 2.0, and SDL 2.0 can now be installed coexisting with SDL 1.2 2012-01-22 17:21:00 -05:00
Sam Lantinga
2e7c2ac7c8 Futzing around with strip settings 2012-01-09 00:24:08 -05:00
Sam Lantinga
566e80ff71 Updated Xcode project 2012-01-08 14:45:57 -05:00
Sam Lantinga
1576610f7c Updated SDL test projects 2012-01-07 17:08:17 -05:00
Sam Lantinga
69800abcef Use version B instead of A until we switch SDL 1.3 to SDL2
C.W. Betts 2012-01-06 22:58:41 PST
I would NOT use A. SDL 1.2 uses A, and if I understand correctly, SDL 1.3 and
SDL 1.2 are not binary compatible. Having a different link path for 1.2 and 1.3
will solve any runtime linking errors that might occur.

Sam Lantinga 2012-01-07 00:22:09 PST
Good point.  Until we switch SDL 1.3 to SDL2, we shouldn't use the same link
path.
2012-01-07 03:22:47 -05:00
Sam Lantinga
97ea7268fb Switched back to version A, since we don't actually have a version A for SDL 1.3.
It would only be meaningful if we were planning to ship 1.2 as A, and 1.3 as B, which is completely worthless given the headers will be for 1.3 and the API is completely different.
2012-01-07 01:03:54 -05:00
Sam Lantinga
20abdb9182 Switched to @rpath for the install path and switched minimum OS to 10.5
Removed extra build configurations
2012-01-02 00:47:54 -05:00
Sam Lantinga
85cc916176 Upgraded SDL Xcode project for XCode 4.2, including switching Framework Version to "B", which is required by the Apple Store. 2011-12-31 13:29:09 -05:00
Ryan C. Gordon
9aba292cfc Added SDL_dropevents to the Xcode project files.
Fixes build.
2011-12-06 21:46:19 -05:00
Ryan C. Gordon
9a4e598f42 Removed sail.bmp reference from Xcode project.
Fixes Buildbot.
2011-09-09 10:45:48 -04:00
Ryan C. Gordon
82df1959c1 Removed legacy Mac OS X dlcompat code.
It was only needed for Mac OS X 10.0 through 10.2, so it seems silly to keep
 it around for SDL 1.3.

I'll leave it in the 1.2 branch for now, though.
2011-09-09 00:34:48 -04:00
Ryan C. Gordon
6634d3d1fe Merged Mac OS X and iOS audio targets. 2011-08-04 00:45:09 -04:00
Sam Lantinga
117146456c Removed buggy and LGPL MMX mixing routines. 2011-04-08 13:16:33 -07:00
Sam Lantinga
b12e397498 Don't be clever, just call it testthread 2011-03-25 11:09:57 -07:00
Sam Lantinga
81c862f80d The Xext directory no longer exists 2011-03-05 10:03:57 -08:00
Sam Lantinga
5e0f2c8b85 Updated the template code 2011-02-20 19:15:00 -08:00
Sam Lantinga
dbb0a44739 Renamed SDL_keysym.h to SDL_keycode.h to avoid confusion. 2011-02-16 15:46:12 -08:00
Sam Lantinga
e3883e9792 The scripts to generate header files are no longer necessary. 2011-02-16 12:15:04 -08:00
Sam Lantinga
76489b5e9e Removed unused leak detection code. 2011-02-11 14:23:22 -08:00
Sam Lantinga
65eb03e87b Fixed compile in Xcode 2011-02-11 10:18:34 -08:00
Sam Lantinga
2354f8cc88 Updated Xcode project with OpenGL shader files 2011-02-09 10:37:52 -08:00
Sam Lantinga
47818cfba9 Added a simple log message API 2011-02-07 16:45:40 -08:00
Sam Lantinga
1a384e89c4 Updated Xcode project with moved and removed files 2011-02-06 02:41:32 -08:00
Sam Lantinga
c952c0543d Updated Mac OS X and iOS projects 2011-02-05 16:02:30 -08:00
Sam Lantinga
93a4e38e98 Added a way to get a framebuffer interface for a window, and also a way to create a software renderer for an arbitrary surface.
The software renderer has been re-routed to use the framebuffer interface, which makes it possible to have software rendering available even on simple ports.
2011-02-03 15:49:37 -08:00
Sam Lantinga
405d4ed7e4 Made it possible to create a texture of any format, even if not supported by the renderer.
This allows me to reduce the set of formats supported by the renderers to the most optimal set, for a nice speed boost.
2011-02-03 00:19:40 -08:00
Sam Lantinga
8bf50cc83c Moved the rendering code out to a separate directory in the hope that it can someday be completely decoupled from the rest of the library and be expanded to an awesome 2D on 3D library. 2011-02-02 14:34:54 -08:00
Sam Lantinga
e1e1122ee0 Fixed bug #1102
Check /usr/local/bin for hg before sourcing the user's bash settings
2011-01-24 17:47:18 -08:00
Sam Lantinga
eec2c075f8 Fixed bug #1103
The SDL_blendmode.h and SDL_scalemode.h headers needed to be added to the Public Headers and all the public headers need to have the "Public" role set.
2011-01-24 16:10:13 -08:00
Sam Lantinga
ba15b5e9b9 Fixed missing source files in static library target
Fixed building SDL test programs
2011-01-18 16:47:14 -08:00
Sam Lantinga
89d48a0f83 Added native atomic operations for Windows, Mac OS X, and gcc compiler intrinsics.
Changed the CAS return value to bool, so it's efficient with OSAtomicCompareAndSwap32Barrier()
Added an atomic test adapted from code by Michael Davidsaver
2011-01-16 15:16:39 -08:00
Sam Lantinga
38e31e4598 Updated the atomic API for better use cases 2011-01-15 12:41:59 -08:00
Sam Lantinga
d44793d5c3 Final touches on renaming SDL_eventtouch to SDL_x11touch 2011-01-01 20:04:50 -08:00
Andreas Schiffler
d7a6af4ad0 Fix Xcode project to turns the SDL_gesture.h and SDL_touch.h into public includes (since they are included when using the SDL/SDL.h file)
--
user: Andreas Schiffler <aschiffler@ferzkopp.net>
branch 'default'
changed Xcode/SDL/SDL.xcodeproj/project.pbxproj
2010-11-16 07:44:47 -08:00
Sam Lantinga
b7c5d88e6a Merged Eli's Google Summer of Code work from SDL-gsoc2010-shaped_windows 2010-08-22 13:45:56 -07:00
egottlieb
b6a4181ee9 Recoded Cocoa code that got erased by... failure to commit? Merge? Eh. 2010-08-16 14:01:00 -04:00
egottlieb
c4d3ce5615 Building under OS X with command-line tools now works. 2010-08-03 23:41:57 -04:00
egottlieb
4a74542b6e Got basic, pre-actually-writing-anything Cocoa to build. 2010-08-03 00:47:33 -04:00
jimtla
2826ce67af Added preliminary touch code to SDL_cocoakeyboard.m 2010-07-24 22:28:38 +04:00
jimtla
01ca66c30f Fixed x11 compile bugs. 2010-07-22 08:12:28 +04:00
Sam Lantinga
ddf0465549 Added an event when the clipboard is updated, triggered after the window gains the keyboard focus. 2010-07-08 22:54:03 -07:00
Sam Lantinga
8a86c556fd Made the new public headers public 2010-07-08 06:21:48 -07:00
Sam Lantinga
f8e47b7402 Updated Xcode project files for clipboard API
Fixed generation of SDL_revision.h when hg is in the path set up in .bash_profile
2010-07-08 06:16:27 -07:00
Eric Wing
083a3e00de Added the automated test plist file and modified .hgignore to be less aggressive.
Discovered that the new plist file for the automated test was not checked in because the .hgignore file was too aggressive. I changed the .hgignore to not ignore the Xcode directory and instead added a longer list of things to ignore.
2010-05-12 12:49:28 -07:00
Eric Wing
f4b7b16da7 Updated Mac Xcode project for refactored rwops automated test changes. 2010-05-09 07:00:28 -07:00
Eric Wing
dada7f15bc Added automated test to Xcode project plus needed changes to SDL_RWFromFile to be OS X bundle aware.
The Mac OS X project has a new target called testsdl which builds the automated test. I looked at using Xcode's native unit test support, but the impedance mismatch between the existing automated test structure and Apple's was more than I could handle.

As such, the testsdl application is a full blown proper OS X application, which means it is a self-contained .app bundle. This immediately revealed some problems from the automated test. The largest problem was the assumption about the current working directory and where to find resources. (I suspect Windows may have a similar problem depending on circumstance.) To open resources, the test was looking in directories relative to the SDL source directory, but this will not work well with self-contained .app bundles and Xcode which can place its built applications almost anywhere. And for real-world situations, this is pretty useless anyway.

So I modified SDL_RWFromFile to do special things on OS X. First, it will look for a file in the .app bundle. If not found, it will fallback and just call fopen as it used to do.

I also had to modify the automated test itself because it had a contrieved test which called fopen directly to do read from an existing FILE pointer. In addition, there was a write test. Since a .app bundle is likely going to be read-only, I added a special case for OS X to write to NSTemporaryDirectory.

I expect these changes should work for both Mac and iPhone OS (which includes iPad).

I will update the iPhone Xcode project next.

Finally, FYI, the X11 automated test seems to be failing. Below is my output.


Pending breakpoint 4 - "-[NSException raise]" resolved
Platform : All tests successful (2)
SDL_RWops : All tests successful (5)
Rect : All tests successful (1)
SDL_Surface : All tests successful (6)
Rendering with cocoa driver : All tests successful (3)
Assert Failed!
   Blit output not the same.
   Test Case 'Renderer x11'
   Test Suite 'Rendering with x11 driver'
   Last SDL error ''
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSGetSurfaceBounds
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSGetWindowBounds
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSGetSurfaceBounds
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSGetWindowBounds
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSGetSurfaceBounds
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSGetWindowBounds
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSGetSurfaceBounds
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSGetWindowBounds
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSGetSurfaceBounds
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSGetWindowBounds
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSGetSurfaceBounds
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSGetWindowBounds
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSGetSurfaceBounds
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Sat May  8 00:30:34 iMacAL.local testsdl[71586] <Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0xa150
Rendering with x11 driver : Failed 1 out of 4 testcases!
Rendering with dummy driver : All tests successful (3)
SDL_Audio : All tests successful (1)
Tests run with SDL 1.3.0 revision 1095906
System is running Mac OS X and is little endian
2010-05-08 00:54:22 -07:00
Sam Lantinga
020dfe5420 Added Xcode-iPhoneOS to make dist 2010-01-19 05:31:16 +00:00
Sam Lantinga
a6f953d085 Updated Mac OS X projects with new assertion code 2010-01-18 14:50:57 +00:00
Sam Lantinga
9484504baa Fixed Mac OS X Xcode build 2010-01-13 05:08:41 +00:00
Sam Lantinga
3938d4d55d Eric Wing to Sam
Sorry, here's another small fix.
I changed two options in the Doxyfiles in the XcodeDocSet directories which should allow at least a brief description to be seen in Quick Help.
2009-10-06 03:33:10 +00:00
Sam Lantinga
3b50b6a3d5 Eric Wing to Sam
Included is the fix for the missing SDL_revision.h in the framework.

Also, I include the project template fixes for the prefix header files. But since this is in SVN directly, you must rename the files named
SDLApp_Prefix.pch
to
___PROJECTNAMEASIDENTIFIER____Prefix.pch

in the TemplatesForXcodeSnowLeopard and TemplatesForXcodeLeopard directories. (Do not rename the Tiger ones.)
2009-10-04 16:26:34 +00:00
Sam Lantinga
cc0c10c56d Eric Wing to Sam
Lots of fixes.
Fixed missing power management building.
Added template icons to the project templates.
DocSet stuff
Documentation fixes..

Fixed all the SDLtests. (Lots of tedious work.) It now depends on the static library target for convenience so I am not going to remove it from the SDL xcode project.
2009-10-01 15:30:26 +00:00
Sam Lantinga
cae620fed0 Getting ready for a new drop from Eric, hopefully the last time I have to wipe this. 2009-10-01 15:26:39 +00:00
Sam Lantinga
298c9c2ac3 Added missing templates 2009-09-29 07:59:23 +00:00
Sam Lantinga
0a5805f8f2 Eric Wing to Sam
I refactored how the shell script code-gen phases were setup in the Xcode project.
I also removed the SDLmain files from the project templates.
2009-09-26 03:58:35 +00:00
Sam Lantinga
6e5014854d Eric Wing to Sam
Removed the SDLMain lines from the packaging scripts.
2009-09-24 14:43:03 +00:00
Sam Lantinga
69732bedfa Updated Xcode project from Eric Wing 2009-09-24 07:13:02 +00:00
Sam Lantinga
8e720afb8f Getting ready for a new Xcode project from Eric Wing 2009-09-24 07:12:05 +00:00
Sam Lantinga
6bb854b1d4 Removed outdated Dreamcast support 2009-09-19 07:21:22 +00:00
Sam Lantinga
d9239f080e Updated Xcode project for latest file changes 2009-09-05 19:34:51 +00:00
Sam Lantinga
91e861375f Added SDL_revision.h 2009-08-02 18:40:18 +00:00
Sam Lantinga
63d198944c Added missing SDL_revision.h 2009-08-02 13:49:13 +00:00
Sam Lantinga
feb57f8c79 Added SDL_atomic.h and SDL_power.h to public API headers
Added atomic source files (which don't compile currently)
2009-08-02 13:08:19 +00:00
Ryan C. Gordon
3f43a1f614 Reverted bogus change to SDLTest xcode project. 2009-06-07 06:49:01 +00:00
Ryan C. Gordon
ed74778bf6 Added power subsystem to Xcode project. 2009-06-07 06:42:15 +00:00
Sam Lantinga
b34845333f Updated project with new source files 2008-12-25 04:56:44 +00:00
Ryan C. Gordon
c8c0e07da9 Add XInput support to Xcode project (untested!). 2008-09-17 08:24:51 +00:00
Sam Lantinga
458f7b5b0c indent 2008-09-15 04:32:36 +00:00
Edgar Simo
a9a0df07e8 Update to xcode to include haptic subsystem stuff by Alam. 2008-08-26 11:18:34 +00:00
Sam Lantinga
48b1db8b30 Date: Wed, 7 May 2008 21:48:10 +0200
From: Christian Walther
Subject: SDL 1.3 Xcode projects

Here are my promised updates to the Xcode projects. They work as far
as I'm using them, but I have not tested them thoroughly, and there
may still be some cruft left. In particular, I haven't checked whether
the frameworks still work on older versions of Mac OS X (are we still
targeting 10.2?), and whether Altivec/SSE optimizations are properly
done. Of note: I incremented the framework version to B to enable SDL
1.2 and 1.3 to coexist in a single framework.

Let me know if you see any problems.

Greetings

   Christian
2008-05-08 05:06:24 +00:00
Sam Lantinga
8ec5a89f81 Updated Xcode project from Eric Wing 2008-05-02 14:55:08 +00:00
Sam Lantinga
4b88504be7 Don't run indent on the Xcode templates 2007-08-11 18:51:12 +00:00
Bob Pendleton
d3668d3a1d make indent 2007-07-25 21:23:28 +00:00
Bob Pendleton
624a1851eb make indent 2007-07-24 18:46:45 +00:00
Sam Lantinga
7839797798 Unpacked project archives to get individual file history in subversion 2007-07-21 17:09:01 +00:00