Skip to content

Commit b537333

Browse files
authored
Fix build pc version on macOS (#174)
* Fix build pc version on macOS and Windows
1 parent b7bcf3a commit b537333

File tree

4 files changed

+541
-2
lines changed

4 files changed

+541
-2
lines changed

Makefile.pc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test : pc_main/main.cpp pc_main/pc_launch.c pc_main/pc_power.c pc_main/pc_netsta
1414
common/menu-entry.c common/menu-list.c common/message-box.c common/text.c \
1515
common/ui.c common/assets.c common/math.c common/theme.c \
1616
common/netloader.c
17-
gcc -Wall -O2 -g -DVERSION=\"v$(APP_VERSION)\" $(EXTRA_CFLAGS) `pkg-config freetype2 --cflags` $^ -lsfml-graphics -lsfml-window -lsfml-system -lstdc++ -lpthread `pkg-config freetype2 --libs` -lm -lphysfs -lz -lconfig -lturbojpeg -lpng $(EXTRA_LDFLAGS) -I. -iquote $(DEVKITPRO)/libnx/include -Ibuild_pc -g -o $@
17+
gcc -Wall -O2 -g -DVERSION=\"v$(APP_VERSION)\" $(EXTRA_CFLAGS) `pkg-config --cflags` $^ -lsfml-graphics -lsfml-window -lsfml-system -lstdc++ -lpthread `pkg-config --libs` -lm -lphysfs -lz -lconfig -lturbojpeg -lpng $(EXTRA_LDFLAGS) -I. -iquote $(DEVKITPRO)/libnx/include -Ibuild_pc -g -o $@
1818

1919
clean:
2020
rm -rf build_pc/ test test.*

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The following libraries are required to build for PC:
2020
- `libconfig`
2121
- `libjpeg-turbo`
2222
- `libphysfs`
23+
- `sfml`
2324

2425
Building for Switch/PC requires `zip`.
2526

@@ -29,3 +30,4 @@ Since C11 threads are used, building for the PC may fail if C11 threads are not
2930

3031
* This uses code based on 3DS [new-hbmenu](https://github.com/fincs/new-hbmenu).
3132
* `libjpeg-turbo` is used for handling JPEG icons. This library doesn't support lossless JPEG (likewise for official sw which uses `libjpeg-turbo`).
33+
* `c11threads` is used for implement C11 Threads on Windows and macOS.

0 commit comments

Comments
 (0)