Skip to content

Commit b3199a9

Browse files
authored
Merge pull request #5 from davidakerr/mac-config-update
MacOS SDL2 config update
2 parents a71b618 + e7c05cb commit b3199a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

platformio.ini

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ build_flags =
2626
; Add recursive dirs for hal headers search
2727
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/sdl2')]))"
2828
; -arch arm64 ; MACOS with apple silicon (eg M1)
29-
; -L /opt/homebrew/Cellar/sdl2/2.0.22/lib/ ; MACOS
3029
-L C:/msys64/mingw64/lib/ ; Windows
3130
-lSDL2
3231
; SDL drivers options
@@ -41,7 +40,9 @@ build_flags =
4140
-D SDL_ZOOM=1
4241
-D SDL_INCLUDE_PATH="\"C:/msys64/mingw64/include/SDL2/SDL.h\"" ; Windows
4342
; -D SDL_INCLUDE_PATH="\"SDL2/SDL.h"\" ;MACOS
44-
; -I /opt/homebrew/Cellar/sdl2/2.0.22/include/ ;MACOS
43+
; !find /opt/homebrew/Cellar/sdl2 -name "include" | sed "s/^/-I /" ;MACOS
44+
; !find /opt/homebrew/Cellar/sdl2 -name "libSDL2.a" | xargs dirname | sed "s/^/-L /" ;MACOS
45+
4546

4647
lib_deps =
4748
${env.lib_deps}

0 commit comments

Comments
 (0)