blob: 31031aad671fd405152eada251d7567b0fa657ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
if [ "$#" -lt 2 ]; then
echo "$0 - Generates reference files for b/c autotest"
echo "Usage: $0 [module|-all] [platform]"
echo "Examples: $0 -all 4.1.0.macx-gcc-ppc32"
echo " $0 QtGui 4.0.0.linux-gcc-ia32"
exit 1
fi
if [ "$1" = "-all" ]; then
modules="QtCore QtGui QtSql QtSvg QtNetwork QtScript QtXml QtXmlPatterns QtOpenGL Qt3Support QtTest QtDBus QtDesigner QtXmlPatterns"
else
modules="$1"
fi
for module in $modules; do
echo "#include <$module/$module>" >test.cpp
g++ -c -I$QTDIR/include -DQT_NO_STL -DQT3_SUPPORT -fdump-class-hierarchy test.cpp
mv test.cpp*.class $module.$2.txt
# Remove template classes from the output
perl -pi -e '$skip = 0 if (/^\n/);
$skip = 1 if (/^(Class|Vtable).*</);
$_ = "" if ($skip);' $module.$2.txt
done
|