Initial structure
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
@ECHO on
|
||||
|
||||
SET DeployLocation=bin\
|
||||
|
||||
ECHO Deploying resources to %DeployLocation%
|
||||
:: Asset folders
|
||||
MKLINK "%DeployLocation%\Models\" "assets\Models" /J
|
||||
MKLINK "%DeployLocation%\Textures\" "assets\Textures\" /J
|
||||
MKLINK "%DeployLocation%\Sounds\" "assets\Sounds\" /J
|
||||
:: Shaders
|
||||
MKLINK "%DeployLocation%\Shaders\" "src\dd\Core\Shaders\" /J
|
||||
:: Platform specific binaries
|
||||
IF "%~1"=="" GOTO :EOF
|
||||
ECHO Deploying %1 binaries to %DeployLocation%
|
||||
COPY "deps\bin\%1\x64\*.dll" "%DeployLocation%"
|
||||
:: Licenses
|
||||
::COPY "libs\assimp-3.1.1\LICENSE" "%ConfigPath%\Assimp License.txt"
|
||||
::COPY "libs\glew-1.11.0\LICENSE.txt" "%ConfigPath%\GLEW License.txt"
|
||||
::COPY "libs\glm-0.9.5.4\copying.txt" "%ConfigPath%\GLM License.txt"
|
||||
::COPY "libs\assimp-3.1.1\LICENSE" "%ConfigPath%\Assimp License.txt"
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
#set -x
|
||||
|
||||
DeployLocation="bin/"
|
||||
|
||||
echo "Deploying resources to ${DeployLocation}"
|
||||
# Asset folders
|
||||
ln -srf assets/Models ${DeployLocation}
|
||||
ln -srf assets/Textures ${DeployLocation}
|
||||
ln -srf assets/Sounds ${DeployLocation}
|
||||
# Shaders
|
||||
ln -srf src/dd/Core/Shaders ${DeployLocation}
|
||||
# Platform specific binaries
|
||||
if [[ $# -eq 1 ]]; then
|
||||
echo "Deploying {$1} binaries to ${DeployLocation}"
|
||||
ln -srf deps/bin/$1/x64/*.dll ${DeployLocation}
|
||||
fi
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
for i in $(find $1 -name '*.h' -or -name '*.cpp' -or -name '*.glsl')
|
||||
do
|
||||
if ! grep -q 'Copyright' "$i"
|
||||
then
|
||||
cat COPYING.NOTICE "$i" >"$i.new" && mv "$i.new" "$i"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user