2007-09-30 18:45:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2008-11-14 15:58:50 +00:00
|
|
|
qt=$QTDIR/include
|
2007-09-30 18:45:11 +00:00
|
|
|
build=../../../build
|
|
|
|
|
|
|
|
inc="-I$qt -I$qt/QtCore -I$qt/QtGui"
|
|
|
|
inc="$inc -I$build/src"
|
|
|
|
inc="$inc -I$build/src/frontends/qt4"
|
|
|
|
inc="$inc -I../../boost"
|
|
|
|
inc="$inc -I../../src"
|
|
|
|
inc="$inc -I../../src/frontends"
|
|
|
|
inc="$inc -I../../src/frontends/controllers"
|
|
|
|
inc="$inc -I../../src/frontends/qt4"
|
|
|
|
|
|
|
|
s=0
|
2007-11-21 22:27:30 +00:00
|
|
|
t=0
|
2008-11-14 15:58:50 +00:00
|
|
|
defines="-DQT_NO_STL -DQT_NO_KEYWORDS"
|
2007-11-21 22:35:38 +00:00
|
|
|
#for i in `find ../../src/frontends/qt4 -name '*.cpp'` ; do
|
|
|
|
#for i in `find ../../src/insets -name '*.cpp'` ; do
|
|
|
|
#for i in `find ../../src/mathed -name '*.cpp'` ; do
|
|
|
|
#for i in `find ../../src/support -name '*.cpp'` ; do
|
2007-11-21 22:27:30 +00:00
|
|
|
#for i in `find ../../src/graphics -name '*.cpp'` ; do
|
2007-11-21 22:35:38 +00:00
|
|
|
#for i in `find ../../src/graphics -name '*.cpp'` ; do
|
2007-11-30 20:57:53 +00:00
|
|
|
#for i in `find ../../src/support/chdir.cpp` ; do
|
2007-10-23 16:44:16 +00:00
|
|
|
for i in `find ../.. -name '*.cpp'` ; do
|
2008-11-14 15:58:50 +00:00
|
|
|
#for i in ../../src/frontends/qt4/GuiPrint.cpp ; do
|
|
|
|
#for i in ../../src/frontends/qt4/1.cpp ; do
|
2007-09-30 18:45:11 +00:00
|
|
|
#echo $i
|
2008-03-14 19:48:58 +00:00
|
|
|
#echo "g++ $inc $defines -E $i"
|
|
|
|
#g++ $inc $defines -E $i > tmp/`basename $i`
|
|
|
|
g++ $inc $defines -E $i > t
|
|
|
|
l=`g++ $inc $defines -E $i | wc -l`
|
2007-11-21 22:27:30 +00:00
|
|
|
f=`cat $i | wc -l`
|
2007-09-30 18:45:11 +00:00
|
|
|
s=$[s + l]
|
2007-11-21 22:27:30 +00:00
|
|
|
t=$[t + f]
|
|
|
|
printf "%10d %10d %-40s\n" $l $f $i
|
2007-09-30 18:45:11 +00:00
|
|
|
done
|
2007-11-21 22:27:30 +00:00
|
|
|
echo "Total: compiled: $s real: $t ratio:" $[s / t]
|
2007-09-30 18:45:11 +00:00
|
|
|
|