Skip to content

Commit

Permalink
working on macos port
Browse files Browse the repository at this point in the history
  • Loading branch information
kdschlosser committed May 8, 2024
1 parent 60d8e59 commit 224ec0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion builder/macOS.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def build_sdl():

cmd_ = [
[f'cd {dst}'],
[f'cmake -DSDL_STATIC=ON -DSDL_SHARED=OFF -DCMAKE_BUILD_TYPE=Release {SCRIPT_PATH}/lib/SDL'],
[f'cmake -DSDL_STATIC=OFF -DSDL_SHARED=ON -DCMAKE_BUILD_TYPE=Release {SCRIPT_PATH}/lib/SDL'],
[f'cmake --build . --config Release --parallel {os.cpu_count()}']
]

Expand Down
9 changes: 3 additions & 6 deletions ext_mod/lcd_bus/micropython.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ ifneq (,$(findstring unix, $(LV_PORT)))
CFLAGS_USERMOD += -I$(BUILD)/SDL/include/SDL2
CFLAGS_USERMOD += -I$(BUILD)/SDL/include-config-release/SDL2

ifeq ($(UNAME_S),Darwin)
LDFLAGS_USERMOD += $(BUILD)/SDL/libSDL2.a
else
LDFLAGS_USERMOD += -L$(BUILD)/SDL
LDFLAGS_USERMOD += -lSDL2
endif
LDFLAGS_USERMOD += -L$(BUILD)/SDL
LDFLAGS_USERMOD += -lSDL2

endif

0 comments on commit 224ec0a

Please sign in to comment.