Skip to content

Move modules to their own directories #3421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 94 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
032764a
Rename src_c to src
MightyJosip Mar 13, 2025
325b9ff
Refactor draw module
MightyJosip Mar 13, 2025
ceaf1da
Refactor draw module
MightyJosip Mar 13, 2025
a259a1d
Merge remote-tracking branch 'upstream/main' into refactor
MightyJosip Apr 26, 2025
2acfa4f
Refactor draw
MightyJosip Apr 26, 2025
1ec6fb1
Refactor base
MightyJosip Apr 26, 2025
46d41af
Refactor bufferproxy
MightyJosip Apr 26, 2025
60dfec1
Refactor camera
MightyJosip Apr 26, 2025
764008d
Refactor camera
MightyJosip Apr 26, 2025
1da4e77
Merge remote-tracking branch 'upstream/main' into refactor
MightyJosip Apr 28, 2025
2963c1a
Refactor surface
MightyJosip Apr 28, 2025
32ea002
Merge remote-tracking branch 'upstream/main' into refactor
MightyJosip Apr 28, 2025
81bd15b
Refactor controller
MightyJosip Apr 28, 2025
c3d4d94
Refactor color
MightyJosip Apr 28, 2025
949c0a3
Refactor geometry
MightyJosip Apr 28, 2025
99daa09
Refactor rect
MightyJosip Apr 28, 2025
b0aedd1
Refactor display
MightyJosip Apr 28, 2025
d242d5a
Refactor math
MightyJosip Apr 28, 2025
4a95c29
Fix doc formatting
MightyJosip Apr 28, 2025
551a451
Refactor system
MightyJosip Apr 28, 2025
dc9569c
Refactor transform
MightyJosip Apr 28, 2025
5179ea7
Refactor constants
MightyJosip Apr 28, 2025
dcd9e31
Meson improvements
MightyJosip Apr 28, 2025
7837eae
Refactor event
MightyJosip Apr 28, 2025
77cab14
Refactor key
MightyJosip Apr 28, 2025
35f838f
Refactor mouse
MightyJosip Apr 28, 2025
f7cacef
Refactor rwobject
MightyJosip Apr 28, 2025
7636be6
Refactor surflock
MightyJosip Apr 28, 2025
854dd6d
Refactor time
MightyJosip Apr 28, 2025
2a50353
Refactor joystick
MightyJosip Apr 28, 2025
4424b03
Refactor image
MightyJosip Apr 28, 2025
94267eb
Refactor mask
MightyJosip Apr 28, 2025
3737f26
Refactor pixelarray
MightyJosip Apr 29, 2025
94c609c
Refactor pixelcopy
MightyJosip Apr 29, 2025
f8e5fa6
Refactor newbuffer
MightyJosip Apr 29, 2025
88d6919
Refactor window
MightyJosip Apr 29, 2025
a50a72f
Refactor render
MightyJosip Apr 29, 2025
48ba210
Refactor gfxdraw
MightyJosip Apr 29, 2025
41207fe
Refactor scrap
MightyJosip Apr 29, 2025
fab4c22
Refactor font
MightyJosip Apr 29, 2025
716a54e
Refactor mixer
MightyJosip Apr 29, 2025
898a8b4
Refactor freetype
MightyJosip Apr 29, 2025
68a4871
Refactor static
MightyJosip Apr 29, 2025
a36ee75
Refactor freetype fix 1
MightyJosip Apr 29, 2025
2d42b94
Refactor freetype fix 2
MightyJosip Apr 29, 2025
3424a97
Refactor freetype fix 3
MightyJosip Apr 29, 2025
7b82a0e
Refactor headers
MightyJosip Apr 29, 2025
16ff213
Refactor _sdl2
MightyJosip Apr 29, 2025
7b9a807
Refactor __briefcase
MightyJosip Apr 29, 2025
d1c4bea
Refactor __pyinstaller
MightyJosip Apr 29, 2025
5114dcd
Refactor resources
MightyJosip Apr 29, 2025
7019b7b
Refactor fixes
MightyJosip Apr 29, 2025
43c338b
Refactor typing
MightyJosip Apr 29, 2025
b3d88b8
Refactor sprite
MightyJosip Apr 29, 2025
adc9a75
Refactor debug
MightyJosip Apr 29, 2025
055beb2
Refactor system fix
MightyJosip Apr 29, 2025
1afc8bf
Refactor version
MightyJosip Apr 29, 2025
2eecc08
Refactor colordict
MightyJosip Apr 29, 2025
154a91b
Refactor cursors
MightyJosip Apr 29, 2025
b4f48ba
Refactor freetype fix
MightyJosip Apr 29, 2025
ae9aa98
Refactor ftfont
MightyJosip Apr 29, 2025
e19da23
Refactor macosx
MightyJosip Apr 29, 2025
0b9471b
Refactor midi
MightyJosip Apr 29, 2025
3f4c249
Refactor pkgdata
MightyJosip Apr 29, 2025
bd9fce8
Remove tags
MightyJosip Apr 29, 2025
6f8bae7
Refactor sndarray
MightyJosip Apr 29, 2025
6481688
Refactor surfarray
MightyJosip Apr 29, 2025
dbcc7b2
Refactor sysfont
MightyJosip Apr 29, 2025
45923f3
Refactor ftfont fix
MightyJosip Apr 29, 2025
62bc605
Refactor locals
MightyJosip Apr 29, 2025
33dda3c
Refactor sdl2.window
MightyJosip Apr 29, 2025
0b3332c
Refactor controller
MightyJosip Apr 29, 2025
ff94ff9
Refactor touch
MightyJosip Apr 29, 2025
fb2894b
Refactor _sdl2
MightyJosip Apr 29, 2025
8de252c
Refactor video
MightyJosip Apr 29, 2025
7fcaf90
Refactor audio
MightyJosip Apr 29, 2025
a0b5156
Refactor controller old
MightyJosip Apr 29, 2025
71be580
Refactor mixer
MightyJosip Apr 29, 2025
ba40c57
Refactor sdl2
MightyJosip Apr 29, 2025
a58a45d
refactor sdl2 fix
MightyJosip Apr 29, 2025
0511e68
Refactor pypm
MightyJosip Apr 29, 2025
00183c8
Refactor tests
MightyJosip Apr 29, 2025
a03ebce
Refactor pygame
MightyJosip Apr 29, 2025
9365164
Fix formatting
MightyJosip Apr 29, 2025
4f6da87
Fix formatting
MightyJosip Apr 29, 2025
d97e19f
Fix formatting 3rd try
MightyJosip Apr 29, 2025
dcf6322
Fix docs
MightyJosip Apr 29, 2025
85ac510
Fix docs 2nd try
MightyJosip Apr 29, 2025
31d14fd
Fix linker error
MightyJosip Apr 29, 2025
81c7a28
Fix linker error 2nd try
MightyJosip Apr 29, 2025
6c8e63c
Fix linker 3rd try
MightyJosip Apr 29, 2025
b75fd5f
Fix stubs
MightyJosip Apr 29, 2025
a65617e
Fix mac
MightyJosip Apr 29, 2025
2cb0aab
Fix mac 2nd try
MightyJosip Apr 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tab_width = 4
charset = utf-8
trim_trailing_whitespace = true

# The settings for C (*.c and *.h) files are mirrored in src_c/.clang-format.
# The settings for C (*.c and *.h) files are mirrored in src/.clang-format.
# Keep them in sync.
[*.{c,h}]
max_line_length = 79
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: cppcheck Static Analysis

# Run cppcheck on src_c changes to main branch, or any PR to main.
# Run cppcheck on src changes to main branch, or any PR to main.
on:
push:
branches: main
paths:
- 'src_c/**'
- 'src/**'

pull_request:
branches: main
paths:
- 'src_c/**'
- 'src/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-cppcheck
Expand All @@ -34,8 +34,8 @@ jobs:
- name: Run Static Checker
# skip cppcheck on SDL_gfx, scrap, scale_mm* and ft_cache for now
# suppress missingReturn and syntaxError because it gives many false positives
run: cppcheck src_c --enable=performance,portability,warning \
--suppress=*:src_c/freetype/ft_cache.c --suppress=*:src_c/scrap* \
--suppress=*:src_c/scale_mmx*.c --suppress=*:src_c/SDL_gfx/* \
run: cppcheck src --enable=performance,portability,warning \
--suppress=*:src/freetype/ft_cache.c --suppress=*:src/scrap* \
--suppress=*:src/scale_mmx*.c --suppress=*:src/SDL_gfx/* \
--suppress=missingReturn --suppress=syntaxError -DWITH_THREAD -j $(nproc) \
-DPG_MAJOR_VERSION -DPG_MINOR_VERSION -DPG_PATCH_VERSION -DPG_VERSION_TAG
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ _headers/*
buildconfig/win_dll_dirs.json

# cython generated files
src_c/_sdl2/*.c
!/src_c/_sdl2/touch.c
!/src_c/_sdl2/controller.c
src/_sdl2/*.c
!/src/_sdl2/touch.c
!/src/_sdl2/controller.c
src_c/pypm.c
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ repos:
- id: clang-format
exclude: |
(?x)^(
^src_c/_sdl2/.*$
| ^src_c/doc/.*$
^src/_sdl2/.*$
| ^src/.+/.*_doc.h$
| docs/reST/_static/script.js
| docs/reST/_templates/header.h
| src_c/include/sse2neon.h
| src_c/include/pythoncapi_compat.h
| src_c/pypm.c
| src/include/sse2neon.h
| src/include/pythoncapi_compat.h
| src/pypm.c
)$
4 changes: 1 addition & 3 deletions buildconfig/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
recursive-include buildconfig *
recursive-include docs *
recursive-include src_py *
recursive-include src_c *
recursive-include src *
recursive-include examples *
recursive-include test *

recursive-exclude buildconfig/manylinux-build *
recursive-exclude buildconfig/macdependencies *
Expand Down
82 changes: 41 additions & 41 deletions buildconfig/Setup.Android.SDL2.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,54 +13,54 @@ DEBUG =
#everything you can, but you can ignore ones you don't have
#dependencies for, just comment them out

imageext src_c/imageext.c $(SDL) $(IMAGE) $(DEBUG)
font src_c/font.c $(SDL) $(FONT) $(DEBUG)
mixer src_c/mixer.c $(SDL) $(MIXER) $(DEBUG)
mixer_music src_c/music.c $(SDL) $(MIXER) $(DEBUG)
scrap src_c/scrap.c $(SDL) $(SCRAP) $(DEBUG)
# pypm src_c/pypm.c $(SDL) $(PORTMIDI) $(PORTTIME) $(DEBUG)
imageext src/imageext.c $(SDL) $(IMAGE) $(DEBUG)
font src/font.c $(SDL) $(FONT) $(DEBUG)
mixer src/mixer.c $(SDL) $(MIXER) $(DEBUG)
mixer_music src/music.c $(SDL) $(MIXER) $(DEBUG)
scrap src/scrap.c $(SDL) $(SCRAP) $(DEBUG)
# pypm src/pypm.c $(SDL) $(PORTMIDI) $(PORTTIME) $(DEBUG)

_sdl2.sdl2 src_c/_sdl2/sdl2.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.audio src_c/_sdl2/audio.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.video src_c/_sdl2/video.c src_c/pgcompat.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.mixer src_c/_sdl2/mixer.c $(SDL) $(MIXER) $(DEBUG) -Isrc_c
_sdl2.touch src_c/_sdl2/touch.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.controller_old src_c/_sdl2/controller_old.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.sdl2 src/_sdl2/sdl2.c $(SDL) $(DEBUG) -Isrc
_sdl2.audio src/_sdl2/audio.c $(SDL) $(DEBUG) -Isrc
_sdl2.video src/_sdl2/video.c src/pgcompat.c $(SDL) $(DEBUG) -Isrc
_sdl2.mixer src/_sdl2/mixer.c $(SDL) $(MIXER) $(DEBUG) -Isrc
_sdl2.touch src/_sdl2/touch.c $(SDL) $(DEBUG) -Isrc
_sdl2.controller_old src/_sdl2/controller_old.c $(SDL) $(DEBUG) -Isrc

GFX = src_c/SDL_gfx/SDL_gfxPrimitives.c
#GFX = src_c/SDL_gfx/SDL_gfxBlitFunc.c src_c/SDL_gfx/SDL_gfxPrimitives.c
gfxdraw src_c/gfxdraw.c $(SDL) $(GFX) $(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_c/freetype/ft_cache.c src_c/freetype/ft_wrap.c src_c/freetype/ft_render.c src_c/freetype/ft_render_cb.c src_c/freetype/ft_layout.c src_c/freetype/ft_unicode.c src_c/_freetype.c $(SDL) $(FREETYPE) $(DEBUG)
#_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_c/base.c $(SDL) $(DEBUG)
color src_c/color.c $(SDL) $(DEBUG)
constants src_c/constants.c $(SDL) $(DEBUG)
display src_c/display.c $(SDL) $(DEBUG)
event src_c/event.c $(SDL) $(DEBUG)
key src_c/key.c $(SDL) $(DEBUG)
mouse src_c/mouse.c $(SDL) $(DEBUG)
rect src_c/rect.c src_c/pgcompat_rect.c $(SDL) $(DEBUG)
rwobject src_c/rwobject.c $(SDL) $(DEBUG)
surface src_c/simd_blitters_sse2.c src_c/simd_blitters_avx2.c src_c/surface.c src_c/alphablit.c src_c/surface_fill.c src_c/simd_surface_fill_avx2.c src_c/simd_surface_fill_sse2.c $(SDL) $(DEBUG)
surflock src_c/surflock.c $(SDL) $(DEBUG)
time src_c/time.c $(SDL) $(DEBUG)
joystick src_c/joystick.c $(SDL) $(DEBUG)
draw src_c/draw.c $(SDL) $(DEBUG)
image src_c/image.c $(SDL) $(DEBUG)
transform src_c/simd_transform_sse2.c src_c/simd_transform_avx2.c src_c/transform.c src_c/rotozoom.c src_c/scale2x.c src_c/scale_mmx.c $(SDL) $(DEBUG) -D_NO_MMX_FOR_X86_64
mask src_c/mask.c src_c/bitmask.c $(SDL) $(DEBUG)
bufferproxy src_c/bufferproxy.c $(SDL) $(DEBUG)
pixelarray src_c/pixelarray.c $(SDL) $(DEBUG)
math src_c/math.c $(SDL) $(DEBUG)
pixelcopy src_c/pixelcopy.c $(SDL) $(DEBUG)
newbuffer src_c/newbuffer.c $(SDL) $(DEBUG)
window src_c/window.c $(SDL) $(DEBUG)
_render src_c/render.c $(SDL) $(DEBUG)
geometry src_c/geometry.c $(SDL) $(DEBUG)
base src/base.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)
key src/key.c $(SDL) $(DEBUG)
mouse src/mouse.c $(SDL) $(DEBUG)
rect src/rect.c src/pgcompat_rect.c $(SDL) $(DEBUG)
rwobject src/rwobject.c $(SDL) $(DEBUG)
surface src/simd_blitters_sse2.c src/simd_blitters_avx2.c src/surface.c src/alphablit.c src/surface_fill.c src/simd_surface_fill_avx2.c src/simd_surface_fill_sse2.c $(SDL) $(DEBUG)
surflock src/surflock.c $(SDL) $(DEBUG)
time src/time.c $(SDL) $(DEBUG)
joystick src/joystick.c $(SDL) $(DEBUG)
draw src/draw/draw.c $(SDL) $(DEBUG)
image src/image.c $(SDL) $(DEBUG)
transform src/simd_transform_sse2.c src/simd_transform_avx2.c 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)
pixelcopy src/pixelcopy.c $(SDL) $(DEBUG)
newbuffer src/newbuffer.c $(SDL) $(DEBUG)
window src/window.c $(SDL) $(DEBUG)
_render src/render.c $(SDL) $(DEBUG)
geometry src/geometry.c $(SDL) $(DEBUG)
102 changes: 51 additions & 51 deletions buildconfig/Setup.Emscripten.SDL2.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,64 +15,64 @@ DEBUG =

# these can build alone and object files merged with ar

_sdl2.sdl2 src_c/_sdl2/sdl2.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.sdl2 src/_sdl2/sdl2.c $(SDL) $(DEBUG) -Isrc

_sdl2.audio src_c/_sdl2/audio.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.audio src/_sdl2/audio.c $(SDL) $(DEBUG) -Isrc

pygame_sdl2_video src_c/_sdl2/video.c src_c/pgcompat.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.video = src_c/void.c
pygame_sdl2_video src/_sdl2/video.c src/pgcompat.c $(SDL) $(DEBUG) -Isrc
_sdl2.video = src/static/void.c


_sdl2.mixer src_c/_sdl2/mixer.c $(SDL) $(MIXER) $(DEBUG) -Isrc_c
_sdl2.mixer src/_sdl2/mixer.c $(SDL) $(MIXER) $(DEBUG) -Isrc

constants src_c/constants.c $(SDL) $(DEBUG)
mask src_c/bitmask.c
math src_c/math.c $(SDL) $(DEBUG)
constants src/constants.c $(SDL) $(DEBUG)
mask src/bitmask.c
math src/math.c $(SDL) $(DEBUG)

#GFX = src_c/SDL_gfx/SDL_gfxBlitFunc.c src_c/SDL_gfx/SDL_gfxPrimitives.c
GFX = src_c/SDL_gfx/SDL_gfxPrimitives.c
#GFX = src/SDL_gfx/SDL_gfxBlitFunc.c src/SDL_gfx/SDL_gfxPrimitives.c
GFX = src/SDL_gfx/SDL_gfxPrimitives.c


static src_c/static.c $(SDL) $(FREETYPE) $(FONT) $(MIXER) $(IMAGE) $(PNG) $(JPEG) $(DEBUG)
static src/static/static.c $(SDL) $(FREETYPE) $(FONT) $(MIXER) $(IMAGE) $(PNG) $(JPEG) $(DEBUG)

# these should not be altered they already are in static.c merging file above
time src_c/void.c
_freetype src_c/void.c
imageext src_c/void.c
image src_c/void.c
base src_c/void.c
bufferproxy src_c/void.c
color src_c/void.c
controller src_c/void.c
controller_old src_c/void.c
display src_c/void.c
draw src_c/void.c
event src_c/void.c
font src_c/void.c
gfxdraw src_c/void.c
joystick src_c/void.c
key src_c/void.c
newbuffer src_c/void.c
mixer_music src_c/void.c
mixer src_c/void.c
mouse src_c/void.c
pixelcopy src_c/void.c
pixelarray src_c/void.c
surface src_c/void.c
surflock src_c/void.c
rect src_c/void.c
rwobject src_c/void.c
system src_c/void.c
window src_c/void.c
_render src_c/void.c
geometry src_c/void.c

#_sdl2.controller src_c/_sdl2/controller.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.controller src_c/void.c
_sdl2.controller_old src_c/void.c

#_sdl2.touch src_c/_sdl2/touch.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.touch src_c/void.c

#transform src_c/simd_transform_sse2.c src_c/simd_transform_avx2.c src_c/transform.c src_c/rotozoom.c src_c/scale2x.c src_c/scale_mmx.c src_c/simd_surface_fill_avx2.c src_c/simd_surface_fill_sse2.c $(SDL) $(DEBUG) -D_NO_MMX_FOR_X86_64
transform src_c/void.c
time src/static/void.c
_freetype src/static/void.c
imageext src/static/void.c
image src/static/void.c
base src/static/void.c
bufferproxy src/static/void.c
color src/static/void.c
controller src/static/void.c
controller_old src/static/void.c
display src/static/void.c
draw src/static/void.c
event src/static/void.c
font src/static/void.c
gfxdraw src/static/void.c
joystick src/static/void.c
key src/static/void.c
newbuffer src/static/void.c
mixer_music src/static/void.c
mixer src/static/void.c
mouse src/static/void.c
pixelcopy src/static/void.c
pixelarray src/static/void.c
surface src/static/void.c
surflock src/static/void.c
rect src/static/void.c
rwobject src/static/void.c
system src/static/void.c
window src/static/void.c
_render src/static/void.c
geometry src/static/void.c

#_sdl2.controller src/_sdl2/controller.c $(SDL) $(DEBUG) -Isrc
_sdl2.controller src/static/void.c
_sdl2.controller_old src/static/void.c

#_sdl2.touch src/_sdl2/touch.c $(SDL) $(DEBUG) -Isrc
_sdl2.touch src/static/void.c

#transform src/simd_transform_sse2.c src/simd_transform_avx2.c src/transform.c src/rotozoom.c src/scale2x.c src/scale_mmx.c src/simd_surface_fill_avx2.c src/simd_surface_fill_sse2.c $(SDL) $(DEBUG) -D_NO_MMX_FOR_X86_64
transform src/static/void.c
86 changes: 43 additions & 43 deletions buildconfig/Setup.SDL2.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,56 +23,56 @@ DEBUG =
#everything you can, but you can ignore ones you don't have
#dependencies for, just comment them out

imageext src_c/imageext.c $(SDL) $(IMAGE) $(DEBUG)
font src_c/font.c $(SDL) $(FONT) $(DEBUG)
mixer src_c/mixer.c $(SDL) $(MIXER) $(DEBUG)
mixer_music src_c/music.c $(SDL) $(MIXER) $(DEBUG)
scrap src_c/scrap.c $(SDL) $(SCRAP) $(DEBUG)
pypm src_c/pypm.c $(SDL) $(PORTMIDI) $(PORTTIME) $(DEBUG)
imageext src/imageext.c $(SDL) $(IMAGE) $(DEBUG)
font src/font.c $(SDL) $(FONT) $(DEBUG)
mixer src/mixer.c $(SDL) $(MIXER) $(DEBUG)
mixer_music src/music.c $(SDL) $(MIXER) $(DEBUG)
scrap src/scrap.c $(SDL) $(SCRAP) $(DEBUG)
pypm src/pypm.c $(SDL) $(PORTMIDI) $(PORTTIME) $(DEBUG)

_sdl2.sdl2 src_c/_sdl2/sdl2.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.audio src_c/_sdl2/audio.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.video src_c/_sdl2/video.c src_c/pgcompat.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.mixer src_c/_sdl2/mixer.c $(SDL) $(MIXER) $(DEBUG) -Isrc_c
_sdl2.touch src_c/_sdl2/touch.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.controller src_c/_sdl2/controller.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.controller_old src_c/_sdl2/controller_old.c $(SDL) $(DEBUG) -Isrc_c
_sdl2.sdl2 src/_sdl2/sdl2.c $(SDL) $(DEBUG) -Isrc
_sdl2.audio src/_sdl2/audio.c $(SDL) $(DEBUG) -Isrc
_sdl2.video src/_sdl2/video.c src/pgcompat.c $(SDL) $(DEBUG) -Isrc
_sdl2.mixer src/_sdl2/mixer.c $(SDL) $(MIXER) $(DEBUG) -Isrc
_sdl2.touch src/_sdl2/touch.c $(SDL) $(DEBUG) -Isrc
_sdl2.controller src/_sdl2/controller.c $(SDL) $(DEBUG) -Isrc
_sdl2.controller_old src/_sdl2/controller_old.c $(SDL) $(DEBUG) -Isrc

GFX = src_c/SDL_gfx/SDL_gfxPrimitives.c
#GFX = src_c/SDL_gfx/SDL_gfxBlitFunc.c src_c/SDL_gfx/SDL_gfxPrimitives.c
gfxdraw src_c/gfxdraw.c $(SDL) $(GFX) $(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_c/freetype/ft_cache.c src_c/freetype/ft_wrap.c src_c/freetype/ft_render.c src_c/freetype/ft_render_cb.c src_c/freetype/ft_layout.c src_c/freetype/ft_unicode.c src_c/_freetype.c $(SDL) $(FREETYPE) $(DEBUG)
_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_c/base.c $(SDL) $(DEBUG)
color src_c/color.c $(SDL) $(DEBUG)
constants src_c/constants.c $(SDL) $(DEBUG)
display src_c/display.c $(SDL) $(DEBUG)
event src_c/event.c $(SDL) $(DEBUG)
key src_c/key.c $(SDL) $(DEBUG)
mouse src_c/mouse.c $(SDL) $(DEBUG)
rect src_c/rect.c src_c/pgcompat_rect.c $(SDL) $(DEBUG)
rwobject src_c/rwobject.c $(SDL) $(DEBUG)
surface src_c/simd_blitters_sse2.c src_c/simd_blitters_avx2.c src_c/surface.c src_c/alphablit.c src_c/surface_fill.c src_c/simd_surface_fill_avx2.c src_c/simd_surface_fill_sse2.c $(SDL) $(DEBUG)
surflock src_c/surflock.c $(SDL) $(DEBUG)
time src_c/time.c $(SDL) $(DEBUG)
joystick src_c/joystick.c $(SDL) $(DEBUG)
draw src_c/draw.c $(SDL) $(DEBUG)
image src_c/image.c $(SDL) $(DEBUG)
transform src_c/simd_transform_sse2.c src_c/simd_transform_avx2.c src_c/transform.c src_c/rotozoom.c src_c/scale2x.c src_c/scale_mmx.c $(SDL) $(DEBUG)
mask src_c/mask.c src_c/bitmask.c $(SDL) $(DEBUG)
bufferproxy src_c/bufferproxy.c $(SDL) $(DEBUG)
pixelarray src_c/pixelarray.c $(SDL) $(DEBUG)
math src_c/math.c $(SDL) $(DEBUG)
pixelcopy src_c/pixelcopy.c $(SDL) $(DEBUG)
newbuffer src_c/newbuffer.c $(SDL) $(DEBUG)
system src_c/system.c $(SDL) $(DEBUG)
geometry src_c/geometry.c $(SDL) $(DEBUG)
window src_c/window.c $(SDL) $(DEBUG)
_render src_c/render.c $(SDL) $(DEBUG)
base src/base.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)
key src/key.c $(SDL) $(DEBUG)
mouse src/mouse.c $(SDL) $(DEBUG)
rect src/rect.c src/pgcompat_rect.c $(SDL) $(DEBUG)
rwobject src/rwobject.c $(SDL) $(DEBUG)
surface src/simd_blitters_sse2.c src/simd_blitters_avx2.c src/surface.c src/alphablit.c src/surface_fill.c src/simd_surface_fill_avx2.c src/simd_surface_fill_sse2.c $(SDL) $(DEBUG)
surflock src/surflock.c $(SDL) $(DEBUG)
time src/time.c $(SDL) $(DEBUG)
joystick src/joystick.c $(SDL) $(DEBUG)
draw src/draw/draw.c $(SDL) $(DEBUG)
image src/image.c $(SDL) $(DEBUG)
transform src/simd_transform_sse2.c src/simd_transform_avx2.c src/transform.c src/rotozoom.c src/scale2x.c src/scale_mmx.c $(SDL) $(DEBUG)
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)
pixelcopy src/pixelcopy.c $(SDL) $(DEBUG)
newbuffer src/newbuffer.c $(SDL) $(DEBUG)
system src/system.c $(SDL) $(DEBUG)
geometry src/geometry.c $(SDL) $(DEBUG)
window src/window.c $(SDL) $(DEBUG)
_render src/render.c $(SDL) $(DEBUG)
4 changes: 2 additions & 2 deletions buildconfig/Setup_Darwin.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#This file defines platform specific modules for mac os x
SCRAP =
scrap src_c/scrap.c $(SDL) $(SCRAP) $(DEBUG)
_camera src_c/_camera.c $(SDL) $(DEBUG)
scrap src/scrap.c $(SDL) $(SCRAP) $(DEBUG)
_camera src/_camera.c $(SDL) $(DEBUG)
Loading
Loading