#!/bin/bash
# Copyright (C) 2021-2022 Harry Godden (hgn) - All Rights Reserved
-
+#
+# Main cross-compiling build script for Skate Rift
+# Supports Linux and Windows building from a Linux Host
+#
+# vg must be "ln -s"'d into this src folder as the only dependency
+#
# Compiler Presets
# ==============================================================================
run_game
}
-#TODO: Make this a seperate script
-# it should not be called compile, rename to 'generate' shader headers,
-# its a code writing tool, not a compiling tool
-#
-target_shaders=""
-shader(){
- target_shaders="$target_shaders $1 $2 $3"
-}
-
-compile_shaders(){
- titleit "Compiling shaders"
- source shaders.sh
- cd shaders
- ../bin/linux/tools/shader $target_shaders
- cd ..
-}
-
link_content(){
ln -sr bin/content/textures/ $1/textures
ln -sr bin/content/models/ $1/models
_folder=$_linux_folder
_ext=""
vg_compile_tools
- compile_shaders
# Main build
_link="$_linux_linkgraphics $_linux_linksteam"