Skip to content

Commit

Permalink
Added silly little build script for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 11, 2011
1 parent 1890d9f commit ee0f917
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .hgignore
@@ -1,5 +1,5 @@
syntax:glob
*.dSYM
*.exe
testtheoraplay
sdltheoraplay
test/*.dSYM
test/*.exe
test/testtheoraplay
test/sdltheoraplay
14 changes: 14 additions & 0 deletions test/maketest.sh
@@ -0,0 +1,14 @@
#!/bin/sh

set -x
set -e

OSTYPE=`uname -s`
if [ "$OSTYPE" = "Linux" ]; then
PTHREADLINK="-lpthread"
fi

CFLAGS="-O0 -ggdb3 -Wall -I.."
gcc -o ./testtheoraplay $CFLAGS ../theoraplay.c ./testtheoraplay.c -logg -lvorbis -ltheoradec $PTHREADLINK
gcc -o ./sdltheoraplay $CFLAGS ../theoraplay.c ./sdltheoraplay.c `sdl-config --cflags --libs` -logg -lvorbis -ltheoradec $PTHREADLINK

0 comments on commit ee0f917

Please sign in to comment.