Use a per-process server address for the GLES server

Previously we used a hardcoded address (tcp port, unix pipe path,
etc.) for the OpenGLRender system. Multiple emulators would all try to
listen on the same address, with the system non-deterministically (?)
choosing which one accepted each new connection. This resulted in
frames going to the wrong emulator window, one emulator shutting down
another's OpenGL system, etc.

Now the OpenGLRender server requests an unused tcp port or derives a
path from the pid, and reports the address back to the emulator client
to use for future connections from the guest.

Change-Id: I139d32615200b36b87f2d2ede4abb4060ec02776
Merge "Use a per-process server address for the GLES server"
Handle SDL windows with BGRA color

The switch to CoreGraphics on OSX (instead of QuickDraw) in SDL 1.2.15
means the SDL-created window now has BGRA color order instead of ARGB.
This change makes the r5g6b5 and xbgr32 format converters handle
whatever channel ordering the main SDL surface has. Skin regions don't
need to change, since we draw them into auxiliary surfaces we created
with ARGB order, and SDL does the conversion when we blit them into
the main window.

Change-Id: I2ae0529c66c11b60b3ade7a7a742368a2ab614bd
Import SDL release-1.2.15

Change-Id: I505c4aea24325cad475f217db5589814b4c75dbf
Apply Android changes from sdl-1.2.12 to sdl-1.2.15

These changes come from diffing Android's sdl-1.2.12 tree against a
pure upstream sdl-1.2.12 tree, and then manually applying those
differences to the sdl-1.2.15 tree.

Change-Id: I05fa6e8004bb629fa2482f092b6ab127b7e51e73
Merge changes I505c4aea,I2ae0529c

* changes:
  Import SDL release-1.2.15
  Handle SDL windows with BGRA color
Merge "Apply Android changes from sdl-1.2.12 to sdl-1.2.15"
Remove link dependency on SDL_audio.c which we don't build

Change-Id: Iac0a43a0ccc29bf891f37117fa856ca36e28c4de
Merge "Remove link dependency on SDL_audio.c which we don't build"
Switch to sdl 1.2.15 and build from source on osx

Change-Id: I036eefd9789bfe346e9ee5acc15c1d9ffe995c94
Merge "Switch to sdl 1.2.15 and build from source on osx"
Fix typos

Change-Id: Ib40b9c88cf8a9a7e37e3f40249b78fa01cd41ab4
http://code.google.com/p/android/issues/detail?id=35283
http://code.google.com/p/android/issues/detail?id=35284
Delete sdl-1.2.12

Change-Id: Ia96f80df04035ae84be3af468c945f2cec14f99c
Merge "Delete sdl-1.2.12"
Fix MacOSX 10.7 build

MacOSX 10.7 fails to build external/qemu because SDK path isn't set.
Set SDK path to 10.6 (the minimal SDK comes with Xcode 4.x, PS*1) for
10.7.

PS*1: Note that Xcode 3.x can't be installed on 10.7 w/o hack.

Change-Id: Ie2db76a91bf3edac6a8670ce7d695060a2bd6473
Merge "Fix MacOSX 10.7 build"
Merge "Fix typos"
Enable 64-bit emulator for MacOSX host

64-bit emulator can now be enabled for MacOSX host because the newly
upgraded sdl-1.2.15 no longer depends on NSQuickDrawView lacking
64-bit implementation.

Also rename makefile variable MSDK to OSX_VERSION

Change-Id: Ia36863f7708d281f90f5fa40a1507b52b1b68a79
Merge "Enable 64-bit emulator for MacOSX host"
Don't try to build the emulator on Mac OS if the right tools aren't installed.

Change-Id: I7f8dcec1715657d44c562427d1c3dbd290f14ff8