#!/bin/sh # Change this to the root of your Mozilla Thunderbird source code tree MOZILLA_HOME=/home/slawrance/.local/thunderbird-src/mozilla # Go to the local directory cd "`dirname $0`" INCLUDES="-I $MOZILLA_HOME/dist/sdk/idl -I $MOZILLA_HOME/dist/idl" # Generate a XPT file for each IDL file for i in `ls *.idl`; do INTERFACE_NAME=`echo $i|cut -d . -f 1` $MOZILLA_HOME/dist/sdk/bin/xpidl -m typelib -w -v ${INCLUDES} -e ../${INTERFACE_NAME}.xpt $i done # Generate C++ headers for interfaces that will be implemented natively for i in `grep -l native *.idl`; do INTERFACE_NAME=`echo $i|cut -d . -f 1` $MOZILLA_HOME/dist/sdk/bin/xpidl -m header -w -v ${INCLUDES} -e ../native/${INTERFACE_NAME}.h $i done