mirror of
https://github.com/Relintai/sfw.git
synced 2024-11-08 07:52:09 +01:00
Added release demo build scripts.
This commit is contained in:
parent
8cb47aa0d5
commit
5632a084e8
6
demos/build_scripts/full/compile_linux.sh
Executable file
6
demos/build_scripts/full/compile_linux.sh
Executable 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
|
15
demos/build_scripts/full/compile_osx.sh
Executable file
15
demos/build_scripts/full/compile_osx.sh
Executable 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
|
15
demos/build_scripts/full/compile_vs.bat
Normal file
15
demos/build_scripts/full/compile_vs.bat
Normal 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
|
10
demos/build_scripts/full/compile_windows.sh
Executable file
10
demos/build_scripts/full/compile_windows.sh
Executable 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
|
5
demos/build_scripts/full_minimal/compile_linux.sh
Executable file
5
demos/build_scripts/full_minimal/compile_linux.sh
Executable 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
|
14
demos/build_scripts/full_minimal/compile_osx.sh
Executable file
14
demos/build_scripts/full_minimal/compile_osx.sh
Executable 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
|
14
demos/build_scripts/full_minimal/compile_vs.bat
Normal file
14
demos/build_scripts/full_minimal/compile_vs.bat
Normal 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
|
9
demos/build_scripts/full_minimal/compile_windows.sh
Executable file
9
demos/build_scripts/full_minimal/compile_windows.sh
Executable 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
|
5
demos/build_scripts/sfwl/compile_linux.sh
Executable file
5
demos/build_scripts/sfwl/compile_linux.sh
Executable 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
|
7
demos/build_scripts/sfwl/compile_osx.sh
Executable file
7
demos/build_scripts/sfwl/compile_osx.sh
Executable 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
|
14
demos/build_scripts/sfwl/compile_vs.bat
Normal file
14
demos/build_scripts/sfwl/compile_vs.bat
Normal 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
|
7
demos/build_scripts/sfwl/compile_windows.sh
Executable file
7
demos/build_scripts/sfwl/compile_windows.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user