Added release demo build scripts.

This commit is contained in:
Relintai 2024-01-21 16:09:14 +01:00
parent 8cb47aa0d5
commit 5632a084e8
12 changed files with 121 additions and 0 deletions

View File

@ -0,0 +1,6 @@
g++ -Wall -g -c sfw.cpp -o sfw.o
g++ -Wall -g -c game_scene.cpp -o game_scene.o
g++ -Wall -g -c main.cpp -o main.o
g++ -Wall -lX11 -static-libgcc -static-libstdc++ -g sfw.o game_scene.o main.o -o game

View File

@ -0,0 +1,15 @@
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
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

View File

@ -0,0 +1,15 @@
@echo off
if not defined DevEnvDir (
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
)
rem debug: /Zi (== -g)
cl /EHsc /Zi /c sfw.cpp /Fo:sfw.obj
cl /EHsc /Zi /c game_scene.cpp /Fo:game_scene.obj
cl /EHsc /Zi /c main.cpp /Fo:main.obj
cl /Zi /EHsc /Fegame-vc.exe ^
sfw.obj game_scene.obj main.obj ^
/SUBSYSTEM:CONSOLE

View File

@ -0,0 +1,10 @@
g++ -Wall -g -c sfw.cpp -o sfw.o
g++ -Wall -g -c game_scene.cpp -o game_scene.o
g++ -Wall -g -c main.cpp -o main.o
# You might need to add -lpthread and/or -latomic depending on your compiler version
g++ -Wall -g sfw.o game_scene.o main.o \
-lgdi32 -lShlwapi -lws2_32 \
-o game

View File

@ -0,0 +1,5 @@
g++ -Wall -g -c sfw.cpp -o sfw.o
g++ -Wall -g -c main.cpp -o main.o
g++ -Wall -lX11 -static-libgcc -static-libstdc++ -g sfw.o main.o -o game

View File

@ -0,0 +1,14 @@
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
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 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 main.o -o game

View File

@ -0,0 +1,14 @@
@echo off
if not defined DevEnvDir (
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
)
rem debug: /Zi (== -g)
cl /EHsc /Zi /c sfw.cpp /Fo:sfw.obj
cl /EHsc /Zi /c main.cpp /Fo:main.obj
cl /Zi /EHsc /Fegame-vc.exe ^
sfw.obj main.obj ^
/SUBSYSTEM:CONSOLE

View File

@ -0,0 +1,9 @@
g++ -Wall -g -c sfw.cpp -o sfw.o
g++ -Wall -g -c main.cpp -o main.o
# You might need to add -lpthread and/or -latomic depending on your compiler version
g++ -Wall -g sfw.o main.o \
-lgdi32 -lShlwapi -lws2_32 \
-o game

View File

@ -0,0 +1,5 @@
g++ -Wall -g -c sfwl.cpp -o sfwl.o
g++ -Wall -g -c main.cpp -o main.o
g++ -Wall -static-libgcc -static-libstdc++ -g sfwl.o main.o -o game

View File

@ -0,0 +1,7 @@
clang++ -std=c++14 -g -c sfwl.cpp -o sfwl.o
clang++ -std=c++14 -g -c main.cpp -o main.o
# You might need to add -lpthread and/or -latomic depending on your compiler version
clang++ -std=c++14 -g sfwl.o main.o -o game

View File

@ -0,0 +1,14 @@
@echo off
if not defined DevEnvDir (
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
)
rem debug: /Zi (== -g)
cl /EHsc /Zi /c sfwl.cpp /Fo:sfwl.obj
cl /EHsc /Zi /c main.cpp /Fo:main.obj
cl /Zi /EHsc /Fegame-vc.exe ^
sfwl.obj main.obj ^
/SUBSYSTEM:CONSOLE

View File

@ -0,0 +1,7 @@
g++ -Wall -g -c sfwl.cpp -o sfwl.o
g++ -Wall -g -c main.cpp -o main.o
# You might need to add -lpthread and/or -latomic depending on your compiler version
g++ -Wall -g sfwl.o main.o -o game