Skip to content

Commit e8dc5c6

Browse files
committed
macos port changes
1 parent c155c5f commit e8dc5c6

File tree

3 files changed

+3
-34
lines changed

3 files changed

+3
-34
lines changed

.github/workflows/macOS.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,10 @@ jobs:
2121
- name: Install Dependencies
2222
run: |
2323
brew install --force ninja
24+
brew install --force sdl2
2425
git submodule update --init -- lib/pycparser
2526
git submodule update --init --jobs 4 -- lib/micropython
2627
git submodule update --init --jobs 4 -- lib/lvgl
27-
git submodule update --init --jobs 4 -- lib/SDL
28-
cd lib/SDL
29-
git checkout release-2.30.2
30-
cd ../..
3128
3229
- name: Cached Deps
3330
id: cache-deps
@@ -69,10 +66,6 @@ jobs:
6966
format: "YYYY_MM_DD HH_mm_ss_SSS"
7067

7168
- name: Build macOS port
72-
env:
73-
CC: gcc-14
74-
CXX: g++-14
75-
7669
run: python3 make.py macOS DISPLAY=sdl_display INDEV=sdl_pointer
7770

7871
- uses: actions/upload-artifact@v4

builder/macOS.py

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,34 +43,14 @@ def force_clean(clean_mpy_cross):
4343

4444

4545
def build_sdl(addl_commands):
46-
dst = f'lib/micropython/ports/unix/build-{unix.variant}/SDL'
47-
if not os.path.exists(dst):
48-
os.makedirs(dst)
49-
elif os.path.exists(os.path.join(dst, 'libSDL2-2.0.0.dylib')):
50-
return
51-
52-
cwd = os.getcwd()
53-
os.chdir(dst)
54-
cmd_ = [
55-
[
56-
f'cmake -DSDL_STATIC=ON -DSDL_SHARED=ON '
57-
f'-DCMAKE_BUILD_TYPE=Release {addl_commands} {unix.SCRIPT_PATH}/lib/SDL'
58-
],
59-
[f'cmake --build . --config Release --parallel {os.cpu_count()}']
60-
]
61-
62-
res, _ = unix.spawn(cmd_, cmpl=True)
63-
if res != 0:
64-
sys.exit(res)
65-
66-
os.chdir(cwd)
46+
pass
6747

6848

6949
unix.build_sdl = build_sdl
7050

7151

7252
def submodules():
73-
_submodules()
53+
pass
7454

7555

7656
def compile(*args): # NOQA

ext_mod/lcd_bus/micropython.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ ifneq (,$(findstring unix, $(LV_PORT)))
3232
else
3333
ifneq (,$(findstring macOS, $(LV_PORT)))
3434
CFLAGS_USERMOD += -DMP_PORT_UNIX=1
35-
CFLAGS_USERMOD += -I$(BUILD)/SDL/include/SDL2
36-
CFLAGS_USERMOD += -I$(BUILD)/SDL/include-config-release/SDL2
37-
LDFLAGS_USERMOD += -L$(BUILD)/SDL
38-
3935
LDFLAGS_USERMOD += -lSDL2-2.0
4036
endif
4137
endif

0 commit comments

Comments
 (0)