-
-
Notifications
You must be signed in to change notification settings - Fork 265
Expand file tree
/
Copy pathgenerate_project_files.sh
More file actions
37 lines (29 loc) · 769 Bytes
/
generate_project_files.sh
File metadata and controls
37 lines (29 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"
premake="build_scripts/premake5"
lua="build_scripts/premake.lua"
run_choice() {
case "$1" in
1) "$premake" --file="$lua" vs2026 vulkan ;;
2) "$premake" --file="$lua" vs2026 d3d12 ;;
3) "$premake" --file="$lua" gmake2 vulkan ;;
0) exit 0 ;;
*) echo "invalid choice: $1"; exit 1 ;;
esac
}
if [ -n "$1" ]; then
run_choice "$1"
exit 0
fi
cat <<'EOF'
=============================================
spartan engine project generator
=============================================
[1] visual studio 2026 - vulkan
[2] visual studio 2026 - d3d12 (wip)
[3] gmake2 - vulkan (linux)
[0] exit
EOF
read -rp "enter your choice: " choice
run_choice "$choice"