Skip to content

Commit 0f16bdf

Browse files
committed
macos
1 parent 14f2511 commit 0f16bdf

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/macOS.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ jobs:
4545
export "IDF_PATH=${GITHUB_WORKSPACE}/lib/esp-idf"
4646
./lib/esp-idf/install.sh all
4747
48-
- name: Setup ESP-IDF
49-
run: |
50-
export "IDF_PATH=${GITHUB_WORKSPACE}/lib/esp-idf"
51-
. ./lib/esp-idf/export.sh
52-
53-
- name: Build ESP32 port
54-
run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=rgb_display INDEV=gt911
55-
5648
# - name: Build STM32 port
5749
# run: python3 make.py stm32 submodules clean mpy_cross BOARD=STM32H7B3I_DK DISPLAY=rgb_display INDEV=gt911
5850

@@ -68,6 +60,15 @@ jobs:
6860
- name: Build macOS port
6961
run: python3 make.py macOS DISPLAY=sdl_display INDEV=sdl_pointer
7062

63+
- name: Setup ESP-IDF
64+
run: |
65+
export "IDF_PATH=${GITHUB_WORKSPACE}/lib/esp-idf"
66+
. ./lib/esp-idf/export.sh
67+
68+
- name: Build ESP32 port
69+
run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=rgb_display INDEV=gt911
70+
71+
7172
- uses: actions/upload-artifact@v4
7273
with:
7374
name: lvgl_micropy_macos-${{ steps.datetime.outputs.month }}.${{ steps.datetime.outputs.day }}.${{ steps.datetime.outputs.year }}-${{ steps.datetime.outputs.hours }}_${{ steps.datetime.outputs.minutes }}_${{ steps.datetime.outputs.seconds }}

ext_mod/lcd_bus/micropython.mk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ ifneq (,$(findstring unix, $(LV_PORT)))
2828
LDFLAGS_USERMOD += -L$(BUILD)/SDL
2929

3030
LDFLAGS_USERMOD += -lSDL2
31-
3231
else
3332
ifneq (,$(findstring macOS, $(LV_PORT)))
33+
# -F/Library/Frameworks -framework SDL2
3434
CFLAGS_USERMOD += -DMP_PORT_UNIX=1
35-
LDFLAGS_USERMOD :=$(shell sdl2-config --libs)
36-
CFLAGS_USERMOD :=$(shell sdl2-config --cflags)
35+
CFLAGS_USERMOD += -I/Library/Frameworks/SDL2.framework/Headers/SDL2
36+
CFLAGS_USERMOD += $(shell sdl2-config --cflags)
37+
LDFLAGS_USERMOD += $(shell sdl2-config --libs)
3738
endif
3839
endif

0 commit comments

Comments
 (0)