Skip to content

Commit

Permalink
Enable rwobject SDL3 in meson
Browse files Browse the repository at this point in the history
  • Loading branch information
Starbuck5 committed Oct 6, 2024
1 parent 6a5202c commit 4a3b6df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ sdl_ttf = '@0@_ttf'.format(sdl)
sdl_image = '@0@_image'.format(sdl)

if sdl_api == 3
add_global_arguments('-DPG_SDL3=1', language: 'c')
add_global_arguments('-DSDL_ENABLE_OLD_NAMES=1', language: 'c')
add_global_arguments('-DPG_SDL3=1', '-DSDL_ENABLE_OLD_NAMES=1', language: 'c')
endif

pg_inc_dirs = []
Expand Down
3 changes: 0 additions & 3 deletions src_c/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ rect = py.extension_module(
subdir: pg,
)

# TODO: support SDL3
if sdl_api != 3
rwobject = py.extension_module(
'rwobject',
'rwobject.c',
Expand All @@ -103,7 +101,6 @@ rwobject = py.extension_module(
install: true,
subdir: pg,
)
endif

# TODO: support SDL3
if sdl_api != 3
Expand Down

0 comments on commit 4a3b6df

Please sign in to comment.