John Kessenich | a0af473 | 2012-12-12 21:15:54 +0000 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | |
John Kessenich | a5ea9c6 | 2013-08-13 00:58:49 +0000 | [diff] [blame] | 3 | rm -f StandAlone/glsangValidator |
| 4 | rm -f glslang/MachineIndependent/lib/libglslang.so |
John Kessenich | e0ab8db | 2013-07-08 21:50:31 +0000 | [diff] [blame] | 5 | |
John Kessenich | a0af473 | 2012-12-12 21:15:54 +0000 | [diff] [blame] | 6 | # build the StandAlone app and all it's dependencies |
| 7 | make -C StandAlone |
| 8 | |
| 9 | # so we can find the shared library |
John Kessenich | a5ea9c6 | 2013-08-13 00:58:49 +0000 | [diff] [blame] | 10 | LD_LIBRARY_PATH=`pwd`/glslang/MachineIndependent/lib |
John Kessenich | a0af473 | 2012-12-12 21:15:54 +0000 | [diff] [blame] | 11 | export LD_LIBRARY_PATH |
| 12 | |
| 13 | # run using test data |
John Kessenich | 4d5de02 | 2013-04-13 06:05:31 +0000 | [diff] [blame] | 14 | cd Test |
John Kessenich | 8d2fe45 | 2013-08-05 16:36:49 +0000 | [diff] [blame] | 15 | ../StandAlone/glslangValidator -i sample.vert sample.frag |