2013-11-07 05:48:13 +04:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
svn update
|
|
|
|
|
|
|
|
rm -f StandAlone/glslangValidator
|
|
|
|
rm -f Test/glslangValidator
|
|
|
|
rm -f glslang/MachineIndependent/lib/libglslang.so
|
|
|
|
rm -f Install/Linux/libglslang.so
|
|
|
|
rm -f Install/Linux/glslangValidator
|
|
|
|
|
|
|
|
cd StandAlone
|
|
|
|
make clean
|
|
|
|
cd ../glslang/MachineIndependent
|
|
|
|
make clean
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
# build the StandAlone app and all it's dependencies
|
|
|
|
make -C StandAlone
|
|
|
|
|
|
|
|
# so we can find the shared library
|
|
|
|
#LD_LIBRARY_PATH=`pwd`/glslang/MachineIndependent/lib
|
|
|
|
#export LD_LIBRARY_PATH
|
|
|
|
|
|
|
|
# install
|
|
|
|
cd Install/Linux
|
|
|
|
./install
|
2013-12-17 04:28:00 +04:00
|
|
|
cp glslangValidator ../../Test
|
|
|
|
LD_LIBRARY_PATH=/usr/local/lib
|
|
|
|
export LD_LIBRARY_PATH
|
2013-11-07 05:48:13 +04:00
|
|
|
|
|
|
|
# run using test data
|
|
|
|
cd ../../Test
|
|
|
|
chmod +x runtests
|
|
|
|
./runtests
|