2024-01-19 00:04:37 +01:00
|
|
|
rm sfw.h
|
|
|
|
rm sfw.cpp
|
|
|
|
rm sfw_3rd.m
|
|
|
|
|
|
|
|
cp ../out/full/sfw.h sfw.h
|
|
|
|
cp ../out/full/sfw.cpp sfw.cpp
|
|
|
|
cp ../out/full/sfw_3rd.m sfw_3rd.m
|
2024-01-18 22:56:42 +01:00
|
|
|
|
|
|
|
export SDKROOT=$(xcrun --show-sdk-path)
|
|
|
|
|
|
|
|
export args="-std=c++14 -w -framework cocoa -framework iokit -framework CoreFoundation -framework CoreAudio -framework AudioToolbox "
|
|
|
|
|
|
|
|
clang++ $args -g -c sfw.cpp -o sfw.o
|
2024-01-19 00:04:37 +01:00
|
|
|
|
2024-01-18 22:56:42 +01:00
|
|
|
clang++ -w -framework cocoa -framework iokit -framework CoreFoundation -framework CoreAudio -framework AudioToolbox -g -c sfw_3rd.m -o sfw_3rd.o
|
|
|
|
|
|
|
|
clang++ $args -g -c game_scene.cpp -o game_scene.o
|
|
|
|
clang++ $args -g -c main.cpp -o main.o
|
|
|
|
|
|
|
|
# You might need to add -lpthread and/or -latomic depending on your compiler version
|
|
|
|
|
|
|
|
clang++ $args -g sfw.o sfw_3rd.o game_scene.o main.o -o game
|