forked from xamox/pygame
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Anthony Oliver
committed
Aug 21, 2012
1 parent
b8b4f81
commit 088bcfa
Showing
755 changed files
with
189,667 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
include Setup.in Setup_Darwin.in Setup_Unix.in Setup_Win_Common.in *.py WHATSNEW readme.rst install.html readme.html LGPL | ||
|
||
recursive-include docs * | ||
recursive-include lib * | ||
recursive-include src * | ||
recursive-include examples * | ||
recursive-include test * | ||
prune */CVS | ||
prune */*/CVS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@echo off | ||
rem Make the prebuilt package from the libraries built with | ||
rem msys_build_deps.py. Takes one optional argument, the | ||
rem name of the output directory. | ||
rem | ||
rem This batch file needs python.exe, pexports.exe | ||
rem (found in altbinutils-pe at SourceForge, | ||
rem http://sourceforge.net/projects/mingwrep/) and | ||
rem Visual C's VCVARS32.BAT in the executables search path. | ||
rem Otherwise run make_prebuilt.py first, then the batch | ||
rem files MakeDefs.bat and MakeLibs.bat afterward. | ||
|
||
python.exe make_prebuilt.py %1 | ||
if errorlevel 1 goto done | ||
if "%1"=="" goto useprebuilt | ||
copy /Y prebuilt-template\readme71.html "%1\readme.html" | ||
cd "%1" | ||
goto domake | ||
:useprebuilt | ||
copy /Y prebuilt-template\readme71.html prebuilt\readme.html | ||
cd prebuilt | ||
:domake | ||
cd lib | ||
CALL Make32.bat | ||
cd ..\.. | ||
:done | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@echo off | ||
rem Make the Win32 prebuilt file for Pythons 2.6 and up. | ||
rem Takes an optional argument, the prebuilt directory path. | ||
rem Requires Visual Studio, with VCVARS32.BAT is on the | ||
rem executable search path. Python must also be on the search | ||
rem path. msys_link_VC_2008_dlls.py requires pexports.exe 0.43. | ||
|
||
set DESTDIR=%1 | ||
if "%DESTDIR%" == "" set DESTDIR=prebuilt | ||
|
||
python make_prebuilt.py %DESTDIR% | ||
if errorlevel 1 goto aborted | ||
|
||
copy /Y prebuilt-template\readme90.html "%DESTDIR%\readme.html" | ||
|
||
set DESTDIR=%DESTDIR%\lib | ||
deltree /Y %DESTDIR%\msvcr71 | ||
python msys_link_VC_2008_dlls.py -d %DESTDIR% --all | ||
if errorlevel 1 goto aborted | ||
|
||
CALL VCVARS32.BAT | ||
cd %DESTDIR% | ||
CALL MakeLibs.bat | ||
if errorlevel 1 goto aborted | ||
|
||
echo ' | ||
echo ===================================== | ||
echo Prebuilt directory built successfully | ||
goto done | ||
|
||
:aborted | ||
echo ' | ||
echo *** Error: failed to complete | ||
|
||
:done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#fake Makefile for pygame, to support the common | ||
# ./configure;make;make install | ||
|
||
PYTHON = python | ||
|
||
build: Setup setup.py | ||
$(PYTHON) setup.py build | ||
|
||
install: Setup setup.py | ||
$(PYTHON) setup.py install | ||
|
||
Setup: | ||
$(PYTHON) configure.py | ||
|
||
check tests: | ||
$(PYTHON) run_tests.py | ||
|
||
test: build test src | ||
$(PYTHON) run_tests.py | ||
|
||
docs: install | ||
cd docs/utils | ||
$(PYTHON) makedocs.py | ||
|
||
clean: | ||
rm -rf build dist | ||
rm -f lib/*~ src/*~ test/*~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Pygame 1.9.0 partially builds with Python 3.x. setup.py installs Pygame | ||
without any special preparations. However not all modules will be | ||
included. All SDL only extension modules are available. And some of the | ||
optional modules are as well. | ||
|
||
|
||
If this is an SVN checkout then the state of each source file can be | ||
checked with the python3 property. Its value is a comma separated list | ||
of tags: | ||
|
||
compiles - A C or Python file that will compile without errors, | ||
but may not work correctly with Python 3. | ||
|
||
passes - This module compiles and passes the unit tests for | ||
Python 3. | ||
|
||
runs - A module or program that compiles and runs without known | ||
problems, but has no related unit tests for validation. | ||
|
||
partial_file - This module has a partial solution for Python 3 | ||
file support. Python 3.x replaces the PyFile_Type extension type | ||
with an abstract interface and specific implementation types. | ||
Unfortunately it doesn't make any of this directly available | ||
with a C level api. So for now disk file objects are just | ||
treated as another file-like object. This applies to extension | ||
modules that pass open files to SDL in Python 2.x. | ||
|
||
partial_unicode - This module has a partial solution to unicode | ||
support. This can apply to file names and stream content. For | ||
Python 3 untested assumptions are made as to which encodings to | ||
use. They may be wrong. | ||
|
||
released - This module is considered fully Python 3 compatible. | ||
It passes its unit tests and has been used in the wild for | ||
awhile. There are no outstanding Python 3 specific bugs. | ||
|
||
|
||
On Windows Pygame uses the same dependencies for Python 3.x as Python | ||
2.6. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
#This Setup file is used by the setup.py script to configure the | ||
#python extensions. You will likely use the "config.py" which will | ||
#build a correct Setup file for you based on your system settings. | ||
#If not, the format is simple enough to edit by hand. First change | ||
#the needed commandline flags for each dependency, then comment out | ||
#any unavailable optional modules in the first optional section. | ||
|
||
|
||
#--StartConfig | ||
SDL = -I/usr/include/SDL -D_REENTRANT -lSDL | ||
FONT = -lSDL_ttf | ||
IMAGE = -lSDL_image | ||
MIXER = -lSDL_mixer | ||
SMPEG = -lsmpeg | ||
PNG = -lpng | ||
JPEG = -ljpeg | ||
SCRAP = -lX11 | ||
PORTMIDI = -lportmidi | ||
PORTTIME = -lporttime | ||
FREETYPE = -lfreetype | ||
AVFORMAT = -lavformat | ||
SWSCALE = -lswscale | ||
#--EndConfig | ||
|
||
DEBUG = | ||
|
||
#the following modules are optional. you will want to compile | ||
#everything you can, but you can ignore ones you don't have | ||
#dependencies for, just comment them out | ||
|
||
imageext src/imageext.c $(SDL) $(IMAGE) $(PNG) $(JPEG) $(DEBUG) | ||
font src/font.c $(SDL) $(FONT) $(DEBUG) | ||
mixer src/mixer.c $(SDL) $(MIXER) $(DEBUG) | ||
mixer_music src/music.c $(SDL) $(MIXER) $(DEBUG) | ||
_numericsurfarray src/_numericsurfarray.c $(SDL) $(DEBUG) | ||
_numericsndarray src/_numericsndarray.c $(SDL) $(MIXER) $(DEBUG) | ||
#movie src/movie.c $(SDL) $(SMPEG) $(DEBUG) | ||
#_movie src/_gsound.c src/_gmovie.c src/_gcommand.c src/gmovie.c $(SDL) $(AVFORMAT) $(SWSCALE) $(MIXER) $(DEBUG) | ||
scrap src/scrap.c $(SDL) $(SCRAP) $(DEBUG) | ||
pypm src/pypm.c $(SDL) $(PORTMIDI) $(PORTTIME) $(DEBUG) | ||
|
||
GFX = src/SDL_gfx/SDL_gfxPrimitives.c | ||
#GFX = src/SDL_gfx/SDL_gfxBlitFunc.c src/SDL_gfx/SDL_gfxPrimitives.c | ||
gfxdraw src/gfxdraw.c $(SDL) $(GFX) $(DEBUG) | ||
|
||
#optional freetype module (do not break in multiple lines | ||
#or the configuration script will choke!) | ||
_freetype src/freetype/ft_cache.c src/freetype/ft_wrap.c src/freetype/ft_render.c src/freetype/ft_render_cb.c src/freetype/ft_layout.c src/freetype/ft_unicode.c src/_freetype.c $(SDL) $(FREETYPE) $(DEBUG) | ||
|
||
#these modules are required for pygame to run. they only require | ||
#SDL as a dependency. these should not be altered | ||
|
||
base src/base.c $(SDL) $(DEBUG) | ||
cdrom src/cdrom.c $(SDL) $(DEBUG) | ||
color src/color.c $(SDL) $(DEBUG) | ||
constants src/constants.c $(SDL) $(DEBUG) | ||
display src/display.c $(SDL) $(DEBUG) | ||
event src/event.c $(SDL) $(DEBUG) | ||
fastevent src/fastevent.c src/fastevents.c $(SDL) $(DEBUG) | ||
key src/key.c $(SDL) $(DEBUG) | ||
mouse src/mouse.c $(SDL) $(DEBUG) | ||
rect src/rect.c $(SDL) $(DEBUG) | ||
rwobject src/rwobject.c $(SDL) $(DEBUG) | ||
surface src/surface.c src/alphablit.c src/surface_fill.c $(SDL) $(DEBUG) | ||
surflock src/surflock.c $(SDL) $(DEBUG) | ||
time src/time.c $(SDL) $(DEBUG) | ||
joystick src/joystick.c $(SDL) $(DEBUG) | ||
draw src/draw.c $(SDL) $(DEBUG) | ||
image src/image.c $(SDL) $(DEBUG) | ||
overlay src/overlay.c $(SDL) $(DEBUG) | ||
transform src/transform.c src/rotozoom.c src/scale2x.c src/scale_mmx.c $(SDL) $(DEBUG) -D_NO_MMX_FOR_X86_64 | ||
mask src/mask.c src/bitmask.c $(SDL) $(DEBUG) | ||
bufferproxy src/bufferproxy.c $(SDL) $(DEBUG) | ||
pixelarray src/pixelarray.c $(SDL) $(DEBUG) | ||
math src/math.c $(SDL) $(DEBUG) | ||
_view src/_view.c $(SDL) $(DEBUG) | ||
pixelcopy src/pixelcopy.c $(SDL) $(DEBUG) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#This file defines platform specific modules for mac os x | ||
sdlmain_osx src/sdlmain_osx.m $(SDL) $(DEBUG) | ||
#_camera src/_camera.c src/camera_mac.m $(SDL) $(DEBUG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#This file defines platform specific modules for linux | ||
_camera src/_camera.c src/camera_v4l2.c $(SDL) $(DEBUG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Windows specific flags for Pygame modules. | ||
SCRAP = -luser32 -lgdi32 |
Oops, something went wrong.