Skip to content

Commit

Permalink
Manage SDL1.2/SDL2.0 choice to project recreation by config parameters:
Browse files Browse the repository at this point in the history
* sdl_config/sdl2_config with source.list
* graph_config with generate.vbs
  • Loading branch information
drnovice authored and miniupnp committed Nov 3, 2017
1 parent 0570cde commit 8b3a912
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/generate.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Sub safety_check(sourcelist_file)

' Define regexp
Set regexp = New RegExp
regexp.Pattern = "#|audio/dsp_sdl.c"
regexp.Pattern = "#|audio/dsp_sdl.c|os/thread_sdl.c|video/video_sdl"
regexp.Global = True

' We use a dictionary to check duplicates
Expand Down
20 changes: 18 additions & 2 deletions source.list
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,15 @@ opendune.c
os/endian.c
#if WIN32
os/error_win32.c
os/thread_win32.c
#if SDL
os/thread_sdl.c
#else
#if SDL2
os/thread_sdl.c
#else
os/thread_win32.c
#endif
#endif
os/readdir_win32.c
#else
#if OSX
Expand Down Expand Up @@ -148,7 +156,15 @@ timer.c
tools.c
unit.c
#if WIN32
video/video_win32.c
#if SDL
video/video_sdl.c
#else
#if SDL2
video/video_sdl2.c
#else
video/video_win32.c
#endif
#endif
#else
#if SDL2
video/video_sdl2.c
Expand Down

0 comments on commit 8b3a912

Please sign in to comment.