Subversion Repositories Games.Carmageddon

Rev

Rev 6 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 7
Line 17... Line 17...
17
rm -rf "${APP_NAME}.app"
17
rm -rf "${APP_NAME}.app"
18
 
18
 
19
# compiler and linker flags to use
19
# compiler and linker flags to use
20
CPPFLAGS="-DDETHRACE_FIX_BUGS=1 -Isrc/harness/include -Isrc/harness -Isrc/smackw32/include -Isrc/BRSRC13/include -Isrc/BRSRC13 -Isrc/S3/include -Isrc/S3 -Isrc/DETHRACE/common -Isrc/DETHRACE/pd -Isrc/DETHRACE -Ilib/glad/include -Ilib/libsmacker -Ilib/miniaudio/include -Ilib/miniaudio/include/miniaudio -Ilib/SDL2 -Ilib"
20
CPPFLAGS="-DDETHRACE_FIX_BUGS=1 -Isrc/harness/include -Isrc/harness -Isrc/smackw32/include -Isrc/BRSRC13/include -Isrc/BRSRC13 -Isrc/S3/include -Isrc/S3 -Isrc/DETHRACE/common -Isrc/DETHRACE/pd -Isrc/DETHRACE -Ilib/glad/include -Ilib/libsmacker -Ilib/miniaudio/include -Ilib/miniaudio/include/miniaudio -Ilib/SDL2 -Ilib"
21
 
21
 
22
# read the source files list from the Visual Studio project file
22
# read the source files list from the Visual Studio project file if it exists, else list all the .c files from "lib" and "src"
-
 
23
if [ -f "${APP_NAME}.vcxproj" ]; then
23
SRCLIST="$(grep "<ClCompile " Carmageddon.vcxproj|awk -F\" '{print $2}'|tr '\\' '/')"
24
	SRCLIST="$(grep "<ClCompile " ${APP_NAME}.vcxproj|awk -F\" '{print $2}'|tr '\\' '/')"
-
 
25
else
-
 
26
	SRCLIST="$(find lib -name '*.c') $(find src -name '*.c')"
-
 
27
fi
24
 
28
 
25
# generate the shader programs
29
# generate the shader programs
26
echo "Compacting GLSL shaders..."
30
echo "Compacting GLSL shaders..."
27
cd src/harness || exit 1
31
cd src/harness || exit 1
28
for SHADER in resources/*.glsl; do
32
for SHADER in resources/*.glsl; do